Closed ghost closed 8 years ago
Could the installation have failed? I assume you have run python setup.py --without-cuda install
. Make sure a recent version of Cython is installed.
I do not think so, because during installation there were no errors.
Yes, I used sudo python setup.py --without-cuda install
.
I have latest Cython. Version 0.23.4
Ok, I'll try it out then! :)
Here is a log of installation
Also, my parameters in makefile:
CUDA_PREFIX = /usr/local/cuda INSTALL_PREFIX = /home/grinya/anaconda2 CUDNN_ENABLED = 0
Thanks for the info, I can't reproduce the error. Try uninstalling CUDArray with pip uninstall cudarray
(try multiple times to make sure all installations are removed). Then clean temporary CUDArray files with python setup.py clean
. Finally, try installing again. If this doesn't work, you might want to try another Python distribution. I recommend Anaconda Python.
Well, I'm using Anaconda Python 2.7.
pip uninstall cudarray
tells that Cannot uninstall requirement cudarray, not installed
Just tried re-installation after python setup.py clean
. The same problem.
I see! Can you try installing without sudo
?
Oh, smth different. At least I can see my Anaconda path in the log:
grinya@grinyamipt:~/cudarray$ python setup.py --without-cuda install /home/grinya/anaconda2/lib/python2.7/site-packages/setuptools-19.2-py2.7.egg/setuptools/dist.py:284: UserWarning: Normalizing '0.1.dev' to '0.1.dev0' running install running bdist_egg running egg_info writing requirements to cudarray.egg-info/requires.txt error: [Errno 13] Permission denied: 'cudarray.egg-info/requires.txt'
This is probably because the previous installation was with sudo
. Make sure to uninstall CUDArray first (uninstall with sudo
, that is).
Tried as you said. The same problem ImportError: No module named conv_bc01
after installation without sudo
. Here is a log
I do not understand, but running python from a different directory (instead of cudarray's directory) works fine. And there is no ImportError =)
Great! The reason why it didn't work was because Python tried to import cudarray from your working directory. This failed as the cythonized files are stored in a separate build directory. Another time If you want to store cythonized files along with your python code you should install with python setup.py develop
.
Thank you!
Ubuntu 14.04 LTS. CUDA 7.5. However, I installed cudarray without cuda support. And after installation I got:
grinya@mypc:~/cudarray$ python import cudarray CUDArray: CUDA back-end not available, using NumPy. Traceback (most recent call last): File "", line 1, in
File "cudarray/init.py", line 40, in
from .numpy_backend import
File "cudarray/numpy_backend/init.py", line 2, in
from .nnet import
File "cudarray/numpy_backend/nnet/init.py", line 3, in
from .conv_bc01 import *
ImportError: No module named conv_bc01
But the file in the directory "cudarray/numpy_backend/nnet" does exist. I do not understand this error.