Issue #1553 resolved

Multiple python3 compatiblity issues...

Joshua Harlow
created an issue

It seems like a print statement has gotten in that is not py3 compatible.

        from sphinx import apidoc
      File "/home/jenkins/workspace/gate-taskflow-python33/.tox/py33/lib/python3.3/site-packages/sphinx/", line 56
        print 'Would create file %s.' % fname
    SyntaxError: invalid syntax
    Complete output from command python egg_info:
    Traceback (most recent call last):

$ .tox/py33/bin/pip freeze Babel==1.3 Jinja2==2.7.3 Mako==1.0.0 MarkupSafe==0.23 Pygments==1.6 SQLAlchemy==0.9.7 Sphinx==1.2.3 alembic==0.6.6 amqp==1.4.6 anyjson==0.3.3 argparse==1.2.1 coverage==3.7.1 decorator==3.4.0 discover==0.4.0 docutils==0.12 extras==0.0.3 fixtures==0.3.16 flake8==2.1.0 futures==2.1.6 hacking==0.9.2 iso8601==0.1.10 jsonschema==2.4.0 kazoo==2.0 kombu==3.0.21 mccabe==0.2.1 mock==1.0.1 networkx==1.9 oslosphinx== pbr==0.10.0 pep8==1.5.6 psycopg2==2.5.4 pyflakes==0.8.1 python-mimeparse==0.1.4 python-subunit==0.0.21 pytz==2014.7 six==1.7.3 stevedore==0.15 testrepository==0.0.20 testtools==0.9.39 zake==0.1.5

Comments (11)

  1. Georg Brandl repo owner

    How did you install Sphinx in that virtualenv? Sphinx 1.2.x has to be run through 2to3 for Python 3, which is done automatically by the build step.

    Note that if you run build on 2.x, the files created under build/ must be removed before running on 3.x, or they will not be replaced by distutils.

  2. Georg Brandl repo owner
    • changed status to open

    Thanks, I can reproduce that problem. pip is installing the wheel, which should already be 2to3-converted.

    Apparently there was some problem generating the wheels during release. I'll recreate and reupload the 3.x wheel.

  3. Log in to comment