[PySide] Fwd: Re: pypi package doesn't build on Mageia 4 due to position dependent code
Jonas Thiem
jonasthiem at googlemail.com
Thu Mar 27 16:48:52 CET 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ok it finished, but it has some kind of weird error (also the code it
quotes looks like Python 2.7?):
changing mode of build/scripts-3.3/pyside_postinstall.py from 644
to 755
changing mode of /usr/bin/pyside_postinstall.py to 755
Installing pyside-uic script to /usr/bin
Executing post install script '/usr/bin/pyside_postinstall.py'...
Running process: /usr/bin/python3 /usr/bin/pyside_postinstall.py
- -install
/usr/bin/python3 /usr/bin/pyside_postinstall.py -install
PySide package found in /usr/lib/python3.3/site-packages/PySide...
Patched rpath in
/usr/lib/python3.3/site-packages/PySide/QtUiTools.so to
/usr/lib/python3.3/site-packages/PySide.
Patched rpath in
/usr/lib/python3.3/site-packages/PySide/QtXmlPatterns.so to
/usr/lib/python3.3/site-packages/PySide.
Patched rpath in /usr/lib/python3.3/site-packages/PySide/QtXml.so
to /usr/lib/python3.3/site-packages/PySide.
Patched rpath in /usr/lib/python3.3/site-packages/PySide/QtCore.so
to /usr/lib/python3.3/site-packages/PySide.
Patched rpath in
/usr/lib/python3.3/site-packages/PySide/QtScript.so to
/usr/lib/python3.3/site-packages/PySide.
Patched rpath in
/usr/lib/python3.3/site-packages/PySide/QtOpenGL.so to
/usr/lib/python3.3/site-packages/PySide.
Patched rpath in /usr/lib/python3.3/site-packages/PySide/QtGui.so
to /usr/lib/python3.3/site-packages/PySide.
Patched rpath in
/usr/lib/python3.3/site-packages/PySide/QtMultimedia.so to
/usr/lib/python3.3/site-packages/PySide.
Patched rpath in /usr/lib/python3.3/site-packages/PySide/phonon.so
to /usr/lib/python3.3/site-packages/PySide.
Patched rpath in
/usr/lib/python3.3/site-packages/PySide/QtNetwork.so to
/usr/lib/python3.3/site-packages/PySide.
Patched rpath in /usr/lib/python3.3/site-packages/PySide/QtSql.so
to /usr/lib/python3.3/site-packages/PySide.
Patched rpath in
/usr/lib/python3.3/site-packages/PySide/QtDeclarative.so to
/usr/lib/python3.3/site-packages/PySide.
Patched rpath in /usr/lib/python3.3/site-packages/PySide/shiboken
to /usr/lib/python3.3/site-packages/PySide.
Patched rpath in /usr/lib/python3.3/site-packages/PySide/QtTest.so
to /usr/lib/python3.3/site-packages/PySide.
Patched rpath in
/usr/lib/python3.3/site-packages/PySide/QtScriptTools.so to
/usr/lib/python3.3/site-packages/PySide.
Patched rpath in /usr/lib/python3.3/site-packages/PySide/QtSvg.so
to /usr/lib/python3.3/site-packages/PySide.
Patched rpath in /usr/lib/python3.3/site-packages/PySide/QtHelp.so
to /usr/lib/python3.3/site-packages/PySide.
PySide package successfully installed in
/usr/lib/python3.3/site-packages/PySide...
File
"/usr/lib/python3.3/site-packages/pysideuic/port_v2/load_plugin.py",
line 36
except Exception, e:
^
SyntaxError: invalid syntax
File
"/usr/lib/python3.3/site-packages/pysideuic/port_v2/invoke.py", line 36
except IOError, e:
^
SyntaxError: invalid syntax
File
"/usr/lib/python3.3/site-packages/PySide/examples/widgets/movie/movie.py",
line 72
print "fileName:", fileName
^
SyntaxError: invalid syntax
File
"/usr/lib/python3.3/site-packages/PySide/examples/itemviews/addressbook/newaddresstab.py",
line 85
print "Name:", name
^
SyntaxError: invalid syntax
File
"/usr/lib/python3.3/site-packages/PySide/examples/itemviews/addressbook/adddialogwidget.py",
line 103
print "Name:", name
^
SyntaxError: invalid syntax
File
"/usr/lib/python3.3/site-packages/PySide/examples/declarative/signals/qmltopy4/main.py",
line 42
print s
^
SyntaxError: invalid syntax
Sorry: TabError: inconsistent use of tabs and spaces in
indentation (main.py, line 45)
Sorry: TabError: inconsistent use of tabs and spaces in
indentation (main.py, line 50)
Sorry: TabError: inconsistent use of tabs and spaces in
indentation (main.py, line 57)
File
"/usr/lib/python3.3/site-packages/PySide/examples/declarative/photoviewer/main.py",
line 234
print "Must provide a username"
^
SyntaxError: invalid syntax
Successfully installed PySide
Cleaning up...
[root at localhost jonas]#
Would I need to worry about that?
On 03/27/2014 04:05 PM, Jonas Thiem wrote:
> This seems to work :-) so far it's compiling happily. Many thanks!
>
> Maybe the Pypi package could somehow detect Qt5, and then throw
> some sort of warning? I guess that would help against accidentally
> compiling it with Qt5.
>
> On 03/27/2014 03:23 PM, Roman Lacko wrote:
>> please try following:
>
>> python3-pip install PySide
>> --install-option="--qmake=/path/to/qt4-qmake"
>
>
>> 2014-03-27 15:16 GMT+01:00 Jonas Thiem <jonasthiem at googlemail.com
>> <mailto:jonasthiem at googlemail.com>>:
>
>> I messed up sending this one to the list: -------- Original
>> Message -------- Subject: Re: [PySide] pypi package doesn't build
>> on Mageia 4 due to position dependent code Date: Thu, 27 Mar 2014
>> 15:10:12 +0100 From: Jonas Thiem <jonasthiem at googlemail.com
>> <mailto:jonasthiem at googlemail.com>> To: Roman Lacko
>> <backup.rlacko at gmail.com <mailto:backup.rlacko at gmail.com>>
>
>> I didn't do anything except type python3-pip install PySide. How
>> would I make sure it builds against Qt4? (libqt4-devel is
>> installed)
>
>> On 03/27/2014 02:59 PM, Roman Lacko wrote:
>>> PySide does not support Qt 5 You need to build PySide against
>>> Qt 4
>
>>> ============================== Package version: 1.2.1 Build
>>> type: Release Build tests: False --- Make path: /usr/bin/make
>>> Make generator: Unix Makefiles Make jobs: --- Script directory:
>>> /tmp/pip_build_root/PySide Sources directory:
>>> /tmp/pip_build_root/PySide/sources Build directory:
>>> /tmp/pip_build_root/PySide/pyside_build/py3.3-qt5.2.0-64bit-release
>
>>>
>>>
>
>> Install
>
>> directory:
>>> /tmp/pip_build_root/PySide/pyside_install/py3.3-qt5.2.0-64bit-release
>
>>>
>>>
>
>> Python
>
>> site-packages install directory:
>
>> /tmp/pip_build_root/PySide/pyside_install/py3.3-qt5.2.0-64bit-release/lib64/python3.3/site-packages
>
>>
>
>
>> ---
>
>
>> Python executable: /usr/bin/python3 Python includes:
>>> /usr/include/python3.3m Python library:
>>> /usr/lib64/libpython3.3m.so <http://libpython3.3m.so>
>> <http://libpython3.3m.so> Python
>>> prefix: /usr Python scripts: /usr/bin --- Qt qmake:
>>> /usr/bin/qmake Qt version: 5.2.0 Qt bins: /usr/lib64/qt5/bin
>>> Qt plugins: /usr/lib64/qt5/plugins --- OpenSSL libs: None
>>> ============================== ...
>
>
>
>>> 2014-03-27 14:37 GMT+01:00 Jonas Thiem
>>> <jonasthiem at googlemail.com
>> <mailto:jonasthiem at googlemail.com>
>>> <mailto:jonasthiem at googlemail.com
>> <mailto:jonasthiem at googlemail.com>>>:
>
>>> Hi everyone,
>
>>> I wanted to use PySide with Python 3, but sadly Mageia 4
>>> doesn't ship PySide packages for Python 3 (just 2.x). Therefore
>>> I tried installing it with python3-pip. Unfortunately, it
>>> doesn't work:
>
>
>>> Excerpt from the terminal output (full output is attached):
>
>>> ...
>
>>> [ 4%] Building CXX object
>>> ApiExtractor/CMakeFiles/apiextractor.dir/apiextractor.cpp.o
>
>>> In file included from
>>> /usr/lib64/qt5/include/QtCore/qchar.h:45:0,
>
>>> from /usr/lib64/qt5/include/QtCore/qhash.h:45,
>
>>> from /usr/lib64/qt5/include/QtCore/QHash:1,
>
>>> from
>
>> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/typesystem.h:27,
>
>>
>
>
>
>> from
>
>> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/abstractmetalang.h:27,
>
>>
>
>
>
>> from
>
>> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/apiextractor.h:28,
>
>>
>
>
>
>> from
>
>> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/apiextractor.cpp:24:
>
>>
>
>
>
>> /usr/lib64/qt5/include/QtCore/qglobal.h:996:4: error: #error
>> "You
>>> must build your code with position independent code if Qt was
>>> built with -reduce-relocations. " "Compile your code with
>>> -fPIC or -fPIE."
>
>>> # error "You must build your code with position independent
>>> code if Qt was built with -reduce-relocations. "\
>
>>> ^
>
>
>> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/apiextractor.cpp:
>
>>
>
>
>> In
>
>> function ?bool preprocess(const QString&, QFile&, const
>>> QStringList&)?:
>
>
>> /tmp/pip_build_root/PySide/sources/shiboken/ApiExtractor/apiextractor.cpp:273:38:
>
>>
>
>
>> error:
>
>> ?convertSeparators? is not a member of ?QDir?
>
>>> ...
>
>
>>> So it appears all that is missing is a simple -fPIC compile
>>> option. Is there a chance this can fixed in the near future?
>>> I'm happy to retest stuff or modify files if given suitable
>>> instructions for further testing.
>
>>> Regards, Jonas Thiem
>
>>> _______________________________________________ PySide mailing
>>> list PySide at qt-project.org <mailto:PySide at qt-project.org>
>> <mailto:PySide at qt-project.org <mailto:PySide at qt-project.org>>
>>> http://lists.qt-project.org/mailman/listinfo/pyside
>
>
>> _______________________________________________ PySide mailing
>> list PySide at qt-project.org <mailto:PySide at qt-project.org>
>> http://lists.qt-project.org/mailman/listinfo/pyside
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJTNEhcAAoJEBIDTbbx8YkeOzsP/il7iBK73OBFdHeH54PHFO9j
wx922FjPotaeVGwlZ8Ch8D43u+wsD7W6gWkBRAIGRWNdDNYceVDyAAj278Yb27c3
HYYcHqAJyZb/34OBwk4Fx32KoTPGrQAYLXqlG6171qa1EzWPy0qNW7u/o8hEs5mf
8xILCRyZv/MhkPJ8Iq+h9KYNjNRP1rQE3fATjxsJy5C5xnFQsNlr2gZGpPE+3Co0
EWXwaSDLzpfR62YtnyXKE0X7apW/Lfvm9io/PoVhcXomHXuwsAcEwrpC+jOgDm7K
v+8MKUgEOkjzoYrTYyQ+Kw2eRgsCVUz+f5C5orhYfv6g27IrRAmevpkkXhXLWFqD
NZQmPTL9Zm5c4ipII7PpZXgT65YOFWz0EfKIBr0HVrNo1tRyny2M+Wdhev/lp+iu
io2zS5rUMjv76juRCofL2Sd3pQpp8A39wYJWNHndw5vQXldRigRwYZs797ZJAqlS
4H4LrmaoNyQPbWRFN+T5OP/vucZ1OVtYy4KFfBflQ/cKaZ5Ii7/wNiverHl0BsDB
EaNyOeU5c9QxgG3JRa6RLjMCni+1ijDBLhwprcUY1lvD0r27v/DhY3c8GbyDA3qU
cLgc62FyRKqAm2hH8odnJNRh5JU2bHmnbPFQZIh3UrEHt9HA6Nmi78704SjBKm79
g/rrJYf+fe5N4bm8UJpf
=Z2yo
-----END PGP SIGNATURE-----
More information about the PySide
mailing list