New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PasteDeploy 1.5 is not compatible with Python 2.4 #121

Closed
FelixSchwarz opened this Issue Jul 4, 2011 · 4 comments

Comments

Projects
None yet
2 participants
@FelixSchwarz
Copy link
Member

FelixSchwarz commented Jul 4, 2011

creating '/tmp/easy_install-SdeTVz/PasteScript-1.7.3/temp/easy_install-v5xlRK/PasteDeploy-1.5.0/egg-dist-tmp-dTHgBg/PasteDeploy-1.5.0-py2.4.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
creating /tmp/easy_install-SdeTVz/PasteScript-1.7.3/PasteDeploy-1.5.0-py2.4.egg
Extracting PasteDeploy-1.5.0-py2.4.egg to /tmp/easy_install-SdeTVz/PasteScript-1.7.3
  File "/tmp/easy_install-SdeTVz/PasteScript-1.7.3/PasteDeploy-1.5.0-py2.4.egg/paste/deploy/loadwsgi.py", line 393
    with open(filename) as f:
            ^
SyntaxError: invalid syntax
  File "/tmp/easy_install-SdeTVz/PasteScript-1.7.3/PasteDeploy-1.5.0-py2.4.egg/paste/deploy/util.py", line 68
    parts, target = spec.split(':') if ':' in spec else (spec, None)
                                     ^
SyntaxError: invalid syntax

Installed /tmp/easy_install-SdeTVz/PasteScript-1.7.3/PasteDeploy-1.5.0-py2.4.egg
@natedub

This comment has been minimized.

Copy link
Contributor

natedub commented Jul 4, 2011

How are you installing MediaCore? Is it the latest version from Github?

If you look in our setup.py, we explicitly require PasteDeploy == 1.3.3, so I'm not sure how PasteDeploy 1.5 is installing. We're not even hosting it on our CDN, so theoretically, it should never be installed.

@FelixSchwarz

This comment has been minimized.

Copy link
Member

FelixSchwarz commented Jul 20, 2011

I think PasteScript is the culprit:

Searching for PasteScript==1.7.3

Link to http://pypi.python.org/simple/PasteScript/ ***BLOCKED*** by --allow-hosts

Couldn't retrieve index page for 'PasteScript'
Best match: PasteScript 1.7.3
Downloading http://mediacore.com/files/packages/PasteScript-1.7.3.tar.gz
Processing PasteScript-1.7.3.tar.gz
Running PasteScript-1.7.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-v3oDv6/PasteScript-1.7.3/egg-dist-tmp-7wdVQc
Download error: (-2, 'Name or service not known') -- Some packages may not be found!
warning: no previously-included files matching '*' found under directory 'docs/_build/_sources'

Installed /tmp/easy_install-v3oDv6/PasteScript-1.7.3/temp/easy_install-vlVLJJ/PasteDeploy-1.5.0/Paste-1.7.5.1-py2.4.egg
writing requirements to PasteDeploy.egg-info/requires.txt
writing PasteDeploy.egg-info/PKG-INFO
writing namespace_packages to PasteDeploy.egg-info/namespace_packages.txt
writing top-level names to PasteDeploy.egg-info/top_level.txt
writing dependency_links to PasteDeploy.egg-info/dependency_links.txt
writing entry points to PasteDeploy.egg-info/entry_points.txt
reading manifest file 'PasteDeploy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'PasteDeploy.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/paste
copying paste/__init__.py -> build/lib/paste
creating build/lib/paste/deploy
copying paste/deploy/__init__.py -> build/lib/paste/deploy
copying paste/deploy/loadwsgi.py -> build/lib/paste/deploy
copying paste/deploy/compat.py -> build/lib/paste/deploy
copying paste/deploy/converters.py -> build/lib/paste/deploy
copying paste/deploy/util.py -> build/lib/paste/deploy
copying paste/deploy/paster_templates.py -> build/lib/paste/deploy
copying paste/deploy/config.py -> build/lib/paste/deploy
creating build/lib/paste/deploy/paster_templates
creating build/lib/paste/deploy/paster_templates/paste_deploy
creating build/lib/paste/deploy/paster_templates/paste_deploy/+package+
copying paste/deploy/paster_templates/paste_deploy/+package+/sampleapp.py_tmpl -> build/lib/paste/deploy/paster_templates/paste_deploy/+package+
copying paste/deploy/paster_templates/paste_deploy/+package+/wsgiapp.py_tmpl -> build/lib/paste/deploy/paster_templates/paste_deploy/+package+
creating build/lib/paste/deploy/paster_templates/paste_deploy/docs
copying paste/deploy/paster_templates/paste_deploy/docs/devel_config.ini_tmpl -> build/lib/paste/deploy/paster_templates/paste_deploy/docs
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/paste
copying build/lib/paste/__init__.py -> build/bdist.linux-x86_64/egg/paste
creating build/bdist.linux-x86_64/egg/paste/deploy
creating build/bdist.linux-x86_64/egg/paste/deploy/paster_templates
creating build/bdist.linux-x86_64/egg/paste/deploy/paster_templates/paste_deploy
creating build/bdist.linux-x86_64/egg/paste/deploy/paster_templates/paste_deploy/+package+
copying build/lib/paste/deploy/paster_templates/paste_deploy/+package+/wsgiapp.py_tmpl -> build/bdist.linux-x86_64/egg/paste/deploy/paster_templates/paste_deploy/+package+
copying build/lib/paste/deploy/paster_templates/paste_deploy/+package+/sampleapp.py_tmpl -> build/bdist.linux-x86_64/egg/paste/deploy/paster_templates/paste_deploy/+package+
creating build/bdist.linux-x86_64/egg/paste/deploy/paster_templates/paste_deploy/docs
copying build/lib/paste/deploy/paster_templates/paste_deploy/docs/devel_config.ini_tmpl -> build/bdist.linux-x86_64/egg/paste/deploy/paster_templates/paste_deploy/docs
copying build/lib/paste/deploy/__init__.py -> build/bdist.linux-x86_64/egg/paste/deploy
copying build/lib/paste/deploy/loadwsgi.py -> build/bdist.linux-x86_64/egg/paste/deploy
copying build/lib/paste/deploy/compat.py -> build/bdist.linux-x86_64/egg/paste/deploy
copying build/lib/paste/deploy/converters.py -> build/bdist.linux-x86_64/egg/paste/deploy
copying build/lib/paste/deploy/util.py -> build/bdist.linux-x86_64/egg/paste/deploy
copying build/lib/paste/deploy/paster_templates.py -> build/bdist.linux-x86_64/egg/paste/deploy
copying build/lib/paste/deploy/config.py -> build/bdist.linux-x86_64/egg/paste/deploy
byte-compiling build/bdist.linux-x86_64/egg/paste/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/paste/deploy/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/paste/deploy/loadwsgi.py to loadwsgi.pyc
  File "build/bdist.linux-x86_64/egg/paste/deploy/loadwsgi.py", line 393
    with open(filename) as f:
            ^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/paste/deploy/compat.py to compat.pyc
byte-compiling build/bdist.linux-x86_64/egg/paste/deploy/converters.py to converters.pyc
byte-compiling build/bdist.linux-x86_64/egg/paste/deploy/util.py to util.pyc
  File "build/bdist.linux-x86_64/egg/paste/deploy/util.py", line 68
    parts, target = spec.split(':') if ':' in spec else (spec, None)
                                     ^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/paste/deploy/paster_templates.py to paster_templates.pyc
byte-compiling build/bdist.linux-x86_64/egg/paste/deploy/config.py to config.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying PasteDeploy.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PasteDeploy.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PasteDeploy.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PasteDeploy.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PasteDeploy.egg-info/namespace_packages.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PasteDeploy.egg-info/not-zip-safe -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PasteDeploy.egg-info/requires.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying PasteDeploy.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
creating '/tmp/easy_install-v3oDv6/PasteScript-1.7.3/temp/easy_install-vlVLJJ/PasteDeploy-1.5.0/egg-dist-tmp-rG0XDK/PasteDeploy-1.5.0-py2.4.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
creating /tmp/easy_install-v3oDv6/PasteScript-1.7.3/PasteDeploy-1.5.0-py2.4.egg
Extracting PasteDeploy-1.5.0-py2.4.egg to /tmp/easy_install-v3oDv6/PasteScript-1.7.3
  File "/tmp/easy_install-v3oDv6/PasteScript-1.7.3/PasteDeploy-1.5.0-py2.4.egg/paste/deploy/loadwsgi.py", line 393
    with open(filename) as f:
            ^
SyntaxError: invalid syntax
  File "/tmp/easy_install-v3oDv6/PasteScript-1.7.3/PasteDeploy-1.5.0-py2.4.egg/paste/deploy/util.py", line 68
    parts, target = spec.split(':') if ':' in spec else (spec, None)
                                     ^
SyntaxError: invalid syntax

Installed /tmp/easy_install-v3oDv6/PasteScript-1.7.3/PasteDeploy-1.5.0-py2.4.egg
Searching for Paste>=1.3
Reading http://pypi.python.org/simple/Paste/
Reading http://pythonpaste.org
Best match: Paste 1.7.5.1
Downloading http://pypi.python.org/packages/source/P/Paste/Paste-1.7.5.1.tar.gz#md5=7ea5fabed7dca48eb46dc613c4b6c4ed
Processing Paste-1.7.5.1.tar.gz
Running Paste-1.7.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-v3oDv6/PasteScript-1.7.3/temp/easy_install-lS3bF1/Paste-1.7.5.1/egg-dist-tmp-Kl6Fwb
warning: no previously-included files matching '*' found under directory 'docs/_build/_sources'

Installed /tmp/easy_install-v3oDv6/PasteScript-1.7.3/Paste-1.7.5.1-py2.4.egg
@FelixSchwarz

This comment has been minimized.

Copy link
Member

FelixSchwarz commented Jan 17, 2012

One workaround might be to do './venv/bin/pip install PasteDeploy==1.3.3' before running 'python setup.py develop'. In the end PasteDeploy 1.3.3 will be installed no matter what but you get ugly syntaxerrors otherwise.

@FelixSchwarz

This comment has been minimized.

Copy link
Member

FelixSchwarz commented Aug 13, 2012

As I mentioned in my previous comment MediaCore is still functional afterwards, the bad PasteDeploy will be overwritten by a good version. As Python 2.4 usage is diminishing over time we just live with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment