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

Invalid Python syntax #2

Closed
danzek opened this issue Jan 27, 2018 · 1 comment
Closed

Invalid Python syntax #2

danzek opened this issue Jan 27, 2018 · 1 comment

Comments

@danzek
Copy link

danzek commented Jan 27, 2018

The code uses invalid Python syntax and as such does not work.

Traceback (most recent call last):
  File "/usr/local/bin/bits_parser", line 4, in <module>
    __import__('pkg_resources').run_script('bits-parser==1.0.0', 'bits_parser')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 742, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources/__init__.py", line 1667, in run_script
    exec(code, namespace, namespace)
  File "/Library/Python/2.7/site-packages/bits_parser-1.0.0-py2.7.egg/EGG-INFO/scripts/bits_parser", line 27, in <module>
    import bits
  File "/Library/Python/2.7/site-packages/bits_parser-1.0.0-py2.7.egg/bits/__init__.py", line 8, in <module>
    from bits.bits import Bits
  File "/Library/Python/2.7/site-packages/bits_parser-1.0.0-py2.7.egg/bits/bits.py", line 175
    yield from self.parse()
             ^
SyntaxError: invalid syntax
@danzek
Copy link
Author

danzek commented Jan 27, 2018

Disregard, I see this is a new feature in Python 3.3, I was using Python 2.7.

@danzek danzek closed this as completed Jan 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant