python3-dbg fails to import PyQt4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-qt4 (Ubuntu) |
New
|
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/
>>> import PyQt4
>>> PyQt4.__file__
'/usr/lib/
>>> import PyQt4.QtCore
Segmentation fault (core dumped)
(It segfaults trying the same steps with python3-dbg also)
affects: | apport (Ubuntu) → python3-defaults (Ubuntu) |
> Segmentation fault (core dumped)
Can you please provide a stacktrace? Also, this has nothing to do with -defaults, moving to python-qt4.