Theano: "Delete your Theano cache. The automatic recompilation did not work."

Created on 27 Dec 2015  Â·  16Comments  Â·  Source: Theano/Theano

When I use Lasagne's pool.py, I need to update my theano from version 0.7.0 to 0.8.0 which provide mean_pooling function through theano.tensor.signal.downsample.max_pool_2d(there is mode param).
As I'm the Anaconda user, then I update this through the following command,

conda install -c https://conda.anaconda.org/trung theano
it seems upgrade is success, but when I import theano lib, it returns exception like this
hutch@hutch-ubuntu:~$ conda install -c https://conda.anaconda.org/trung theano
Fetching package metadata: ........
Solving package specifications: ...................
Package plan for installation in environment /usr/local/anaconda:

The following NEW packages will be INSTALLED:

theano: 0.8-py27_0

Proceed ([y]/n)? y

Extracting packages ...
[ COMPLETE ]|###################################################| 100%
Linking packages ...
[ COMPLETE ]|###################################################| 100%
hutch@hutch-ubuntu:~$ python
Python 2.7.11 |Anaconda 2.3.0 (64-bit)| (default, Dec 6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org

import theano
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/anaconda/lib/python2.7/site-packages/theano/init.py", line 103, in
import theano.sandbox.cuda
File "/usr/local/anaconda/lib/python2.7/site-packages/theano/sandbox/cuda/init.py", line 549, in
use(device=config.device, force=config.force_device, test_driver=False)
File "/usr/local/anaconda/lib/python2.7/site-packages/theano/sandbox/cuda/init.py", line 435, in use
"Delete your Theano cache. The automatic"
Exception: Delete your Theano cache. The automatic recompilation did not work.

can anyone show me how to fixed the problem?(I had also tried to upgrade theano by pip install github project package, failed too, It shows
command /usr/local/pypy-2.6.1-linux 64/bin/pypy - c "import setuptools, tokenize; file = '/tmp/pip-build-7z14uQ/scipy/setup'; exec(compile(getattr(tokenize, 'open', open)(file).read().replace('rn','n'), file, 'exec'); install --record /tmp/pip-ilqubE-record/install_record.txt --single-version-externally-managed -compile failed with error code in /tmp/pip-build-7zI4uQ/scipy
I guess there is something wrong with scipy, but scipy works well in my environment.

Most helpful comment

You can delete your theano cache with the command:

"theano-cache purge"

If that do not work do this in python to know the path of the cache and
delete this directory:

python
import theano
print theano.config.compiledir

On Sun, Dec 27, 2015 at 3:32 AM, hutch [email protected] wrote:

When I use Lasagne's poolpy, I need to update my theano from version 070
to 080 which provide mean_pooling function through
theanotensorsignaldownsamplemax_pool_2d(there is mode param)
As I'm the Anaconda user, then I update this through the following command,
conda install -c https://condaanacondaorg/trung theano
it seems upgrade is success, but when I import theano lib, it returns
exception like this
hutch@hutch-ubuntu:~$ conda install -c https://condaanacondaorg/trung
theano
Fetching package metadata:
Solving package specifications:
Package plan for installation in environment /usr/local/anaconda:

The following NEW packages will be INSTALLED:

theano: 08-py27_0

Proceed ([y]/n)? y

Extracting packages
[ COMPLETE ]|###################################################| 100%
Linking packages
[ COMPLETE ]|###################################################| 100%
hutch@hutch-ubuntu:~$ python
Python 2711 |Anaconda 230 (64-bit)| (default, Dec 6 2015, 18:08:32)
[GCC 447 20120313 (Red Hat 447-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information
Anaconda is brought to you by Continuum Analytics
Please check out: http://continuumio/thanks and https://anacondaorg

import theano
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/anaconda/lib/python27/site-packages/theano/__init__py",
line 103, in
import theanosandboxcuda
File
"/usr/local/anaconda/lib/python27/site-packages/theano/sandbox/cuda/__init__py",
line 549, in
use(device=configdevice, force=configforce_device, test_driver=False)
File
"/usr/local/anaconda/lib/python27/site-packages/theano/sandbox/cuda/__init__py",
line 435, in use
"Delete your Theano cache The automatic"
Exception: Delete your Theano cache The automatic recompilation did not
work

can anyone show me how to fixed the problem?(I had also tried to upgrade
theano by pip install github project package, failed too, It shows
command /usr/local/pypy-261-linux 64/bin/pypy - c "import setuptools,
tokenize; _file_ = '/tmp/pip-build-7z14uQ/scipy/setup';
exec(compile(getattr(tokenize, 'open', open)(_file_)read()replace('rn','n'),
_file_, 'exec'); install --record
/tmp/pip-ilqubE-record/install_recordtxt
--single-version-externally-managed -compile failed with error code in
/tmp/pip-build-7zI4uQ/scipy
I guess there is something wrong with scipy, but scipy works well in my
environment

—
Reply to this email directly or view it on GitHub
https://github.com/Theano/Theano/issues/3818.

All 16 comments

You can delete your theano cache with the command:

"theano-cache purge"

If that do not work do this in python to know the path of the cache and
delete this directory:

python
import theano
print theano.config.compiledir

On Sun, Dec 27, 2015 at 3:32 AM, hutch [email protected] wrote:

When I use Lasagne's poolpy, I need to update my theano from version 070
to 080 which provide mean_pooling function through
theanotensorsignaldownsamplemax_pool_2d(there is mode param)
As I'm the Anaconda user, then I update this through the following command,
conda install -c https://condaanacondaorg/trung theano
it seems upgrade is success, but when I import theano lib, it returns
exception like this
hutch@hutch-ubuntu:~$ conda install -c https://condaanacondaorg/trung
theano
Fetching package metadata:
Solving package specifications:
Package plan for installation in environment /usr/local/anaconda:

The following NEW packages will be INSTALLED:

theano: 08-py27_0

Proceed ([y]/n)? y

Extracting packages
[ COMPLETE ]|###################################################| 100%
Linking packages
[ COMPLETE ]|###################################################| 100%
hutch@hutch-ubuntu:~$ python
Python 2711 |Anaconda 230 (64-bit)| (default, Dec 6 2015, 18:08:32)
[GCC 447 20120313 (Red Hat 447-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information
Anaconda is brought to you by Continuum Analytics
Please check out: http://continuumio/thanks and https://anacondaorg

import theano
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/anaconda/lib/python27/site-packages/theano/__init__py",
line 103, in
import theanosandboxcuda
File
"/usr/local/anaconda/lib/python27/site-packages/theano/sandbox/cuda/__init__py",
line 549, in
use(device=configdevice, force=configforce_device, test_driver=False)
File
"/usr/local/anaconda/lib/python27/site-packages/theano/sandbox/cuda/__init__py",
line 435, in use
"Delete your Theano cache The automatic"
Exception: Delete your Theano cache The automatic recompilation did not
work

can anyone show me how to fixed the problem?(I had also tried to upgrade
theano by pip install github project package, failed too, It shows
command /usr/local/pypy-261-linux 64/bin/pypy - c "import setuptools,
tokenize; _file_ = '/tmp/pip-build-7z14uQ/scipy/setup';
exec(compile(getattr(tokenize, 'open', open)(_file_)read()replace('rn','n'),
_file_, 'exec'); install --record
/tmp/pip-ilqubE-record/install_recordtxt
--single-version-externally-managed -compile failed with error code in
/tmp/pip-build-7zI4uQ/scipy
I guess there is something wrong with scipy, but scipy works well in my
environment

—
Reply to this email directly or view it on GitHub
https://github.com/Theano/Theano/issues/3818.

As no activity, I close.

AFAIK, from the source code it's under _C:UsersAppDataLocalTheano_. I met same errors, import theano produced same errors over and over, I couldn't even access to the config class. I deleted cache folders manually then things started to work.

Can you delete manually the compiledir? If that don't fix it, give your
full error message.

On Sat, Mar 19, 2016 at 9:39 AM, Anh Tu Nguyen [email protected]
wrote:

AFAIK, from the source code it's under
_C:UsersAppDataLocalTheano_. I met same errors, import
theano produced same errors over and over, I couldn't even access to the
config class.

—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/Theano/Theano/issues/3818#issuecomment-198705386

Hi, to fix the issue I had to delete compiledir manually. I guess there's an issue with windows file system, when number of files is huge, deleting those folders might fail.

Guys I've got the same error and can't fix it
the "theano-cache clear" gives the following

WARNING (theano.gof.cmodule): Ignoring init arguments for module cache because it was created prior to this call

and "theano-cache purge" gives

Using cuDNN version 5110 on context None
Mapped name None to device cuda0: GeForce GTX 1070 (0000:01:00.0)
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(targs, *kargs)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line 1488, in _on_atexit
self.clear_old()
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line 1292, in clear_old
cleanup=False)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line 746, in refresh
subdirs = sorted(os.listdir(self.dirname))
OSError: [Errno 2] No such file or directory: '/home/user/.theano/compiledir_Linux-4.4--generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.12-64'
Error in sys.exitfunc:
Traceback (most recent call last):
File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(targs, *kargs)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line 1488, in _on_atexit
self.clear_old()
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line 1292, in clear_old
cleanup=False)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line 746, in refresh
subdirs = sorted(os.listdir(self.dirname))
OSError: [Errno 2] No such file or directory: '/home/user/.theano/compiledir_Linux-4.4--generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.12-64'

I've also removed the cache dir but it didn't help. is there any idea how I can fix it.?

I don't know what is going on, but can you manually delete this directory:

/home/user/.theano/

On Wed, Jun 21, 2017 at 8:11 PM Hazarapet notifications@github.com wrote:

Guys I've got the same error and can't fix it
the "theano-cache clear" gives the following

WARNING (theano.gof.cmodule): Ignoring init arguments for module cache
because it was created prior to this call

and "theano-cache purge" gives

Using cuDNN version 5110 on context None
Mapped name None to device cuda0: GeForce GTX 1070 (0000:01:00.0)
Error in atexit._run_exitfuncs:

Traceback (most recent call last):

File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(targs, *kargs)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
1488, in _on_atexit
self.clear_old()
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
1292, in clear_old
cleanup=False)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
746, in refresh
subdirs = sorted(os.listdir(self.dirname))
OSError: [Errno 2] No such file or directory:
'/home/user/.theano/compiledir_Linux-4.4--generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.12-64'
Error in sys.exitfunc:

Traceback (most recent call last):

File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(targs, *kargs)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
1488, in _on_atexit
self.clear_old()
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
1292, in clear_old
cleanup=False)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
746, in refresh
subdirs = sorted(os.listdir(self.dirname))
OSError: [Errno 2] No such file or directory:
'/home/user/.theano/compiledir_Linux-4.4--generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.12-64'

I've also removed the cache dir but it didn't help. is there any idea how
I can fix it.?

—
You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/Theano/Theano/issues/3818#issuecomment-310239138, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALC-8sO49oVLP5M9Mch5OSArJLBf46vks5sGbEsgaJpZM4G7jYq
.

I'm doing it. but theano-cache purge gives the same thing.

By manually delete, I mean "rm -rf dir". Not using theano-cache.

I know. "rm -rf" is always effective

I don't have this problem here, so I can't test my fix. I have in this PR a
fix for that exact case, but another crash could be after that. Can you try
it?

https://github.com/Theano/Theano/pull/6068

thanks

On Wed, Jun 21, 2017 at 8:11 PM Hazarapet notifications@github.com wrote:

Guys I've got the same error and can't fix it
the "theano-cache clear" gives the following

WARNING (theano.gof.cmodule): Ignoring init arguments for module cache
because it was created prior to this call

and "theano-cache purge" gives

Using cuDNN version 5110 on context None
Mapped name None to device cuda0: GeForce GTX 1070 (0000:01:00.0)
Error in atexit._run_exitfuncs:

Traceback (most recent call last):

File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(targs, *kargs)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
1488, in _on_atexit
self.clear_old()
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
1292, in clear_old
cleanup=False)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
746, in refresh
subdirs = sorted(os.listdir(self.dirname))
OSError: [Errno 2] No such file or directory:
'/home/user/.theano/compiledir_Linux-4.4--generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.12-64'
Error in sys.exitfunc:

Traceback (most recent call last):

File "/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
func(targs, *kargs)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
1488, in _on_atexit
self.clear_old()
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
1292, in clear_old
cleanup=False)
File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py", line
746, in refresh
subdirs = sorted(os.listdir(self.dirname))
OSError: [Errno 2] No such file or directory:
'/home/user/.theano/compiledir_Linux-4.4--generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.12-64'

I've also removed the cache dir but it didn't help. is there any idea how
I can fix it.?

—
You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub
https://github.com/Theano/Theano/issues/3818#issuecomment-310239138, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALC-8sO49oVLP5M9Mch5OSArJLBf46vks5sGbEsgaJpZM4G7jYq
.

I tried cleaning the theano cache, changing reference folders (which I don't fully understand yet). It works fine under CPU, but when I use the .theanorc.txt I get the following error with stack trace:

Problem occurred during compilation with the command line below:
"C:ProgramDataAnaconda3Librarymingw-w64bing++.exe" -shared -g C:ProgramDataAnaconda3MinGWx86_64-w64-mingw32include -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"C:ProgramDataAnaconda3libsite-packagesnumpycoreinclude" -I"C:ProgramDataAnaconda3include" -I"C:ProgramDataAnaconda3libsite-packagestheanogof" -L"C:ProgramDataAnaconda3libs" -L"C:ProgramDataAnaconda3" -o C:ProgramDataAnaconda3pkgstheano-0.9.0-py36_0Libsite-packagestheanocompiledir_Windows-10-10.0.15063-SP0-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.6.1-64lazylinker_extlazylinker_ext.pyd C:ProgramDataAnaconda3pkgstheano-0.9.0-py36_0Libsite-packagestheanocompiledir_Windows-10-10.0.15063-SP0-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.6.1-64lazylinker_extmod.cpp -lpython36
Traceback (most recent call last):

File "", line 1, in
import theano

File "C:ProgramDataAnaconda3libsite-packagestheano__init__.py", line 66, in
from theano.compile import (

File "C:ProgramDataAnaconda3libsite-packagestheanocompile__init__.py", line 10, in
from theano.compile.function_module import *

File "C:ProgramDataAnaconda3libsite-packagestheanocompilefunction_module.py", line 21, in
import theano.compile.mode

File "C:ProgramDataAnaconda3libsite-packagestheanocompilemode.py", line 10, in
import theano.gof.vm

File "C:ProgramDataAnaconda3libsite-packagestheanogofvm.py", line 662, in
from . import lazylinker_c

File "C:ProgramDataAnaconda3libsite-packagestheanogoflazylinker_c.py", line 127, in
preargs=args)

File "C:ProgramDataAnaconda3libsite-packagestheanogofcmodule.py", line 2316, in compile_str
(status, compile_stderr.replace('n', '. ')))

. collect2.exe: error: ld returned 1 exit status C:/ProgramData/Anaconda3/Library/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:ProgramDataAnaconda3MinGWx86_64-w64-mingw32include: Permission denied

Could someone enlighten me?

Here's my .theanorc.txt

[global]
floatX=float32
device=cuda
base_compiledir=C:ProgramDataAnaconda3pkgstheano-0.9.0-py36_0Libsite-packagestheano

[lib]
cnmem=1

[nvcc]
fastmath=True

[gcc]
cxxflags=C:ProgramDataAnaconda3MinGWx86_64-w64-mingw32include

[cuda]
root=CUDAToolkit_8.0.{00D3C40F-BDD2-44CA-B8D6-36119DF9D909}

[dnn]
include_path=C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0include
library_path=C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0libx64

I currently have the dnn lines commented, just another failed attempt

Thanks

Check the permission on that directory:

C:ProgramDataAnaconda3MinGWx86_64-w64-mingw32include

The error tell you don't have the permission to it.

On Tue, Jul 4, 2017 at 6:15 AM Paulo Renan Melo notifications@github.com
wrote:

I tried cleaning the theano cache, changing reference folders (which I
don't fully understand yet). It works fine under CPU, but when I use the
.theanorc.txt I get the following error with stack trace:

Problem occurred during compilation with the command line below:
"C:ProgramDataAnaconda3Librarymingw-w64bing++.exe" -shared -g
C:ProgramDataAnaconda3MinGWx86_64-w64-mingw32include
-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64
-I"C:ProgramDataAnaconda3libsite-packagesnumpycoreinclude"
-I"C:ProgramDataAnaconda3include"
-I"C:ProgramDataAnaconda3libsite-packagestheanogof"
-L"C:ProgramDataAnaconda3libs" -L"C:ProgramDataAnaconda3" -o
C:ProgramDataAnaconda3pkgstheano-0.9.0-py36_0Libsite-packagestheanocompiledir_Windows-10-10.0.15063-SP0-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.6.1-64lazylinker_extlazylinker_ext.pyd
C:ProgramDataAnaconda3pkgstheano-0.9.0-py36_0Libsite-packagestheanocompiledir_Windows-10-10.0.15063-SP0-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.6.1-64lazylinker_extmod.cpp
-lpython36

Traceback (most recent call last):

File "", line 1, in

import theano

File "C:ProgramDataAnaconda3libsite-packagestheano_init_.py", line
66, in
from theano.compile import (

File "C:ProgramDataAnaconda3libsite-packagestheanocompile_init_.py",
line 10, in
from theano.compile.function_module import *

File
"C:ProgramDataAnaconda3libsite-packagestheanocompilefunction_module.py",
line 21, in
import theano.compile.mode

File "C:ProgramDataAnaconda3libsite-packagestheanocompilemode.py",
line 10, in
import theano.gof.vm

File "C:ProgramDataAnaconda3libsite-packagestheanogofvm.py", line
662, in
from . import lazylinker_c

File
"C:ProgramDataAnaconda3libsite-packagestheanogoflazylinker_c.py",
line 127, in
preargs=args)

File "C:ProgramDataAnaconda3libsite-packagestheanogofcmodule.py",
line 2316, in compile_str
(status, compile_stderr.replace('n', '. ')))

. collect2.exe: error: ld returned 1 exit status
C:/ProgramData/Anaconda3/Library/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find C:ProgramDataAnaconda3MinGWx86_64-w64-mingw32include:
Permission denied

Could someone enlighten me?

Here's my .theanorc.txt

[global]
floatX=float32
device=cuda

base_compiledir=C:ProgramDataAnaconda3pkgstheano-0.9.0-py36_0Libsite-packagestheano

[lib]
cnmem=1

[nvcc]
fastmath=True

[gcc]
cxxflags=C:ProgramDataAnaconda3MinGWx86_64-w64-mingw32include

[cuda]
root=CUDAToolkit_8.0.{00D3C40F-BDD2-44CA-B8D6-36119DF9D909}

[dnn]
include_path=C:Program FilesNVIDIA GPU Computing
ToolkitCUDAv8.0include
library_path=C:Program FilesNVIDIA GPU Computing
ToolkitCUDAv8.0libx64

I currently have the dnn lines commented, just another failed attempt

Thanks

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Theano/Theano/issues/3818#issuecomment-312841156, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALC-0ELF475uEIOmTfI790Wc5W0jHVWks5sKhCrgaJpZM4G7jYq
.

Thanks nouiz.
I tried changing attributes of the folder applying to subfolders and files to remove the option "read-only" which apears as a square, rather than a tick (meaning there might be some files or folders read-only)
That made the stack trace a bit more simple, but still I can't have access to the folder and I have no idea why.
I also tried using the downloads folder in my user location (maybe ProgramData has restrictions because of being a system folder?) and it still doesn't give me access. I am obviously running the console as an admin.

Stack trace update:

Problem occurred during compilation with the command line below:
"C:ProgramDataAnaconda3Librarymingw-w64bing++.exe" -shared -g C:UsersRootDownloadsTheano-0.9.0MinGWlibgccx86_64-w64-mingw324.7.0include -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -I"C:ProgramDataAnaconda3libsite-packagesnumpycoreinclude" -I"C:ProgramDataAnaconda3include" -I"C:ProgramDataAnaconda3libsite-packagestheanogof" -L"C:ProgramDataAnaconda3libs" -L"C:ProgramDataAnaconda3" -o C:UsersRootDownloadsTheano-0.9.0Theano-0.9.0theanocompiledir_Windows-10-10.0.15063-SP0-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.6.1-64lazylinker_extlazylinker_ext.pyd C:UsersRootDownloadsTheano-0.9.0Theano-0.9.0theanocompiledir_Windows-10-10.0.15063-SP0-Intel64_Family_6_Model_58_Stepping_9_GenuineIntel-3.6.1-64lazylinker_extmod.cpp -lpython36
C:/ProgramData/Anaconda3/Library/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:UsersRootDownloadsTheano-0.9.0MinGWlibgccx86_64-w64-mingw324.7.0include: Permission denied
collect2.exe: error: ld returned 1 exit status

Traceback (most recent call last):
File "C:ProgramDataAnaconda3libsite-packagestheanogoflazylinker_c.py", line 75, in
raise ImportError()
ImportError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:ProgramDataAnaconda3libsite-packagestheanogoflazylinker_c.py", line 92, in
raise ImportError()
ImportError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "C:ProgramDataAnaconda3libsite-packagestheano__init__.py", line 66, in
from theano.compile import (
File "C:ProgramDataAnaconda3libsite-packagestheanocompile__init__.py", line 10, in
from theano.compile.function_module import *
File "C:ProgramDataAnaconda3libsite-packagestheanocompilefunction_module.py", line 21, in
import theano.compile.mode
File "C:ProgramDataAnaconda3libsite-packagestheanocompilemode.py", line 10, in
import theano.gof.vm
File "C:ProgramDataAnaconda3libsite-packagestheanogofvm.py", line 662, in
from . import lazylinker_c
File "C:ProgramDataAnaconda3libsite-packagestheanogoflazylinker_c.py", line 127, in
preargs=args)
File "C:ProgramDataAnaconda3libsite-packagestheanogofcmodule.py", line 2316, in compile_str
(status, compile_stderr.replace('n', '. ')))
Exception: Compilation failed (return status=1): C:/ProgramData/Anaconda3/Library/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:UsersRootDownloadsTheano-0.9.0MinGWlib. collect2.exe: error: ld returned 1 exit status denied

This error happened to me when I downgraded theano from the latest to 0.7.
I could not make it work again.
I had to upgrade again!

Thanks for the idea about the cause and fix.

Do not use Theano 0.7. It is way too old.

On Fri, Aug 18, 2017 at 9:56 PM Philippe Rémy notifications@github.com
wrote:

This error happened to me when I downgraded theano from the latest to 0.7.
I could not make it work again.
I had to upgrade again!

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Theano/Theano/issues/3818#issuecomment-323492854, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AALC-8XuabOWqCmrkzNy_GufNY2piH6Oks5sZkDTgaJpZM4G7jYq
.

Was this page helpful?
0 / 5 - 0 ratings