Opened 13 years ago
Closed 12 years ago
#32986 closed defect (fixed)
py27-pyqt4 @4.9_0 Phonon module not found
Reported by: | jasonmajors@… | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | Cc: | jasonmajors@… | |
Port: | py27-pyqt4 |
Description
I'm trying to use an app that uses pyqt. When I run it, I get an error about not being able to import phonon. I am able to import PyQt4 however. I've reproduced it without the app by trying the imports under the interpreter:
[jason@fry]$ which python2.7 /opt/local/bin/python2.7 [jason@fry]$ python2.7 Python 2.7.2 (default, Jan 22 2012, 12:20:17) [GCC 4.2.1 Compatible Apple Clang 3.0 (tags/Apple/clang-211.12)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import PyQt4 >>> from PyQt4.phonon import Phonon Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named phonon
Here are the ports I've installed.
[jason@fry]$ port installed The following ports are currently installed: autoconf @2.68_2 (active) automake @1.11.2_0 (active) automoc @0.9.88_3 (active) bzip2 @1.0.6_0 (active) cmake @2.8.6_0 (active) db46 @4.6.21_6 (active) dbus @1.4.16_0 (active) expat @2.0.1_1 (active) gdbm @1.10_1 (active) gettext @0.18.1.1_2 (active) glib2 @2.30.2_2 (active) gperf @3.0.4_2 (active) help2man @1.40.4_1 (active) jpeg @8c_0 (active) lcms @1.19_2 (active) libedit @20110802-3.0_0 (active) libffi @3.0.10_2 (active) libiconv @1.14_0 (active) libidn @1.22_0 (active) libmng @1.0.10_2 (active) libpng @1.4.8_0 (active) libtool @2.4.2_0 (active) m4 @1.4.16_0 (active) ncurses @5.9_1 (active) ncursesw @5.8_0 (active) openssl @1.0.0g_0 (active) p5.12-locale-gettext @1.50.0_6 (active) perl5 @5.12.3_1+perl5_12 (active) perl5.12 @5.12.3_3 (active) phonon @4.4.2_3 (active) pkgconfig @0.26_1 (active) py-pyqt4 @4.9_0 (active) py24-pyqt4 @4.9_0 (active) py24-sip @4.13.1_0 (active) py27-pyqt4 @4.9_0 (active) py27-sip @4.13.1_0 (active) python24 @2.4.6_10 (active) python27 @2.7.2_4 (active) python_select @0.3_1 (active) qt4-mac @4.7.4_1+quartz (active) sqlite3 @3.7.10_0 (active) tiff @3.9.5_0 (active) xz @5.0.3_0 (active) zlib @1.2.5_0 (active)
Change History (5)
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to michaelld@… |
---|
comment:2 Changed 13 years ago by jasonmajors@…
Cc: | jasonmajors@… added |
---|
comment:3 Changed 12 years ago by michaelld (Michael Dickens)
If this ticket is still valid, can you do the following:
sudo port clean py27-pyqt4 sudo port selfupdate
and then try to install or upgrade py27-pyqt4 again. There's a new qt4-mac that will hopefully fix this issue.
comment:4 Changed 12 years ago by michaelld (Michael Dickens)
In the past few months, qt4-mac, phonon, and py27-pyqt4 have all been updated. Maybe these updates have fixed the issue of this ticket? I'm working on getting ports working on 10.8 right now, so I have a bit of a queue to get to this one. But, I'll try it out once I do get there. In the mean time, maybe the OP can work on the issue too?
comment:5 Changed 12 years ago by michaelld (Michael Dickens)
Resolution: | → fixed |
---|---|
Status: | new → closed |
There was an issue where if qt4-mac were installed as a framework, then SIP wouldn't find Phonon correctly since it would always look for it as a framework too. This was fixed in r97331.
That said, I believe the original issue was that py27-pyqt4 wasn't installed with +phonon.
By now, we have OP timeout. Hence, closing the ticket as fixed.
Cc Me!