You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\ivan>conda install Theano pygpu
Fetching package metadata .........
Solving package specifications: ..........
Package plan for installation in environment C:\Users\ivan\Anaconda3:
The following packages will be downloaded:
package | build
---------------------------|-----------------
conda-env-2.6.0 | 0 498 B
theano-0.9.0 | py36_0 4.0 MB
------------------------------------------------------------
Total: 4.0 MB
The following NEW packages will be INSTALLED:
pygpu: 0.6.4-py36_0
theano: 0.9.0-py36_0
The following packages will be UPDATED:
conda: 4.2.13-py36_0 conda-forge --> 4.3.21-py36_0
The following packages will be SUPERCEDED by a higher-priority channel:
conda-env: 2.6.0-0 conda-forge --> 2.6.0-0
Proceed ([y]/n)? y
Pruning fetched packages from the cache ...
Fetching packages ...
conda-env-2.6. 100% |###############################| Time: 0:00:00 31.87 kB/s
theano-0.9.0-p 100% |###############################| Time: 0:00:01 3.30 MB/s
Extracting packages ...
[ COMPLETE ]|##################################################| 100%
Unlinking packages ...
[ COMPLETE ]|##################################################| 100%
Linking packages ...
[ COMPLETE ]|##################################################| 100%
How I check:
C:\Users\ivan>python
Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import theano
ERROR (theano.gpuarray): pygpu was configured but could not be imported or is too old (version 0.6 or higher required)
NoneType: None
>>> import pygpu
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\ivan\Anaconda3\lib\site-packages\pygpu\__init__.py", line 7, in <module>
from . import gpuarray, elemwise, reduction
ImportError: DLL load failed: The specified module could not be found.
You seem to be mixing conda-forge and regular conda packages. Make sure you install theano and pygpu/libgpuarray from the same source as your python install.
pygpu is the name of the official conda package.
libgpuarray is the name of the conda-forge package.
I was thinking that if I use conda tool then I use same source as my python install. How can I check what is wrong?
Anyway, I removed pygpu, libgpuarray and theano and tried to install only theano:
C:\Users\ivan>conda install theano
Fetching package metadata ...........
Solving package specifications: .
Package plan for installation in environment C:\Users\ivan\Anaconda3:
The following NEW packages will be INSTALLED:
libgpuarray: 0.6.4-vc14_0 [vc14]
pygpu: 0.6.4-py36_0
theano: 0.9.0-py36_0
Proceed ([y]/n)? y
As you see pygpu and libgpuarray installed together.
According to the trace, it fails to load python36.dll. I don't think that this is right, especially when you run from python.
The funny thing is that it finds gpuarray.dll, so maybe a live tracing would be required to see what fails to load and why. I'm not too sure how to do that on windows however.
Activity
abergeron commentedon May 31, 2017
You seem to be mixing conda-forge and regular conda packages. Make sure you install theano and pygpu/libgpuarray from the same source as your python install.
pygpuis the name of the official conda package.libgpuarrayis the name of the conda-forge package.ivan-ushakov commentedon May 31, 2017
I was thinking that if I use
condatool then I use same source as my python install. How can I check what is wrong?Anyway, I removed
pygpu,libgpuarrayandtheanoand tried to install onlytheano:As you see
pygpuandlibgpuarrayinstalled together.abergeron commentedon Jun 5, 2017
This seems ok because they now both come from the official packages.
Are you still having problems?
ivan-ushakov commentedon Jun 5, 2017
Yes, problem is still the same. Can't load DLL for some reason. Do you need anything from my side, environment variables, versions of tools?
abergeron commentedon Jun 6, 2017
Can you list the contents of
C:\Users\ivan\Anaconda3\lib\site-packages\pygpu\ivan-ushakov commentedon Jun 6, 2017
Sure. Here it is:
Also here is egg:
abergeron commentedon Jun 6, 2017
Can you try to use Dependecy Walker (http://www.dependencywalker.com/) on gpuarray.cp36-win_amd64.pyd?
ivan-ushakov commentedon Jun 6, 2017
Ok, Here it is.
gpuarray.cp36-win_amd64.zip
abergeron commentedon Jun 6, 2017
According to the trace, it fails to load python36.dll. I don't think that this is right, especially when you run from python.
The funny thing is that it finds gpuarray.dll, so maybe a live tracing would be required to see what fails to load and why. I'm not too sure how to do that on windows however.
ivan-ushakov commentedon Jun 6, 2017
I found strange thing.
Do you know how
pkgfolder used in Anaconda Python? And why I have entries with different date?abergeron commentedon Jun 6, 2017
pkg is the repository of conda packages that you have downloaded.
site-packges are those that are in you root conda env.
The dates are all the same, it's only the hour which varies a bit, but I don't think it's a problem of any kind.
Are you doing the tests in the "Anaconda command prompt" or just a regular shell?
ivan-ushakov commentedon Jun 6, 2017
I use regular shell (cmd). I just run python and execute
import theano.abergeron commentedon Jun 6, 2017
Can you try from the Anaconda command prompt?
ivan-ushakov commentedon Jun 6, 2017
I opened Anaconda command prompt, ran python and executed
import theanoand now it just printWhen I try
import pygpuit shows error from my first message about DLL.abergeron commentedon Jun 6, 2017
This is strange. Do you have another install of Theano somewhere?
Try running
conda list theanoandconda list pygpu.ivan-ushakov commentedon Jun 6, 2017
Here is full output.
conda_list.txt
abergeron commentedon Jun 6, 2017
I'm sorry but I have no idea what's wrong.
You could try to completely remove anaconda and reinstall it if it's not too much of a hassle, but I have no guarantees that it will even help.
ivan-ushakov commentedon Jun 6, 2017
BTW
Why I don't see
libgpuarrayin site-packages?abergeron commentedon Jun 7, 2017
Because libgpuarray is a C library not a python package.
ivan-ushakov commentedon Jun 7, 2017
So it could be the source of problem. I will try to investigate this and return to you with results.
abergeron commentedon Jun 7, 2017
It is normal that there is no libgpuarray package in the site-packages directory. There shouldn't be one and it is not a source of problems.