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

Syntax error in unittest2/loader.py", line 92 #3732

Open
BrianBut opened this issue Jun 29, 2017 · 4 comments
Open

Syntax error in unittest2/loader.py", line 92 #3732

BrianBut opened this issue Jun 29, 2017 · 4 comments
Assignees

Comments

@BrianBut
Copy link

On running pip install nupic:
(cv) brian@son:~/projects/sparse-images$ pip install nupic
Collecting nupic
Downloading nupic-0.5.6.tar.gz (4.6MB)
100% |████████████████████████████████| 4.6MB 112kB/s
Collecting asteval==0.9.1 (from nupic)
Downloading asteval-0.9.1.tar.gz
Collecting coverage==3.7.1 (from nupic)
Downloading coverage-3.7.1.tar.gz (284kB)
100% |████████████████████████████████| 286kB 158kB/s
Collecting mock==1.0.1 (from nupic)
Downloading mock-1.0.1.zip (861kB)
100% |████████████████████████████████| 870kB 220kB/s
Collecting ordereddict==1.1 (from nupic)
Downloading ordereddict-1.1.tar.gz
Collecting psutil==1.0.1 (from nupic)
Downloading psutil-1.0.1.tar.gz (156kB)
100% |████████████████████████████████| 163kB 176kB/s
Collecting pytest==2.5.1 (from nupic)
Downloading pytest-2.5.1.tar.gz (577kB)
100% |████████████████████████████████| 583kB 1.4MB/s
Collecting pytest-cov==1.6 (from nupic)
Downloading pytest-cov-1.6.tar.gz
Collecting pytest-xdist==1.8 (from nupic)
Downloading pytest-xdist-1.8.zip
Collecting python-dateutil==2.1 (from nupic)
Downloading python-dateutil-2.1.tar.gz (152kB)
100% |████████████████████████████████| 153kB 182kB/s
Collecting PyYAML==3.10 (from nupic)
Downloading PyYAML-3.10.tar.gz (241kB)
100% |████████████████████████████████| 245kB 167kB/s
Collecting unittest2==0.5.1 (from nupic)
Downloading unittest2-0.5.1.zip (78kB)
100% |████████████████████████████████| 81kB 151kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-k0sbttvu/unittest2/setup.py", line 12, in
from unittest2 import version as VERSION
File "/tmp/pip-build-k0sbttvu/unittest2/unittest2/init.py", line 40, in
from unittest2.collector import collector
File "/tmp/pip-build-k0sbttvu/unittest2/unittest2/collector.py", line 3, in
from unittest2.loader import defaultTestLoader
File "/tmp/pip-build-k0sbttvu/unittest2/unittest2/loader.py", line 92
except Exception, e:
^
SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-k0sbttvu/unittest2/

@rhyolight rhyolight self-assigned this Jul 3, 2017
@rhyolight
Copy link
Member

What version of python are you using?

@rhyolight
Copy link
Member

Also reported here.

@BrianBut
Copy link
Author

I am using Python 3.9.5. When I reported this problem I was confused about shell use so there may have been conflicting versions. Since I switched from venv to conda the problem has solved itself.
I have not been able to achieve a working installation as my computer is too old.

@RaiNova
Copy link

RaiNova commented May 29, 2022

I have the same problem. When I run pip with python 2.7 py -2 -m pip install nupic, I get hthe error RuntimeError: support for python < 3.6 has been removed in setuptools_scm>=6.0.0. Is there a workaround? If not: Is there any intention to fix this? If: a warning would be nice. (It currently feels like a waste of time.)

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

3 participants