python3-dbg fails to import PyQt4

Bug #1099191 reported by Lee Harr on 2013-01-13
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-qt4 (Ubuntu)
Undecided
Unassigned

Bug Description

On Ubuntu 12.04

The standard python3 imports PyQt4 with no problems:

$ python3
Python 3.2.3 (default, Oct 19 2012, 19:53:57)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4
>>> import PyQt4.QtCore
>>>

However, python3-dbg fails with the same process:

$ python3-dbg
Python 3.2.3 (default, Oct 19 2012, 19:58:54)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4
[60315 refs]
>>> import PyQt4.QtCore
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named QtCore
[150988 refs]
>>>

There is also a python3-pyqt4-dbg package which also does not import
properly.

First, the package has no __init__.py file.

Once that is added:

$ python3
Python 3.2.3 (default, Oct 19 2012, 19:53:57)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path.insert(0, '/usr/lib/debug/usr/lib/python3/dist-packages/')
>>> import PyQt4
>>> PyQt4.__file__
'/usr/lib/debug/usr/lib/python3/dist-packages/PyQt4/__init__.py'
>>> import PyQt4.QtCore
Segmentation fault (core dumped)

(It segfaults trying the same steps with python3-dbg also)

Lee Harr (missive) on 2013-01-13
affects: apport (Ubuntu) → python3-defaults (Ubuntu)
Dmitry Shachnev (mitya57) wrote :

> Segmentation fault (core dumped)

Can you please provide a stacktrace? Also, this has nothing to do with -defaults, moving to python-qt4.

affects: python3-defaults (Ubuntu) → python-qt4 (Ubuntu)
Lee Harr (missive) wrote :

Backtrace of the python3-dbg segfault importing QtCore from the python3-pyqt4-dbg module.

Not sure I am generating this properly. Let me know if you need something different.

Lee Harr (missive) wrote :

Should this be separated in to 2 separate bugs?

There is the issue with python3-dbg not being able to import the regular PyQt4, and

there is the issue with python3 or python3-dbg segfaulting when importing python3-pyqt4-dbg.

Oh, maybe 3 separate issues?

There is also the issue of the missing __init__.py in the python3-pyqt4-dbg package.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers