[Bug 1099191] Re: python3-dbg fails to import PyQt4

Lee Harr missive at hotmail.com
Tue Jan 15 00:58:08 UTC 2013


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.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python-qt4 in Ubuntu.
https://bugs.launchpad.net/bugs/1099191

Title:
  python3-dbg fails to import PyQt4

Status in “python-qt4” package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/1099191/+subscriptions




More information about the foundations-bugs mailing list