Hi, I have been trying to successfully run a program that uses a theano Op. When I follow the instructions here: Installation Guide (Linux) · pymc-devs/pymc Wiki · GitHub I get the following error when I import theano
:
You can find the C code in this temporary file: /tmp/theano_compilation_error_mxce2qm8 Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/theano/gof/lazylinker_c.py", line 81, in <module> actual_version, force_compile, _need_reload)) ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.211, but found None. Extra debug information: force_compile=False, _need_reload=True During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.5/site-packages/theano/gof/lazylinker_c.py", line 105, in <module> actual_version, force_compile, _need_reload)) ImportError: Version check of the existing lazylinker compiled file. Looking for version 0.211, but found None. Extra debug information: force_compile=False, _need_reload=True During handling of the above exception, another exception occurred: Traceback (most recent call last): File "testintegrate.py", line 2, in <module> import theano File "/usr/local/lib/python3.5/site-packages/theano/__init__.py", line 110, in <module> from theano.compile import ( File "/usr/local/lib/python3.5/site-packages/theano/compile/__init__.py", line 12, in <module> from theano.compile.mode import * File "/usr/local/lib/python3.5/site-packages/theano/compile/mode.py", line 11, in <module> import theano.gof.vm File "/usr/local/lib/python3.5/site-packages/theano/gof/vm.py", line 674, in <module> from . import lazylinker_c File "/usr/local/lib/python3.5/site-packages/theano/gof/lazylinker_c.py", line 140, in <module> preargs=args) File "/usr/local/lib/python3.5/site-packages/theano/gof/cmodule.py", line 2411, in compile_str (status, compile_stderr.replace('\n', '. '))) Exception: Compilation failed (return status=1): /usr/bin/ld: /usr/local/lib/libpython3.5m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC. /usr/bin/ld: final link failed: Bad value. collect2: error: ld returned 1 exit status.