[MacPorts] #17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash
#17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash -------------------------+-------------------------------------------------- Reporter: jmr@… | Owner: macports-tickets@… Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: python25 -------------------------+-------------------------------------------------- /Applications/MacPorts/MacPython 2.5/IDLE crashes on startup[[BR]] within python: {{{ from PyQt4 import QtGui }}} produces a bus error.[[BR]] The two are probably related. -- Ticket URL: <http://trac.macports.org/ticket/17850> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash -------------------------+-------------------------------------------------- Reporter: jmr@… | Owner: mww@… Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: python25 -------------------------+-------------------------------------------------- Changes (by jmr@…): * owner: macports-tickets@… => mww@… Comment: IDLE is based on Tk AFAIK, so I don't see why the two problems would be related. -- Ticket URL: <http://trac.macports.org/ticket/17850#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash -------------------------+-------------------------------------------------- Reporter: jmr@… | Owner: saispo@… Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: py25-pyqt4 -------------------------+-------------------------------------------------- Changes (by jmr@…): * owner: mww@… => saispo@… * port: python25 => py25-pyqt4 Comment: In fact, you probably just need to install py25-tkinter for IDLE to work. I know it's a "standard" module, but that's just how python25 is set up at present. Discussions on the possibility of changing that are ongoing. That just leaves the PyQt4 problem, so this really belongs to py25-pyqt4's maintainer. -- Ticket URL: <http://trac.macports.org/ticket/17850#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash -------------------------+-------------------------------------------------- Reporter: jmr@… | Owner: saispo@… Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: py25-pyqt4 -------------------------+-------------------------------------------------- Comment(by creechley@…): This does seem to be related to PyQt4. Whenever QtCore or QtGui are imported python crashes with bus error. Gdb gives the following output: {{{ Program received signal SIGTRAP, Trace/breakpoint trap. 0x8fe01010 in __dyld__dyld_start () }}} Searching around turns up very little about this. Any help would be appreciated! -- Ticket URL: <http://trac.macports.org/ticket/17850#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash -------------------------+-------------------------------------------------- Reporter: jmr@… | Owner: saispo@… Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: py25-pyqt4 -------------------------+-------------------------------------------------- Comment(by jmr@…): I ended up installing a py25 distribution from EPD. Their distribution is similar to active state's except that they include lots of numerical libraries like numpy, etc. I already had a GPL-version of Qt from trolltech installed. I then build pyqt4 from source according to riverbank's instructions (build SiP first, etc.). I then built pyqtw 5.1 from source (sourceforge). Things seem to work. The main (mostly undocumented) problem is communication between the GUI instances and the python interpreter. pyqt4 needs libraries like sip to run. See riverbank's site for more info on dependencies. -- Ticket URL: <http://trac.macports.org/ticket/17850#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash -------------------------+-------------------------------------------------- Reporter: jmr@… | Owner: saispo@… Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.7.0 Keywords: | Port: py25-pyqt4 -------------------------+-------------------------------------------------- Comment(by jmr@…): Replying to [comment:4 creechley@…]:
This does seem to be related to PyQt4. Whenever QtCore or QtGui are imported python crashes with bus error. Gdb gives the following output: {{{ Program received signal SIGTRAP, Trace/breakpoint trap. 0x8fe01010 in __dyld__dyld_start () }}} Searching around turns up very little about this. Any help would be appreciated!
I ended up installing a py25 distribution from EPD. Their distribution is similar to active state's except that they include lots of numerical libraries like numpy, etc. I already had a GPL-version of Qt from trolltech installed. I then build pyqt4 from source according to riverbank's instructions (build SiP first, etc.). I then built pyqtw 5.1 from source (sourceforge). Things seem to work. The main (mostly undocumented) problem is communication between the GUI instances and the python interpreter. pyqt4 needs libraries like sip to run. See riverbank's site for more info on dependencies. -- Ticket URL: <http://trac.macports.org/ticket/17850#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash -------------------------+-------------------------------------------------- Reporter: jmr@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: | Port: py25-pyqt4 -------------------------+-------------------------------------------------- Changes (by jmr@…): * owner: saispo@… => macports-tickets@… * cc: michaelld@… (added) -- Ticket URL: <https://trac.macports.org/ticket/17850#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash -------------------------+-------------------------------------------------- Reporter: jmr@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Keywords: | Port: py25-pyqt4 -------------------------+-------------------------------------------------- Comment(by michaelld@…): 1) IDLE does not work for me either: {{{ % /Applications/MacPorts/Python\ 2.6/IDLE.app/Contents/MacOS/IDLE ** IDLE can't import Tkinter. Your Python may not be configured for Tk. ** }}} 2) I don't have Python25 (or 10.5) installed, but "from PyQt4 import QtGui" works for me on Python26 & 10.6. -- Ticket URL: <https://trac.macports.org/ticket/17850#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash -------------------------+-------------------------------- Reporter: jmr@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: | Keywords: Port: py25-pyqt4 | -------------------------+-------------------------------- Comment (by Peter.Danecek@…): I discovered this old ticket. I believe this is now outdated python 2.5 and OS X 10.5 are not supported any more. So I guess this ticket could be closed! -- Ticket URL: <https://trac.macports.org/ticket/17850#comment:18> MacPorts <http://www.macports.org/> Ports system for OS X
#17850: python25 -> installation bug on OS 10.5 -> bus error and IDLE crash -------------------------+-------------------------------- Reporter: jmr@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.7.0 Resolution: fixed | Keywords: Port: py25-pyqt4 | -------------------------+-------------------------------- Changes (by michaelld@…): * status: new => closed * resolution: => fixed Comment: IDLE 2.7 works for me, and does the import correctly. So, yes, I think this ticket was fixed a while ago as well as is no longer relevant. Thanks for the pointer! -- Ticket URL: <https://trac.macports.org/ticket/17850#comment:19> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts