PyQt4 - Phonon - Mac build issue

598 views Asked by At

I am having a problem with Phonon in PyQt and was wondering whether anybody else had come across it. I have built SIP and PyQt with Qt 4.8 successfully from these sources:

Qt Libraries
qt-mac-opensource-4.8.5.dmg

Sip
sip-4.15.1

PyQt
PyQt-mac-gpl-4.10.3

I can import and use the PyQt modules fine except for Phonon. When I try to import Phonon with:

from PyQt4 import Phonon

I get the following error:

ImportError: dlopen(/Volumes/SYSTEM/Python_Environment/Python2.7/MAC/codebase-django-env/lib/python2.7/site-packages/PyQt4/phonon.so, 
2): Symbol not found: __ZN6Phonon22ObjectDescriptionModelILNS_21ObjectDescriptionTypeE0EE11qt_metacastEPKc
Referenced from: /Volumes/SYSTEM/Python_Environment/Python2.7/MAC/codebase-django-env/lib/python2.7/site-packages/PyQt4/phonon.so
Expected in: flat namespace
in /Volumes/SYSTEM/Python_Environment/Python2.7/MAC/codebase-django-env/lib/python2.7/site-packages/PyQt4/phonon.so

Has anybody come across this and is there a solution? I am trying to avoid MacPort and Homebrew if possible.

2

There are 2 answers

0
Daniel Lloyd-Wood On

Ok so I gave up and went to Macports which worked.

I installed the PyQt4 from Macports and then copied the PyQt folders from stie-packages into my virtualenv. I also copied over the Sip files.

0
Giancarlo Sportelli On

I've found this bug report https://bugreports.qt-project.org/browse/QTBUG-37209, I hope this will be solved with Qt 4.8.7.