New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #17850 (new defect)

Opened 3 years ago

Last modified 16 months ago

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@…, mcalhoun@…, macsforever2000@…
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

  Changed 3 years ago by mcalhoun@…

  • cc mcalhoun@… added

Cc Me!

  Changed 3 years ago by jmr@…

  • 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.

  Changed 3 years ago by jmr@…

  • owner changed from mww@… to saispo@…
  • port changed from python25 to py25-pyqt4

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.

follow-up: ↓ 6   Changed 3 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!

  Changed 3 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.

in reply to: ↑ 4   Changed 3 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 dylddyld_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.

  Changed 3 years ago by macsforever2000@…

  • cc macsforever2000@… added

Cc Me!

  Changed 3 years ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

  Changed 3 years ago by toby@…

  • priority changed from High to Normal

  Changed 16 months ago by jmr@…

  • owner changed from saispo@… to macports-tickets@…
  • cc michaelld@… added

  Changed 16 months ago 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.

Note: See TracTickets for help on using tickets.