Home » Blog » Setuptools Zipimport Ioerror

Setuptools Zipimport IOError

After installing Python’s Pygments module on my slice I ran into the following error when trying to run a django app.

IOError: zipimport: can not open file /usr/lib/python2.5/site-packages/setuptools-0.6c11-py2.5.egg

After far too much fruitless Googling I decided to simply rename the file and hope for the best. Fortunately this seemed to do the trick!

4 Comments

Thanks for this tip. That very error brought down two of our trac installations! When I have more time, I'll attempt to figure out what had gone wrong.
I've having the same issue only the IOError is for Python 2.6 and a file named "/setuptools-0.6c11-py2.6.egg" I changed the "2.6" to "2.5" and it worked. What did you change your file name to? And how can this not cause horrible things to happen? Also, thanks for the tip!
I don't think it matters what you change the filename to so long as you do. I imagine it looks for that file and if it doesn't exist then it skips trying to unzip it.
You just need to change permission on the .egg file. Apache needs permission to read the file. Try 755

Add Your Opinions

Latest Tweet

Recent Posts

Elsewhere