"The AttributeError: 'module' object does not have the attribute '__getstate__'" appears when I use easy_install

For some reason, every time I try to install a new module using easy_install, I get an error:

AttributeError: 'module' object has no attribute '__getstate__' 

I am using setuptools-0.6c11-py2.6

+4
source share
4 answers

Try http://code.activestate.com/lists/python-distutils-sig/13989/ : the essence of "reinstall setuptools".

+6
source

I had the same problem, but the solution was that I had two versions of setuptools: one was in / usr / local / lib / python 2.6 / dist-packages / distribute-0.6.8-py2.6.egg / , and one of them was in / usr / lib / python 2.6 / dist-packages /. the first was an obsolete version, but / usr / local / lib / python 2.6 / dist-packages was earlier in my path. I deleted the old one and it was good to go.

+3
source

For me, the problem was the same as jessykate , but the exact opposite.

I had to REMOVE the version installed in / usr / local / lib / python 2.6 / dist-packages / and BUY the version located in / usr / lib / python 2.6 / dist-packages /. This was on Ubuntu 10.04 LTS. Hope this helps.

0
source

try yum reinstall python-setuptools and run the easy_install command again.

0
source

All Articles