L
Lee Harr
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.
$ 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.
[60300 refs]
[60323 refs]Traceback (most recent call last):
File "<stdin>", line 1, in <module>
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.
[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.
[60328 refs]Segmentation fault (core dumped)
Clearly, I am doing something wrong.
Any hints?
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.
$ 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.
'/usr/bin/python3-dbg'import sys [60298 refs]
sys.executable
[60300 refs]
'/usr/lib/python3/dist-packages/PyQt4/__init__.py'import PyQt4 [60323 refs]
PyQt4.__file__
[60323 refs]Traceback (most recent call last):
File "<stdin>", line 1, in <module>
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.
'/usr/lib/python3/dist-packages/PyQt4/__init__.py'import sys [60298 refs]
sys.path.insert(1, '/usr/lib/debug/usr/lib/python3/dist-packages/') [60299 refs]
import PyQt4 [60335 refs]
PyQt4.__file__
[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.
'/usr/lib/debug/usr/lib/python3/dist-packages/PyQt4/__init__.py'import sys [60298 refs]
sys.path.insert(1, '/usr/lib/debug/usr/lib/python3/dist-packages') [60299 refs]
import PyQt4 [60324 refs]
PyQt4.__file__
[60328 refs]Segmentation fault (core dumped)
Clearly, I am doing something wrong.
Any hints?