[MacPorts] #18452: PyQt4 makes Python 2.5 crash with "Bus Error" when importing QtWebKit module
#18452: PyQt4 makes Python 2.5 crash with "Bus Error" when importing QtWebKit module ---------------------------------+------------------------------------------ Reporter: henrique@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: ---------------------------------+------------------------------------------ This error happens only with the QtWebKit module. To reproduce, install the ports py25-sip @4.7.6 and py25-pyqt4 @4.4.3 Then run python interpreter and: {{{ from PyQt4 import QtWebKit }}} It should crash with a "Bus Error" message. -- Ticket URL: <http://trac.macports.org/ticket/18452> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18452: PyQt4 makes Python 2.5 crash with "Bus Error" when importing QtWebKit module ---------------------------------+------------------------------------------ Reporter: henrique@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: ---------------------------------+------------------------------------------ Comment(by henrique@…): This error stops after update py25-sip to 4.7.9 and py25-pyqt4 to 4.4.4 The patches were already submitted for py25-sip @4.7.9 (#18424) and for py25-pyqt4 @4.4.4 (#18423) Download the patches and apply then to your ports: {{{ patch /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py25-sip/Portfile Port-py25-sip.diff patch /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py25-pyqt4/Portfile Port-py25-pyqt4.diff }}} -- Ticket URL: <http://trac.macports.org/ticket/18452#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18452: PyQt4 makes Python 2.5 crash with "Bus Error" when importing QtWebKit module ---------------------------------+------------------------------------------ Reporter: henrique@… | Owner: saispo@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: qt4 | Port: py25-pyqt4 ---------------------------------+------------------------------------------ Changes (by macsforever2000@…): * keywords: => qt4 * owner: macports-tickets@… => saispo@… * port: => py25-pyqt4 -- Ticket URL: <http://trac.macports.org/ticket/18452#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18452: PyQt4 makes Python 2.5 crash with "Bus Error" when importing QtWebKit module ---------------------------------+------------------------------------------ Reporter: henrique@… | Owner: saispo@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: qt4 | Port: py25-pyqt4 ---------------------------------+------------------------------------------ Comment(by jonas@…): I experienced the same crash with ''every'' PyQt4 module, no matter if QtWebKit, QtGui, ... This is caused if you forget to switch to python2.5 '''before''' building sip and pyqt4. They build against mac os x' native python. So the solution: {{{ sudo port install python_select sudo python_select python25 }}} and then rebuild (watch out that you don't simply reinstall the old version) py25-sip and py25-pyqt4. This time `python` is /opt/local/bin/python, which points to python2.5. The py25-pyqt4 port should test "from PyQt4 import QtGui" and not just "import PyQt4" as this file is just empty. (I also updated openssl and py25-hashlib in the mean time, as suggested by [http://hmijailblog.blogspot.com/2008/09/bus-error-in-macports-python.html this blog] but in my eyes the problem is that some thing in the chain compiled against /usr/bin/python) -- Ticket URL: <http://trac.macports.org/ticket/18452#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#18452: PyQt4 makes Python 2.5 crash with "Bus Error" when importing QtWebKit module ----------------------------------+----------------------------------------- Reporter: henrique@… | Owner: saispo@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.7.0 Resolution: worksforme | Keywords: qt4 Port: py25-pyqt4 | ----------------------------------+----------------------------------------- Changes (by macsforever2000@…): * status: new => closed * resolution: => worksforme -- Ticket URL: <http://trac.macports.org/ticket/18452#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts