You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
Not technically a bug, since it affects an unmerged feature (see #880 and #809). However, it will eventually need to be adressed, so I'm adding this issue for now.
There exists a python module that explicitly contains a syntax error. When the nupic package is bundled up and the .pyc files generated, this error is reported:
...
byte-compiling /tmp/nupic-darwin64/Library/Python/2.7/site-packages/nupic/regions/TestRegion.py to TestRegion.pyc
byte-compiling /tmp/nupic-darwin64/Library/Python/2.7/site-packages/nupic/regions/TPRegion.py to TPRegion.pyc
byte-compiling /tmp/nupic-darwin64/Library/Python/2.7/site-packages/nupic/regions/UnimportableNode.py to UnimportableNode.pyc
File "/Library/Python/2.7/site-packages/nupic/regions/UnimportableNode.py", line 5
Try to import this, Python interpreter...
^
SyntaxError: invalid syntax
byte-compiling /tmp/nupic-darwin64/Library/Python/2.7/site-packages/nupic/research/__init__.py to __init__.pyc
byte-compiling /tmp/nupic-darwin64/Library/Python/2.7/site-packages/nupic/research/anomalyzer.py to anomalyzer.pyc
...
We maybe need to re-evaluate the utility of this and move it elsewhere (or remove it entirely).
The text was updated successfully, but these errors were encountered:
disutils does not stop on syntax errors, just prints them. If you look at the solution it shows you how to wrap py.compile(), you could just put a try: except: around the py.compile() and silently ignore SyntaxErrors, you could do it also for only a list of IGNORED_FILES.
Not technically a bug, since it affects an unmerged feature (see #880 and #809). However, it will eventually need to be adressed, so I'm adding this issue for now.
There exists a python module that explicitly contains a syntax error. When the nupic package is bundled up and the .pyc files generated, this error is reported:
We maybe need to re-evaluate the utility of this and move it elsewhere (or remove it entirely).
The text was updated successfully, but these errors were encountered: