twhiscock/GeneNet-

Error while running exampleScript.py

Opened this issue · 0 comments

Hi Team,

I was trying to run the sample but ended up in some error which I have pasted below.
I think this is something related to the version of the packages used in the application.
Could you please help us resolve this issue if you have some time?

gitpod /workspace/GeneNet- (master) $ python exampleScript.py

You can find the C code in this temporary file: /tmp/theano_compilation_error_7k99sdkb
Traceback (most recent call last):
File "/workspace/.pyenv_mirror/user/current/lib/python3.8/site-packages/theano/gof/lazylinker_c.py", line 76, in
raise ImportError(
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 "/workspace/.pyenv_mirror/user/current/lib/python3.8/site-packages/theano/gof/lazylinker_c.py", line 99, in
raise ImportError(
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 "exampleScript.py", line 9, in
import theano.tensor as T
File "/workspace/.pyenv_mirror/user/current/lib/python3.8/site-packages/theano/init.py", line 110, in
from theano.compile import (
File "/workspace/.pyenv_mirror/user/current/lib/python3.8/site-packages/theano/compile/init.py", line 12, in
from theano.compile.mode import *
File "/workspace/.pyenv_mirror/user/current/lib/python3.8/site-packages/theano/compile/mode.py", line 11, in
import theano.gof.vm
File "/workspace/.pyenv_mirror/user/current/lib/python3.8/site-packages/theano/gof/vm.py", line 674, in
from . import lazylinker_c
File "/workspace/.pyenv_mirror/user/current/lib/python3.8/site-packages/theano/gof/lazylinker_c.py", line 139, in
cmodule.GCC_compiler.compile_str(dirname, code, location=loc,
File "/workspace/.pyenv_mirror/user/current/lib/python3.8/site-packages/theano/gof/cmodule.py", line 2410, in compile_str
raise Exception('Compilation failed (return status=%s): %s' %
Exception: Compilation failed (return status=1): /usr/bin/ld: /home/gitpod/.pyenv/versions/3.8.13/lib/libpython3.8.a(floatobject.o): relocation R_X86_64_PC32 against symbol `PyFloat_Type' 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.