[MacPorts] #18452: PyQt4 makes Python 2.5 crash with "Bus Error" when importing QtWebKit module

MacPorts noreply at macports.org
Tue Mar 17 07:16:34 PDT 2009


#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


More information about the macports-tickets mailing list