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

ERROR (theano.sandbox.gpuarray): Could not initialize pygpu…… #45

Open
xxdiablo opened this issue May 14, 2019 · 5 comments
Open

ERROR (theano.sandbox.gpuarray): Could not initialize pygpu…… #45

xxdiablo opened this issue May 14, 2019 · 5 comments

Comments

@xxdiablo
Copy link

When I want to try to implement other projects with this method, but some environmental problems have been bothering me for a long time.
My environment is built according to what you said. And theano=0.8.0, pygpu=0.7.6, but when I try import theano, it always give an error “ERROR (theano.sandbox.gpuarray): Could not initialize pygpu, support disabled”, could you plz give some ideal?
Look forward to your reply~

@xxdiablo
Copy link
Author

Solve the problem by using developer version Theano.

@ypzuo
Copy link

ypzuo commented Aug 13, 2019

Solve the problem by using developer version Theano.

Hi, I met many problems about the version of the Theano, pygpu, numpy, etc.
Can you tell me thses specific version of yours?

@xxdiablo
Copy link
Author

xxdiablo commented Aug 13, 2019 via email

@ypzuo
Copy link

ypzuo commented Aug 13, 2019

@xxdiablo thank you!

@Paawan23
Copy link

Hi, I am having the same problem about theano error..
here is my theano code
[global]
floatX = float32
device = cuda

Error:
python3 demo.py prediction.obj
ERROR (theano.gpuarray): Could not initialize pygpu, support disabled
Traceback (most recent call last):
File "/home/paawan/anaconda3/envs/py3-theano/lib/python3.6/site-packages/theano/gpuarray/init.py", line 227, in
use(config.device)
File "/home/paawan/anaconda3/envs/py3-theano/lib/python3.6/site-packages/theano/gpuarray/init.py", line 214, in use
init_dev(device, preallocate=preallocate)
File "/home/paawan/anaconda3/envs/py3-theano/lib/python3.6/site-packages/theano/gpuarray/init.py", line 99, in init_dev
**args)
File "pygpu/gpuarray.pyx", line 658, in pygpu.gpuarray.init
File "pygpu/gpuarray.pyx", line 587, in pygpu.gpuarray.pygpu_init
pygpu.gpuarray.GpuArrayException: b'Could not load "libnvrtc.so": libnvrtc.so: cannot open shared object file: No such file or directory'
/home/paawan/Paawan/3D-R2N2/lib/layers.py:353: UserWarning: DEPRECATION: the 'ds' parameter is not going to exist anymore as it is going to be replaced by the parameter 'ws'.
padding=self._padding)
/home/paawan/Paawan/3D-R2N2/lib/layers.py:353: UserWarning: DEPRECATION: the 'padding' parameter is not going to exist anymore as it is going to be replaced by the parameter 'pad'.
padding=self._padding)
loading network parameters from output/ResidualGRUNet/default_model/weights.npy
Traceback (most recent call last):
File "demo.py", line 84, in
main()
File "demo.py", line 62, in main
net.load(DEFAULT_WEIGHTS) # load downloaded weights
File "/home/paawan/Paawan/3D-R2N2/models/net.py", line 71, in load
params_cpu_file = np.load(filename)
File "/home/paawan/anaconda3/envs/py3-theano/lib/python3.6/site-packages/numpy/lib/npyio.py", line 440, in load
pickle_kwargs=pickle_kwargs)
File "/home/paawan/anaconda3/envs/py3-theano/lib/python3.6/site-packages/numpy/lib/format.py", line 727, in read_array
raise ValueError("Object arrays cannot be loaded when "
ValueError: Object arrays cannot be loaded when allow_pickle=False

Any help would be appreciated, Thank You

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

No branches or pull requests

3 participants