Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #36278 > unrolled thread

Re: Ubuntu Python -dbg packages

Started byTerry Reedy <tjreedy@udel.edu>
First post2013-01-06 14:29 -0500
Last post2013-01-06 14:29 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Ubuntu Python -dbg packages Terry Reedy <tjreedy@udel.edu> - 2013-01-06 14:29 -0500

#36278 — Re: Ubuntu Python -dbg packages

FromTerry Reedy <tjreedy@udel.edu>
Date2013-01-06 14:29 -0500
SubjectRe: Ubuntu Python -dbg packages
Message-ID<mailman.178.1357500599.2939.python-list@python.org>
On 1/6/2013 8:42 AM, Lee Harr wrote:
>
> I am using:
> Ubuntu 12.10
> Python 3.2.3

import has been considerably redone, and hopefully upgraded, in 3.3.

> Qt 4.8.2
> PyQt 4.9.3
>
> I also have the ubuntu -dbg packages:
> python3-dbg
> python3-pyqt4-dbg
>
>
>
> I don't understand why python3-dbg cannot import the PyQt4 modules...
>
> $ 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.executable
> '/usr/bin/python3'
>>>> import PyQt4

Is PyQtr.__file__ the same here, as below?

>>>> import PyQt4.QtCore
>>>>
>
>
> $ 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 sys
> [60298 refs]
>>>> sys.executable
> '/usr/bin/python3-dbg'
> [60300 refs]
>>>> import PyQt4
> [60323 refs]
>>>> PyQt4.__file__
> '/usr/lib/python3/dist-packages/PyQt4/__init__.py'
> [60323 refs]
>>>> import PyQt4.QtCore
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
> ImportError: No module named QtCore
> [150996 refs]

-- 
Terry Jan Reedy

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web