0

Is there a direct equivalent of gzip for IronPython?

ManInMoon
  • 6,795
  • 15
  • 70
  • 133
  • 1
    possible duplicate of [IronPython - How do I import Gzip?](http://stackoverflow.com/questions/3734593/ironpython-how-do-i-import-gzip) – Greg Hewgill Mar 02 '11 at 21:31

2 Answers2

0

Yup. After half a second's Googling:

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

Rushyo
  • 7,495
  • 4
  • 35
  • 42
  • Sorry - I dont know why I didn't see it. I get the following error: Could not add reference to assembly ICSharpCode.SharpZipLib – ManInMoon Sep 17 '10 at 11:44
  • 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 Sep 17 '10 at 11:50
  • Not sure it is a different question. – ManInMoon Sep 17 '10 at 12:16
  • I copied the code from the link you suggested above. I then ran it and got the error above. – ManInMoon Sep 17 '10 at 12:16
  • 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 Sep 17 '10 at 12:22
  • 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 Sep 17 '10 at 12:41
  • 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 Sep 17 '10 at 12:48
  • Not sure what you mean, can you elaborate or provide a screenshot? – Rushyo Sep 17 '10 at 14:51
0

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

Community
  • 1
  • 1
Jeff Hardy
  • 7,632
  • 24
  • 24