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 690 - installer installes bad packages on mac
: installer installes bad packages on mac
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: Macintosh Mac OS
: P4 major
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-02-18 18:11 EET by Allan Davis
Modified: 2011-04-01 23:15 EEST (History)
10 users (show)

See Also:


Attachments
Example file i use to test (299 bytes, text/x-python-script)
2011-02-18 18:12 EET, Allan Davis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Davis 2011-02-18 18:11:06 EET
For RC1 I installed the binaries for both python 2.6 and 2.7 both installed
successfully.  The installations do not work They both fail with different
errors. I have attached the test code i was working with.  It is just the
simple hello world example from the site. 
I am using QT 4.7.1 on mac 

for python 2.6 I get this trace back

Traceback (most recent call last):
  File "pyside_test.py", line 5, in <module>
    from PySide.QtCore import *
  File
"/Users/jokey/Projekte/pyside-packaging/osx/PYSIDE_TMP_snapshot/install/site-packages/PySide/__init__.py",
line 2, in <module>

  File
"/Users/jokey/Projekte/pyside-packaging/osx/PYSIDE_TMP_snapshot/install/site-packages/PySide/private.py",
line 2, in <module>
ImportError: dlopen(/Library/Python/2.6/site-packages/PySide/QtCore.so, 2):
Symbol not found: _PyCapsule_Import
  Referenced from: /Library/Python/2.6/site-packages/PySide/QtCore.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/PySide/QtCore.so


for python 2.7 

Traceback (most recent call last):
  File "pyside_test.py", line 6, in <module>
    from PySide.QtGui import QLabel
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PySide/QtGui.so,
2): Symbol not found: __ZN18QTapAndHoldGesture10setTimeoutEi
  Referenced from:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PySide/QtGui.so
  Expected in: /Library/Frameworks/QtGui.framework/Versions/4/QtGui
 in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PySide/QtGui.so
Comment 1 Allan Davis 2011-02-18 18:12:01 EET
Created attachment 270 [details]
Example file i use to test
Comment 2 Hugo Parente Lima 2011-02-21 15:20:08 EET
Thanks for reporting, but if you could contact the maintainer of MacOSX
installer directly would be even better as the PySide project only do source
releases, all binary release are create by contributors.
Comment 3 Jari Tenhunen 2011-03-06 23:28:43 EET
+1. The provided PySide binaries do not work at all.

(In reply to comment #2)
> Thanks for reporting, but if you could contact the maintainer of MacOSX
> installer directly would be even better as the PySide project only do source
> releases, all binary release are create by contributors.

Do you have the contact info of the maintainer?
Comment 4 Jari Tenhunen 2011-03-06 23:29:21 EET
(In reply to comment #3)
> +1. The provided PySide binaries do not work at all.
> 
> (In reply to comment #2)
> > Thanks for reporting, but if you could contact the maintainer of MacOSX
> > installer directly would be even better as the PySide project only do source
> > releases, all binary release are create by contributors.
> 
> Do you have the contact info of the maintainer?

Oops, there it was on the page. Adding to CC.
Comment 5 Markus Ullmann 2011-03-07 00:34:20 EET
rc1 contained precompiled .pyc files from my system, hence failure is kind of
expected. The release doesn't contain these files though, hence it's weird that
this issue still persists
Comment 6 Allan Davis 2011-03-07 02:20:25 EET
I installed QT 4.7.2 and pyside 1.0 release and the test code works fine.
Comment 7 Jari Tenhunen 2011-03-07 08:10:42 EET
(In reply to comment #6)
> I installed QT 4.7.2 and pyside 1.0 release and the test code works fine.

Not so fast.

It does not still work for all, including me. Trie with Qt 4.7.1 and 4.7.2
(Cocoa versions):

jari@macbook:~ $ /usr/bin/python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import PySide
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Python/2.6/site-packages/PySide/__init__.py", line 2, in
<module>
    import private
  File "/Library/Python/2.6/site-packages/PySide/private.py", line 2, in
<module>
    from QtCore import __moduleShutdown
ImportError: dlopen(/Library/Python/2.6/site-packages/PySide/QtCore.so, 2):
Symbol not found: _PyCapsule_Import
  Referenced from: /Library/Python/2.6/site-packages/PySide/QtCore.so
  Expected in: flat namespace
 in /Library/Python/2.6/site-packages/PySide/QtCore.so
>>>
Comment 8 Markus Ullmann 2011-03-07 09:06:06 EET
Okay, Tracing stuff down now, looks like shiboken uses the python versions it
wants instead of the one I told it to use.

As I didn't have py2.7 installed when I build the last working beta version,
it's kind of expected that the version from that time works... will look into
it now. 
In case someone is willing to do tracing as well... Look out for the Date/Time
wrapping. That breaks somewhere.
Comment 9 Markus Ullmann 2011-03-12 02:19:50 EET
Okay, should work okay now, uploaded a new version at
http://pyside.markus-ullmann.de/pyside-1.0.0-qt47-py26apple-r1.pkg

That includes the fix, please test
Comment 10 Jari Tenhunen 2011-03-12 09:39:32 EET
(In reply to comment #9)
> Okay, should work okay now, uploaded a new version at
> http://pyside.markus-ullmann.de/pyside-1.0.0-qt47-py26apple-r1.pkg
> 
> That includes the fix, please test

Thanks. The problem seems to be gone now.
Comment 11 Markus Ullmann 2011-03-12 14:06:48 EET
Done
Comment 12 Hugo Parente Lima 2011-04-01 23:15:52 EEST
Closing bug after release of PySide 1.0.1.