You probably run with different user (root/sudo?) and this mixed the
permission. do:

rm -rf /home/falmasri/.theano/

On Tue, Mar 7, 2017 at 3:42 AM Feras Almasri <[email protected]> wrote:

> Hello,
>
> I had problem in optimization failure. when I looked it over google I
> found that some they suggest to purge or clear cash.
> purge didn't work with me with the same error above so I cleared clash.
> after clearing the cash the program start to give me the same error as
> above so I did check the folder ./theano and it all empty.
>
>
> here is the result from purge
>
> 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 1480, in _on_atexit
>     self.clear_old()
>   File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py",
> line 1291, in clear_old
>     cleanup=False)
>   File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py",
> line 742, in refresh
>     subdirs = sorted(os.listdir(self.dirname))
> OSError: [Errno 2] No such file or directory:
> '/home/falmasri/.theano/compiledir_Linux-4.4--generic-x86_64-with-Ubuntu-16.04-xenial-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 1480, in _on_atexit
>     self.clear_old()
>   File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py",
> line 1291, in clear_old
>     cleanup=False)
>   File "/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py",
> line 742, in refresh
>     subdirs = sorted(os.listdir(self.dirname))
> OSError: [Errno 2] No such file or directory:
> '/home/falmasri/.theano/compiledir_Linux-4.4--generic-x86_64-with-Ubuntu-16.04-xenial-x86_64-2.7.12-64'
>
>
>
> and here is the run from the code
>
>  File "/home/xx/Desktop/xx/Softmax_classifier.py", line 1, in <module>
>     import theano.tensor as T
>   File "/usr/local/lib/python2.7/dist-packages/theano/__init__.py", line
> 66, in <module>
>     from theano.compile import (
>   File
> "/usr/local/lib/python2.7/dist-packages/theano/compile/__init__.py", line
> 10, in <module>
>     from theano.compile.function_module import *
>   File
> "/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py",
> line 21, in <module>
>     import theano.compile.mode
>   File "/usr/local/lib/python2.7/dist-packages/theano/compile/mode.py",
> line 10, in <module>
>     import theano.gof.vm
>   File "/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py", line
> 663, in <module>
>     from . import lazylinker_c
>   File
> "/usr/local/lib/python2.7/dist-packages/theano/gof/lazylinker_c.py", line
> 42, in <module>
>     location = os.path.join(config.compiledir, 'lazylinker_ext')
>   File "/usr/local/lib/python2.7/dist-packages/theano/configparser.py",
> line 331, in __get__
>     self.__set__(cls, val_str)
>   File "/usr/local/lib/python2.7/dist-packages/theano/configparser.py",
> line 342, in __set__
>     self.val = self.filter(val)
>   File "/usr/local/lib/python2.7/dist-packages/theano/configdefaults.py",
> line 1703, in filter_compiledir
>     " or listing permissions." % path)
> ValueError: compiledir
> '/home/falmasri/.theano/compiledir_Linux-4.4--generic-x86_64-with-Ubuntu-16.04-xenial-x86_64-2.7.12-64'
> exists but you don't have read, write or listing permissions.
>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "theano-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to