question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CUPY 7.0 fails with Python 2.7

See original GitHub issue
  • 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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
grlee77commented, 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.

1reaction
leofangcommented, 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation Guide — CuPy 6.7.0 documentation
Install CuPy¶. Wheels (precompiled binary packages) are available for Linux (Python 2.7 or later) and Windows (Python 3.6 or later). Package names are ......
Read more >
Can not import cupy with chainer 4.1.0 - Stack Overflow
i recently encountered this error on windows environment python 3.6 vs 2015 cuda 8.0. i tried. pip install cupy.
Read more >
CuPy Documentation - Read the Docs
Python : v3.7.0+ / v3.8.0+ / v3.9.0+ / v3.10.0+ / v3.11.0+. Note: Currently, CuPy is tested against ... 2.7.1 pip fails to install...
Read more >
Problems installing CuPy on latest Anaconda - Google Groups
Solving environment: failed with initial frozen solve. ... to be incompatible with the existing python installation in your environment: Specifications:
Read more >
Installation — Chainer 7.8.0 documentation
Python 2 is not supported in Chainer v7.x releases. Please consider migrating Python 3 or ... CuPy v7.8.0 is the recommended version for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found