Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'importerror:': 0.05; 'python3': 0.05; 'sys': 0.05; 'python': 0.09; 'interpreter,': 0.09; 'extension': 0.13; '3.3.': 0.16; 'oct': 0.16; 'packages:': 0.16; 'received:65.55.116.32': 0.16; 'received:65.55.116.7': 0.16; 'received:blu0-omc1-s21.blu0.hotmail.com': 0.16; 'wrote:': 0.17; '>>>': 0.18; 'module': 0.19; 'to:name:python-list@python.org': 0.20; 'import': 0.21; 'meant': 0.21; '"",': 0.22; 'sorry,': 0.22; 'matching': 0.23; 'tried': 0.25; '(most': 0.27; 'am,': 0.27; 'compiled': 0.27; 'there.': 0.28; 'this?': 0.28; "skip:' 50": 0.29; 'yes.': 0.29; 'file': 0.32; "skip:' 20": 0.32; 'hopefully': 0.33; 'right?': 0.33; 'traceback': 0.33; 'ubuntu': 0.33; 'to:addr :python-list': 0.33; 'same.': 0.35; 'so,': 0.35; 'but': 0.36; 'modules': 0.36; 'ok,': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'think': 0.40; 'charset:windows-1256': 0.61; 'mentioned': 0.63; 'more': 0.63; 'show': 0.63; 'subject: -': 0.84; 'preventing': 0.91 X-EIP: [G+XBWqJB8bJHklvt9ku04mYmNZK7pACe] X-Originating-Email: [missive@hotmail.com] From: Lee Harr To: "python-list@python.org" Subject: Re: Ubuntu Python -dbg packages Date: Mon, 7 Jan 2013 00:51:09 +0430 Importance: Normal Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 X-OriginalArrivalTime: 06 Jan 2013 20:21:09.0492 (UTC) FILETIME=[5D41FB40:01CDEC4B] X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 73 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357503738 news.xs4all.nl 6980 [2001:888:2000:d::a6]:38600 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36282 > 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. Ok, so now I tried python3.3-dbg but I don't think the pyqt modules are compiled for 3.3 and that may be preventing the import there. Those extension modules would need to be compiled for an exactly matching python interpreter, right? >> 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... > Is PyQtr.__file__ the same here, as below? Yes. It's the same. Sorry, that's what I meant to show there. $ 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 >>> PyQt4.__file__ '/usr/lib/python3/dist-packages/PyQt4/__init__.py' >>> >> $ 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 "", line 1, in >> ImportError: No module named QtCore >> [150996 refs] So, python3-dbg _should_ be able to import this? Any ideas about the python3-pyqt4-dbg modules mentioned originally?