Skip to content
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

Octal number "0777" needs to be converted to new Python 3 friendly syntax: "0o777" #4

Closed
msabramo opened this issue Dec 3, 2012 · 0 comments · Fixed by #5
Closed

Comments

@msabramo
Copy link

msabramo commented Dec 3, 2012

I ran into this while trying to run tox on WebTest.

$ CFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" tox -e py32GLOB sdist-make: /Users/marca/dev/git-repos/webtest/setup.py
py32 sdist-reinst: /Users/marca/dev/git-repos/webtest/.tox/dist/WebTest-1.4.4.dev0.zip
py32 runtests: commands[0]
WARNING:test command found but not installed in testenv
  cmd: /bin/rm
  env: /Users/marca/dev/git-repos/webtest/.tox/py32
Maybe forgot to specify a dependency?
py32 runtests: commands[1]
py32 runtests: commands[2]
Develop: '/Users/marca/dev/git-repos/webtest'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '__pycache__' found anywhere in distribution
While:
  Installing.
  Getting section casperjs.
  Initializing section casperjs.
  Loading zc.buildout recipe entry gp.recipe.phantomjs:default.

An internal error occurred due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
  File "/Users/marca/dev/git-repos/webtest/eggs/zc.buildout-2.0.0a2-py3.2.egg/zc/buildout/buildout.py", line 1805, in main
    getattr(buildout, command)(args)
  File "/Users/marca/dev/git-repos/webtest/eggs/zc.buildout-2.0.0a2-py3.2.egg/zc/buildout/buildout.py", line 473, in install
    [self[part]['recipe'] for part in install_parts]
  File "/Users/marca/dev/git-repos/webtest/eggs/zc.buildout-2.0.0a2-py3.2.egg/zc/buildout/buildout.py", line 473, in <listcomp>
    [self[part]['recipe'] for part in install_parts]
  File "/Users/marca/dev/git-repos/webtest/eggs/zc.buildout-2.0.0a2-py3.2.egg/zc/buildout/buildout.py", line 1051, in __getitem__
    options._initialize()
  File "/Users/marca/dev/git-repos/webtest/eggs/zc.buildout-2.0.0a2-py3.2.egg/zc/buildout/buildout.py", line 1139, in _initialize
    recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout)
  File "/Users/marca/dev/git-repos/webtest/eggs/zc.buildout-2.0.0a2-py3.2.egg/zc/buildout/buildout.py", line 1098, in _install_and_load
    req.project_name, group, entry)
  File "/Users/marca/dev/git-repos/webtest/eggs/distribute-0.6.32-py3.2.egg/pkg_resources.py", line 337, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/marca/dev/git-repos/webtest/eggs/distribute-0.6.32-py3.2.egg/pkg_resources.py", line 2312, in load_entry_point
    return ep.load()
  File "/Users/marca/dev/git-repos/webtest/eggs/distribute-0.6.32-py3.2.egg/pkg_resources.py", line 2018, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/Users/marca/dev/git-repos/webtest/eggs/gp.recipe.phantomjs-1.7.0.1-py3.2.egg/gp/recipe/phantomjs/__init__.py", line 61
    os.chmod(f, 0777)
                   ^
SyntaxError: invalid token
ERROR: InvocationError: '/Users/marca/dev/git-repos/webtest/.tox/py32/bin/buildout buildout:parts-directory=/Users/marca/dev/git-repos/webtest/.tox/py32/parts buildout:bin-directory=/Users/marca/dev/git-repos/webtest/.tox/py32/bin'
_________________________________________________________________________________________________________________________________________________________ summary __________________________________________________________________________________________________________________________________________________________
ERROR:   py32: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants