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

CUPY 7.0 fails with Python 2.7 #2763

Closed
JanuszL opened this issue Dec 5, 2019 · 5 comments · Fixed by #2766
Closed

CUPY 7.0 fails with Python 2.7 #2763

JanuszL opened this issue Dec 5, 2019 · 5 comments · Fixed by #2766

Comments

@JanuszL
Copy link

JanuszL commented Dec 5, 2019

  • Conditions (you can just paste the output of python -c 'import cupy; cupy.show_config()')
  • Python version 2.7.15+
  • CuPy version 7.0.0
  • Ubuntu 18.04
  • CUDA version NA
  • cuDNN/NCCL version (if applicable) NA
  • Code to reproduce
Run python, issue `import cupy`.
  • Error messages, stack traces, or logs
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/cupy/__init__.py", line 47, in <module>
    import cupyx as _cupyx
  File "/usr/local/lib/python2.7/dist-packages/cupyx/__init__.py", line 11, in <module>
    from cupyx._ufunc_config import errstate  # NOQA
  File "/usr/local/lib/python2.7/dist-packages/cupyx/_ufunc_config.py", line 17
    def errstate(*, divide=None, over=None, under=None, invalid=None, linalg=None):
                  ^
SyntaxError: invalid syntax
@grlee77
Copy link
Contributor

grlee77 commented Dec 5, 2019

Hi Janusz.
7.0 only supports Python 3.5-3.8. I think you will have to stay on the 6.x releases for python 2 support.

@JanuszL
Copy link
Author

JanuszL commented Dec 5, 2019

Hi Gregory,
Thank you for the response. I just noticed that prebuild packages are not available for Python 2.7, and the reason why it installs in my case is that source distribution cannot be limited to a particular python version.
Maybe source distribution installation could fail with python 2.7 with an appropriate message?

@leofang
Copy link
Member

leofang commented Dec 5, 2019

Maybe source distribution installation could fail with python 2.7 with an appropriate message?

Good suggestion. I made a PR (#2766) for this.

@JanuszL
Copy link
Author

JanuszL commented Dec 5, 2019

Thanks!

@leofang
Copy link
Member

leofang commented Dec 11, 2019

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

Successfully merging a pull request may close this issue.

4 participants