views:

37

answers:

2

Is there a direct equivalent of gzip for IronPython?

A: 

Yup. After half a second's Googling:

http://lists.ironpython.com/pipermail/users-ironpython.com/2006-September/003608.html

Rushyo
Sorry - I dont know why I didn't see it. I get the following error: Could not add reference to assembly ICSharpCode.SharpZipLib
ManInMoon
That's a completely different question from the one you asked... please edit your original question with as much information as possible, including the precise problem and steps you did before it happened.
Rushyo
Not sure it is a different question.
ManInMoon
I copied the code from the link you suggested above. I then ran it and got the error above.
ManInMoon
Ah I see. Sorry, I hadn't realised you'd compiled it. It's after a reference to a particular library available here: http://www.icsharpcode.net/opensource/sharpziplib/
Rushyo
Thank you. I see a lot of this to "downlaod" they just never tell you where you are supposed to put it - could you give me a clue please?
ManInMoon
No problem. The reason is you can place it anywhere. Your project directory is often ideal. I actually keep my gzip lib on the root of C (not recommended). In Visual Studio you can right-click your project and go to 'Add Reference'. Look under 'Browse' and select the file from there. The error should go away. HTH. Lemme know if it doesn't.
Rushyo
When I rightclick on project - says there are no command options....
ManInMoon
Not sure what you mean, can you elaborate or provide a screenshot?
Rushyo
A: 

No, but you can drop in gzip.py from Python and use IronPython.Zlib. Some instructions are available on your other question.

Jeff Hardy
Yes. Appreciate it - I have responded there
ManInMoon