-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
"Cannot import name core" after fresh install (1.5.0.2) #702
Comments
I just upgraded to the latest version (1.5.0.3), and things seem to be working now. |
Just updated chainer to 1.5.0.3 on Mac OSX with pip, tried to import cupy, it failed.
|
That means you failed to install CuPy.
|
I uninstalled chainer and then installed it with -v flag per recommendation. The log is below.
Then in Pyhton:
|
I guess compile does not occur because there is no record in the log that cython executes it. You can check if it is the case as follows:
If compile does not occur, I recommend you to check if the path to CUDA executables and libraries are appropriate (See here). |
Sorry, |
Thanks, I tried |
Oh, really? I suspect that |
Ok, I managed to successfully install chainer and have cupy compile correctly by running Before that, I ran
The old partial error log:
|
Thanks for your help! |
I had to reinstall on a clean mac, and ran into the same issue again when compiling from source ("Cannot import name core"). I removed the installation and reinstalled with pip (using --no-cache-dir), which seemed to work yesterday. Today I tried importing cupy again and got this:
Any ideas about what's be going on? |
@tscohen We had released v1.5.1. Does this problem still remain? |
I've been running my experiments on a remote linux server and haven't touched my local installation, so yes it still persists. Just tried to uninstall / reinstall with pip but that didn't help. |
For me, I also need to specify
|
Thanks bhy, that seems to work here. |
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: nodejs/node#2933 Before installing:
Disclaimer: I have no idea what this is doing, or whether it is safe. Try at your own risk. |
Just installed the latest chainer using pip on Mac OSX, and now I get this error on importing cupy:
It seems like core is now a Cython module, so perhaps the installer is not properly compiling it?
The text was updated successfully, but these errors were encountered: