Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have Ubuntu 10.04 wich Qt 4.8.5, and recently I have been trying to install PySide to create gui for my appliaction. After I am installing it via pip I get an error which is not common as I could not find anything in google about it, here are logs from pip:

[ 81%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/typeresolver.cpp.o

[ 83%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/shibokenbuffer.cpp.o

Linking CXX shared library libshiboken-python2.7.so

/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' 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

make[2]: *** [libshiboken/libshiboken-python2.7.so.1.2.1] Błąd 1

make[1]: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Błąd 2

make: *** [all] Błąd 2

error: Error compiling shiboken

----------------------------------------
Cleaning up...
Command /usr/local/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/pyside/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-EL3r4y-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip_build_root/pyside
Traceback (most recent call last):
  File "/usr/local/bin/pip", line 9, in <module>
    load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
  File "/usr/local/lib/python2.7/site-packages/pip/__init__.py", line 148, in main
    return command.main(args[1:], options)
  File "/usr/local/lib/python2.7/site-packages/pip/basecommand.py", line 169, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 98: ordinal not in range(128)

I also tried to install by building it myself, as from instructions at site: https://github.com/PySide/pyside-setup But I also received similar problem:

[ 81%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/typeresolver.cpp.o
[ 83%] Building CXX object libshiboken/CMakeFiles/libshiboken.dir/shibokenbuffer.cpp.o
Linking CXX shared library libshiboken-python2.7.so
/usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata.str1.8' 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
make[2]: *** [libshiboken/libshiboken-python2.7.so.1.2.1] Błąd 1
make[1]: *** [libshiboken/CMakeFiles/libshiboken.dir/all] Błąd 2
make: *** [all] Błąd 2
error: Error compiling shiboken

Can anyone tell me why this is happening ? I have been reinstaling cmake, and Qt several times by various methods but nothing helped. I think that this may be caused by two verions of python I have on my Ubuntu (2.6 and 2.7). In past I have used PyQt4 on python 2.6, and it worked well, I also installed for test PySide on python 2.6 and it worked also.

share|improve this question
    
10.04 is out of support (and has been for a while). It's a pretty bad idea to keep running on it as you're not getting security updates... And it's therefore not on-topic here. Also, why aren't you using the python-pyside package over installing by pip? –  Oli Sep 16 '13 at 11:21
    
I didn't have any choice - I was obligated to use 10.04 version (now it changed but I already have all system ready for working - maybe I will chenge it but not right now when I have other things obliged to). apt-get cannot (or I didn't found it how) change swiftly between python installations, as for me I is connected to old version of python (2.6) and it only installs packages for it. –  lagoru Sep 16 '13 at 12:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.