Getting a PasteScript error when I try to service an existing Pylons application

I am trying to maintain an existing Pylon 2.5 Pylons application on OS X Snow Leopard.

I already installed Python 2.5 and installed it as the default Python installation, installed the pasteur and installed the version of Pylons, which is required by applications (0.9.6.1), as well as other eggs ... but when I connect to the main folder and do "paster serve development .ini ". I get the following:

File "/usr/local/bin/paster", line 5, in <module>
    from 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 definitely did "easy_install PasteScript == 1.7.3" and I still get this error. Is there anything really obvious that I'm missing? Help?

Thanks in advance.

+5
source share
4

, Python . easy_install, , PasteScript Python. easy_install-2.5, Python 2.5.

virtualenv .

Virtualenv , Python, .

virtualenv Pylons : http://wiki.pylonshq.com/display/pylonscookbook/Using+a+Virtualenv+Sandbox

+1

, , easy_install-2.5 PasteScript==1.7.3 . .

+1

/usr/sbin/luci, python :

#!/usr/bin/python -Es

/usr/bin/paster, python :

#!/usr/bin/python
0

, "paster --help". PasteScript env, PasteScript . , PasteScript .dist-info. , , sys.path. pkg_resources, ".dist-info". pkg_resources find_on_path. pkg_resources "dist-info". , "pkg_resources.get_distribution (" PasteScript ")" / script/command.py PasteScript, . , pkg_resources , python "import pkg_resources; print pkg_resources". "" ( ).

Update: I installed the latest version of ckan 2.6.2 (in April 2017) on Ubuntu (v12, a bit old, released in 2012-2014) (fully updated with the apt-get update installed via the ubuntu / precise64 branded image). This is broken. Using the ubuntu / trusty64 image works fine.

0
source

All Articles