I just wanted to follow up on this issue. I made some changes in
compiledir.py, specifically:
In line 141: instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
The changes I made, definitely changed base_compiledir (I checked
theano.config.base_compiledir).
However, I still see the same error (still wants to create a compile
directory in /home/) but in another place: line 126 in compiledir.py, below
is the full log of the error:
----- Error Log -----
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/worker.py",
line 75, in main
command = pickleSer._read_with_length(infile)
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/serializers.py",
line 150, in _read_with_length
return self.loads(obj)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/__init__.py",
line 44, in <module>
from theano.gof import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/__init__.py",
line 38, in <module>
from theano.gof.cc import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cc.py",
line 59, in <module>
from theano.gof import link
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/link.py",
line 10, in <module>
from theano.gof.type import Type
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/type.py",
line 12, in <module>
from theano.gof.op import CLinkerObject
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/op.py",
line 25, in <module>
from theano.gof.cmodule import GCC_compiler
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cmodule.py",
line 36, in <module>
from theano.gof.compiledir import gcc_version_str, local_bitwidth
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 181, in <module>
in_c_key=False)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 233, in AddConfigVar
configparam.__get__()
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 275, in __get__
self.__set__(None, val_str)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 286, in __set__
self.val = self.filter(val)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 126, in filter_compiledir
" '%s'. Check the permissions." % path)
ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Check the permissions.
Post by t***@gmail.comI just wanted to follow up on this issue. I made some changes in
In line 141: instead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
The changes I made, definitely changed base_compiledir (I checked
theano.config.base_compiledir).
However, I still see the same error (still wants to create a compile
directory in /home/) but in another place: line 126 in compiledir.py, below
is the full log of the error
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/worker.py",
line 75, in main
command = pickleSer._read_with_length(infile)
File
"/data5/hadoop/yarn/local/usercache/n624054/filecache/322/spark-assembly-1.1.0.2.1.5.0-695-hadoop2.4.0.2.1.5.0-695.jar/pyspark/serializers.py",
line 150, in _read_with_length
return self.loads(obj)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/__init__.py",
line 44, in <module>
from theano.gof import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/__init__.py",
line 38, in <module>
from theano.gof.cc import \
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cc.py",
line 59, in <module>
from theano.gof import link
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/link.py",
line 10, in <module>
from theano.gof.type import Type
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/type.py",
line 12, in <module>
from theano.gof.op import CLinkerObject
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/op.py",
line 25, in <module>
from theano.gof.cmodule import GCC_compiler
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/cmodule.py",
line 36, in <module>
from theano.gof.compiledir import gcc_version_str, local_bitwidth
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 181, in <module>
in_c_key=False)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 233, in AddConfigVar
configparam.__get__()
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 275, in __get__
self.__set__(None, val_str)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/configparser.py",
line 286, in __set__
self.val = self.filter(val)
File
"/apps/python2.7/anaconda/lib/python2.7/site-packages/theano/gof/compiledir.py",
line 126, in filter_compiledir
" '%s'. Check the permissions." % path)
ValueError: Unable to create the compiledir directory
'/home/.theano/compiledir_Linux-2.6.32-504.el6.x86_64-x86_64-with-redhat-6.5-Santiago-x86_64-2.7.8-64'.
Check the permissions.
Any intuition on why this might happen?
Thanks!
Temraz
Post by Pascal LamblinPost by t***@gmail.comHi Pascal,
os.getenv('THEANORC') -> points to the location of my .theanorc.
That is strange. Can you check whether it is actually read?
Post by t***@gmail.comSo if I were to make changes to theano files in site-packages, making
changes to compiledir.py would guarantee that the changes are in effect
right?
That should work, yes.
Post by t***@gmail.comOn Thursday, September 17, 2015 at 3:06:12 PM UTC-7, Pascal Lamblin
Post by Pascal LamblinPost by t***@gmail.comI see this problem only when I run theano in spark in yarn-cluster
mode,
fine and
Post by t***@gmail.comPost by Pascal LamblinPost by t***@gmail.comthe performance is great.
Is it possible that spark does not use all the environment variables
that you defined in your .bashrc, or does not re-read your .bashrc
until
Post by t***@gmail.comPost by Pascal Lamblinit is restarted or reloaded?
Do you have a way to access os.env['THEANORC'] from inside the
spark environment, and check if it is defined? For instance, you
could add additional prints in theano/configparser.py around
"os.getenv('THEANORC', '~/.theanorc').split(os.pathsep)".
Post by t***@gmail.comThe only solution I can think of right now (not ideal) is to modify
the
141
Post by t***@gmail.comPost by Pascal LamblinPost by t***@gmail.cominstead of: home = os.getenv('HOME')
use: home = '/tmp/theano/'
Any thoughts?
Post by Frédéric BastienHow did you create it? You need to export it in your .bashrc file
export THEANORC=...
Fred
<javascript:>>
permissions to
THEANORC
specify
the
$HOME/.
Post by t***@gmail.comPost by Pascal LamblinPost by t***@gmail.comPost by Frédéric BastienPost by t***@gmail.comCan you explain how you were able to change THEANORC globally?
Thanks.
On Wednesday, July 22, 2015 at 3:47:16 AM UTC-7, Abhishek
Shivkumar
Renshaw
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC>
http://deeplearning.net/software/theano/library/config.html#envvar-THEANORC
have
access. We
multiple
at
Google
it,
Google
it,
Post by t***@gmail.comPost by Pascal Lamblinsend an
Post by t***@gmail.comPost by Frédéric BastienPost by t***@gmail.comFor more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.comTo unsubscribe from this group and stop receiving emails from it,
send
Post by t***@gmail.comPost by Pascal LamblinPost by t***@gmail.comFor more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
You received this message because you are subscribed to the Google
Groups "theano-users" group.
Post by t***@gmail.comTo unsubscribe from this group and stop receiving emails from it, send
For more options, visit https://groups.google.com/d/optout.
--
Pascal
--
---
You received this message because you are subscribed to a topic in the
Google Groups "theano-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/theano-users/RTH742rtKOY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.