python - PyMC + Theano on Debian Backports -
i'm attempting run model in pymc3 takes advantage of theano.dot
when performing dot product in multilevel model. however, when attempt import theano get:
python model.py ... // there's huge output that's looks file problem occurred during compilation command line below: g++ -shared -g -o3 -fno-math-errno -wno-unused-label -wno-unused-variable -wno-write-strings -wl,-rpath,/home/thauck/miniconda/envs/data/lib -d npy_no_deprecated_api=npy_1_7_api_version -m64 -fpic -i/home/thauck/miniconda/envs/data/lib/python2.7/site-packages/numpy/core/include -i/home/thauck/miniconda/envs/data/include/python2.7 -o /home/thauck/.theano/compiledir_linux-3.14-0.bpo.2-amd64-x86_64-with-debian-7.6--2.7.8-64/tmpkxtyks/b4f7a60b7c9f9a250601326a9fe2016e.so /home/thauck/.theano/compiledir_linux-3.14-0.bpo.2-amd64-x86_64-with-debian-7.6--2.7.8-64/tmpkxtyks/mod.cpp -l/home/thauck/miniconda/envs/data/lib -lpython2.7 -lf77blas -lcblas -latlas /usr/bin/ld: cannot find -lf77blas /usr/bin/ld: cannot find -lcblas /usr/bin/ld: cannot find -latlas
i'm running backports-debian-7-wheezy-v20140904
.
conda:
current conda install:
platform : linux-64 conda version : 3.6.0 conda-build version : not installed python version : 2.7.8.final.0 requests version : 2.3.0 root environment : /home/thauck/miniconda (writable) default environment : /home/thauck/miniconda/envs/data envs directories : /home/thauck/miniconda/envs package cache : /home/thauck/miniconda/pkgs channel urls : http://repo.continuum.io/pkgs/free/linux-64/ http://repo.continuum.io/pkgs/pro/linux-64/ config file : none foreign system : false # conda environments: # data * /home/thauck/miniconda/envs/data root /home/thauck/miniconda sys.version: 2.7.8 |continuum analytics, inc.| (defau... sys.prefix: /home/thauck/miniconda sys.executable: /home/thauck/miniconda/bin/python conda location: /home/thauck/miniconda/lib/python2.7/site-packages/conda conda-build: none cio_test: <not set> conda_default_env: data conda_envs_path: <not set> ld_library_path: <not set> path: /home/thauck/miniconda/envs/data/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games pythonhome: <not set> pythonpath: <not set>
i have tried, after looking @ various problem:
theano_flags=blas.ldflags="-l/usr/lib/ -lblas" python model.py
this seg faults.
also, appears have blas directories in /usr/lib
.
(data)thauck@ds-th:/usr/lib$ ls | grep blas libblas.a libblas.so libblas.so.3 libblas.so.3gf libopenblas.so.0 openblas-base
edit:
the cause of breaks mvnormal
in pymc3.
i suppose have old version of theano, if we can't find or detect how link again blas, have fallback not cause crash, cause warning.
update theano development version.
if installed via conda, remove first, update:
pip install --upgrade --no-deps git+git://github.com/theano/theano.git
or
pip install --upgrade --no-deps git+git://github.com/theano/theano.git --user
more info on how update development version:
http://deeplearning.net/software/theano/install.html#bleeding-edge-install-instructions
Comments
Post a Comment