#111 posted on Thu Sep 15 00:00:00 2011
Pylons install script not working with Python 2.7
The, sadly, discontinued Pylons web framework installer seems to no longer work in Python 2.7.
New python executable in argonaut/bin/python
Traceback (most recent call last):
File "/home/jaywink/argonaut/lib/python2.7/site.py", line 67, in <module>
import os
File "/home/jaywink/argonaut/lib/python2.7/os.py", line 398, in <module>
import UserDict
File "/home/jaywink/argonaut/lib/python2.7/UserDict.py", line 83, in <module>
import _abcoll
File "/home/jaywink/argonaut/lib/python2.7/_abcoll.py", line 11, in <module>
from abc import ABCMeta, abstractmethod
File "/home/jaywink/argonaut/lib/python2.7/abc.py", line 8, in <module>
from _weakrefset import WeakSet
ImportError: No module named _weakrefset
ERROR: The executable argonaut/bin/python is not functioning
ERROR: It thinks sys.prefix is '/home/jaywink' (should be '/home/jaywink/argonaut')
ERROR: virtualenv is not compatible with this system or executable
The issue is an old virtualenv version the go-pylons.py script uses, which doesn't import the necessary modules. Not to fear, installing is still easy, just grab the newest virtualenv source or on Ubuntu do:
sudo apt-get install python-virtualenv
Then just run the following as per Pylons installation instructions:
virtualenv mydevenv
mydevenv/bin/easy_install Pylons==1.0













Comments (post a comment)