"Cannot import name core" after fresh install (1.5.0.2)
See original GitHub issueJust installed the latest chainer using pip on Mac OSX, and now I get this error on importing cupy:
In [1]: import cupy
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-9136569de189> in <module>()
----> 1 import cupy
/Users/tsc/anaconda/lib/python2.7/site-packages/cupy/__init__.py in <module>()
6
7
----> 8 from cupy import binary
9 from cupy import core
10 from cupy import creation
/Users/tsc/anaconda/lib/python2.7/site-packages/cupy/binary/__init__.py in <module>()
3
4 # "NOQA" to suppress flake8 warning
----> 5 from cupy.binary import elementwise # NOQA
6 from cupy.binary import packing # NOQA
/Users/tsc/anaconda/lib/python2.7/site-packages/cupy/binary/elementwise.py in <module>()
----> 1 from cupy import core
2
3
4 bitwise_and = core.bitwise_and
5
/Users/tsc/anaconda/lib/python2.7/site-packages/cupy/core/__init__.py in <module>()
----> 1 from cupy.core import core
2
3 ndarray = core.ndarray
4
5 get_size = core.get_size
ImportError: cannot import name core
It seems like core is now a Cython module, so perhaps the installer is not properly compiling it?
Issue Analytics
- State:
- Created 8 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
Error after upgrading pip: cannot import name 'main'
I had the same issue because I used pip install --upgrade pip to upgrade pip on a server where I din't have admin...
Read more >Bug#1015076: murano-dashboard: FTBFS - The Mail Archive
Bug#1015076: murano-dashboard: FTBFS: ERROR:root:cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/lib/python3/dist- ...
Read more >Hyperion System 9 BI+ Release 9.2.0.2 Readme
For information on installation, see the Hyperion Reporting and Analysis Installation ... The name may be incorrect due to the fact that the...
Read more >Create an Estimator from a Keras model | TensorFlow Core
TensorFlow Estimators are supported in TensorFlow, and can be created from new and existing tf.keras models. This tutorial contains a complete, minimal example ......
Read more >Viewing Recent Changes in the Changelog - WPForms
Changelog for WPForms (core plugin); Changelogs for Addons ... Fixed: Some Form Templates could be empty upon fresh installation.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That means you failed to install CuPy. Please try pip with
-v
option, that shows a lot of logs.Update: After updating Chainer I got errors again. Specifically, when I do a clean install with “pip install chainer --no-cache-dir -vvvv”, I get errors like:
In the end I found a solution in italoag’s comment here: https://github.com/nodejs/node/issues/2933
Before installing:
Disclaimer: I have no idea what this is doing, or whether it is safe. Try at your own risk.