[MacPorts] #22247: though, it's installed, python can't find pyqt4
MacPorts
noreply at macports.org
Tue Oct 27 10:25:36 PDT 2009
#22247: though, it's installed, python can't find pyqt4
-----------------------------+----------------------------------------------
Reporter: anatuss@… | Owner: saispo@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: py26-pyqt4
-----------------------------+----------------------------------------------
Comment(by anatuss@…):
{{{
/o/l/L/F/P/V/2/l/p/s/PyQt4> ls
Qt.so QtDesigner.so QtNetwork.so QtScriptTools.so
QtTest.so QtXmlPatterns.so pyqtconfig.py
QtAssistant.so QtGui.so QtOpenGL.so QtSql.so
QtWebKit.so __init__.py uic
QtCore.so QtHelp.so QtScript.so QtSvg.so
QtXml.so _qt.so
/o/l/L/F/P/V/2/l/p/s/PyQt4> ls uic/
Compiler __init__.py exceptions.py objcreator.py port_v3
pyuic.py widget-plugins
Loader driver.py icon_cache.py port_v2 properties.py
uiparser.py
}}}
To make PyQt work one needs to "configure" sip. This works for me. But ...
{{{
/o/l/L/F/P/V/2/l/p/s/PyQt4> python2.6 pyqtconfig.py
Traceback (most recent call last):
File "pyqtconfig.py", line 32, in <module>
import sipconfig
ImportError: No module named sipconfig
}}}
Though it's one directory up. I guess (but I don't know how to do this.
I'd be glad to get a clue) the packages aren't "registered". Maybe one
needs to use sys and change the path.
--
Ticket URL: <http://trac.macports.org/ticket/22247#comment:8>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list