Opened 16 years ago

Closed 11 years ago

#17850 closed defect (fixed)

python25 -> installation bug on OS 10.5 -> bus error and IDLE crash

Reported by: jmr@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: michaelld (Michael Dickens), MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), mf2k (Frank Schima)
Port: py25-pyqt4

Description

/Applications/MacPorts/MacPython 2.5/IDLE crashes on startup
within python:

from PyQt4 import QtGui

produces a bus error.
The two are probably related.

Change History (13)

comment:1 Changed 16 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Cc: mcalhoun@… added

Cc Me!

comment:2 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to mww@…

IDLE is based on Tk AFAIK, so I don't see why the two problems would be related.

comment:3 Changed 16 years ago by jmroot (Joshua Root)

Owner: changed from mww@… to saispo@…
Port: py25-pyqt4 added; python25 removed

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.

comment:4 Changed 16 years ago 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!

comment:5 Changed 16 years ago 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.

comment:6 in reply to:  4 Changed 16 years ago by jmr@…

Replying to 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.

comment:7 Changed 16 years ago by mf2k (Frank Schima)

Cc: macsforever2000@… added

Cc Me!

comment:8 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:9 Changed 15 years ago by tobypeterson

Priority: HighNormal

comment:10 Changed 14 years ago by jmroot (Joshua Root)

Cc: michaelld@… added
Owner: changed from saispo@… to macports-tickets@…

comment:11 Changed 14 years ago by michaelld (Michael Dickens)

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.

comment:18 Changed 11 years ago by petrrr

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!

comment:19 Changed 11 years ago by michaelld (Michael Dickens)

Resolution: fixed
Status: newclosed

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!

Note: See TracTickets for help on using tickets.