Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"AttributeError: 'module' object has no attribute '__getstate__' " shows up when I use easy_install

For some reason, every time I attempt to install a new module using easy_install, I'm getting the error:

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

I'm using setuptools-0.6c11-py2.6

like image 548
BryanWheelock Avatar asked Jan 21 '23 15:01

BryanWheelock


2 Answers

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

like image 83
Katriel Avatar answered Feb 01 '23 13:02

Katriel


I had the same problem, but the solution was that i had two versions of setuptools: one was in /usr/local/lib/python2.6/dist-packages/distribute-0.6.8-py2.6.egg/ and one was in /usr/lib/python2.6/dist-packages/. the former was an outdated version, but /usr/local/lib/python2.6/dist-packages is earlier on my path. i removed the old one, and was good to go.

like image 26
jessykate Avatar answered Feb 01 '23 14:02

jessykate