python - Getting a PasteScript error when I try to serve an existing Pylons app -
i'm trying serve existing python 2.5 pylons application on os x snow leopard.
i've installed python 2.5 , set default python installation, installed paster, , installed version of pylons app needs (0.9.6.1) other eggs... when cd main folder , "paster serve development.ini" following:
file "/usr/local/bin/paster", line 5, in <module> pkg_resources import load_entry_point file "/system/library/frameworks/python.framework/versions/2.5/extras/lib/python/pkg_resources.py", line 2603, in <module> file "/system/library/frameworks/python.framework/versions/2.5/extras/lib/python/pkg_resources.py", line 666, in require file "/system/library/frameworks/python.framework/versions/2.5/extras/lib/python/pkg_resources.py", line 565, in resolve pkg_resources.distributionnotfound: pastescript==1.7.3
i have done "easy_install pastescript==1.7.3" , still error. there obvious i'm missing? help?
thanks in advance.
you have multiple python installs on system. easy_install
command installed pastescript different python interpreter. may have specific easy_install-2.5
command should use instead python 2.5 interpreter.
however, using virtualenv on development system recommended.
virtualenv allows create sandbox bound specific python interpreter, , can install specific packages versions locally based on each project.
more information on using virtualenv pylons here: http://wiki.pylonshq.com/display/pylonscookbook/using+a+virtualenv+sandbox
Comments
Post a Comment