Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001 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; 'unexpected': 0.09; '__init__.py': 0.16; 'inserting': 0.16; 'oct': 0.16; 'packages:': 0.16; 'received:65.55.116.7': 0.16; "skip:' 60": 0.16; 'skip:/ 50': 0.16; 'sys.path': 0.16; 'then...': 0.16; '>>>': 0.18; 'module': 0.19; 'to:name:python- list@python.org': 0.20; 'import': 0.21; '"",': 0.22; 'location,': 0.22; "skip:' 40": 0.22; 'seems': 0.23; 'tried': 0.25; '(most': 0.27; 'noticed': 0.28; "skip:' 50": 0.29; 'install': 0.29; "skip:' 10": 0.30; 'file': 0.32; "skip:' 20": 0.32; 'traceback': 0.33; 'ubuntu': 0.33; 'to:addr:python-list': 0.33; 'dir': 0.35; 'doing': 0.35; 'something': 0.35; 'there': 0.35; 'why': 0.37; 'to:addr:python.org': 0.39; 'charset:windows-1256': 0.61; 'different': 0.63; 'more': 0.63; 'subject: -': 0.84; 'also...': 0.91 X-EIP: [ZbvpldScOO6VdFCdHC9p0zut6RQXCMah] X-Originating-Email: [missive@hotmail.com] From: Lee Harr To: "python-list@python.org" Subject: Ubuntu Python -dbg packages Date: Sun, 6 Jan 2013 18:12:37 +0430 Importance: Normal Content-Type: text/plain; charset="windows-1256" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 X-OriginalArrivalTime: 06 Jan 2013 13:42:38.0032 (UTC) FILETIME=[B0EABD00:01CDEC13] 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: 93 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357479826 news.xs4all.nl 6845 [2001:888:2000:d::a6]:48592 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36247 I am using: Ubuntu 12.10 Python 3.2.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 >>> 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 "", line 1, in ImportError: No module named QtCore [150996 refs] >>> Also... The python3-pyqt4-dbg package seems to install to a different location, so I tried inserting that dir on to sys.path with unexpected results. $ 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.path.insert(1, '/usr/lib/debug/usr/lib/python3/dist-packages/') [60299 refs] >>> import PyQt4 [60335 refs] >>> PyQt4.__file__ '/usr/lib/python3/dist-packages/PyQt4/__init__.py' [60337 refs] >>> I noticed that there was no __init__.py in /usr/lib/debug/usr/lib/python3/dist-packages/PyQt4 so I added that and then... $ 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.path.insert(1, '/usr/lib/debug/usr/lib/python3/dist-packages') [60299 refs] >>> import PyQt4 [60324 refs] >>> PyQt4.__file__ '/usr/lib/debug/usr/lib/python3/dist-packages/PyQt4/__init__.py' [60328 refs] >>> import PyQt4.QtCore Segmentation fault (core dumped) Clearly, I am doing something wrong. Any hints?