Hi all,
I am completely new to Python and I am trying to get some software to run, which crashes because 'module bz2' is missing.
Indeed, if I say "import bz2" it says: "No module named bz2".
So I tried recompiling Python, but somehow it won't include the bz2 module. Something goes wrong at compile time, and I am way out of my depth here...:
I did donwload and install libbz2.so but maybe I should copy it somewhere else now..?!?
Does anybody have any idea..?!?
Anything is appreciated!
Thanks!
Tom
I am completely new to Python and I am trying to get some software to run, which crashes because 'module bz2' is missing.
Indeed, if I say "import bz2" it says: "No module named bz2".
So I tried recompiling Python, but somehow it won't include the bz2 module. Something goes wrong at compile time, and I am way out of my depth here...:
Code:
building 'bz2' extension
gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/datalokaal/home/tmp/Python-2.7/Include -I/datalokaal/home/tmp/Python-2.7 -c /datalokaal/home/tmp/Python-2.7/Modules/bz2module.c -o build/temp.linux-x86_64-2.7/datalokaal/home/tmp/Python-2.7/Modules/bz2module.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/datalokaal/home/tmp/Python-2.7/Modules/bz2module.o -L/usr/local/lib -L. -lbz2 -lpython2.7 -o build/lib.linux-x86_64-2.7/bz2.so
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libpython2.7.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
I did donwload and install libbz2.so but maybe I should copy it somewhere else now..?!?
Does anybody have any idea..?!?
Anything is appreciated!
Thanks!
Tom