PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 275 - PySide linking/compile-time
: PySide linking/compile-time
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: All All
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-08-01 18:37 EEST by Tomi R.
Modified: 2010-11-25 17:48 EET (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomi R. 2010-08-01 18:37:43 EEST
When trying to run a certain app from it's .py-file (for example on Nokia N900
Alarmed, 3rd party software) one may get the following instead of launching the
program.

Nokia-N900-42-11:~# python /opt/alarmed/alarmed.py 
:: Starting alarmed GUI
Traceback (most recent call last):
  File "/opt/alarmed/alarmed.py", line 91, in <module>
    import alarmed_gui
  File "/opt/alarmed/alarmed_gui.py", line 9, in <module>
    from PySide import QtCore, QtGui, QtMaemo5
ImportError: /usr/lib/python2.5/site-packages/PySide/QtCore.so: undefined
symbol:
_ZN6PySide18DynamicQMetaObject13createBasedOnEP7_objectP11_typeobjectPK11QMetaObject

I've contacted the author of the app, whom told me, that it's a bug with few
users and not related to the app itself but rather to the PySide (assumably a
bug within the linker/compile-time). The way to reproduce it would be inserting
this to the X-Term:

Nokia-N900-42-11:~# python
Python 2.5.4 (r254:67916, Nov 26 2009, 22:24:46) 
[GCC 4.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide import QtCore
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib/python2.5/site-packages/PySide/QtCore.so: undefined
symbol:
_ZN6PySide18DynamicQMetaObject13createBasedOnEP7_objectP11_typeobjectPK11QMetaObject
Comment 1 Tomi R. 2010-08-01 18:44:03 EEST
Apologies for the spam, I forgot to fix the description before posting it. On
third paragraph (Nokia-N900-42-11:~#11 python and below that) I mean to paste
this instead:

1. Type in (the X-Term, for example) "python" without commas
2. Type in "from PySide import QtCore" without commas
3. You should get this:

Python 2.5.4 (r254:67916, Nov 26 2009, 22:24:46) 
[GCC 4.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide import QtCore
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib/python2.5/site-packages/PySide/QtCore.so: undefined
symbol:
_ZN6PySide18DynamicQMetaObject13createBasedOnEP7_objectP11_typeobjectPK11QMetaObject

Again, apologies for the spam, my fault since I forgot to double-check this
before posting it.
Comment 2 renato filho 2010-08-02 11:49:36 EEST
This is apparently a problem with binary compatibility between PySide and Qt,
maybe a new Qt update has broken the compatibility between the libs, we will
release a new PySide version this week and this will fix this problem.
Comment 3 Luciano Wolf 2010-08-05 14:54:54 EEST
Release 0.4.0-1maemo3 resolved the problem.
Comment 4 gt6 2010-09-26 07:44:02 EEST
The problem resurfaced for one of the users on t.m.o.:


/opt/alarmed $ ./alarmed.py 
:: Starting alarmed GUI
Traceback (most recent call last):
  File "./alarmed.py", line 91, in <module>
    import alarmed_gui
  File "/opt/alarmed/alarmed_gui.py", line 9, in <module>
    from PySide import QtCore, QtGui, QtMaemo5
  File "/usr/lib/python2.5/site-packages/PySide/__init__.py", line 2, in
<module>
    import private
  File "/usr/lib/python2.5/site-packages/PySide/private.py", line 2, in
<module>
    from QtCore import __moduleShutdown
ImportError: /usr/lib/python2.5/site-packages/PySide/QtCore.so: undefined
symbol: _ZN6PySide14signal_connectEP7_objectPKcS1_


He is using the latest qt and pyside packages (pyside-qt4 0.4.1-1maemo2)
Comment 5 renato filho 2010-09-27 19:45:29 EEST
Please check if you have all latest PySide  released libraries, this error is
caused when you mix some old libraries with the new ones.
Comment 6 renato filho 2010-10-18 18:03:18 EEST
works fine with pyside+qt4.6-0.4.2
Comment 7 renato filho 2010-11-25 17:48:08 EET
released on 1.0.0~beta1