From pykde Mon Apr 05 15:15:11 2004 From: Martin.Zohlhuber () tttech ! com Date: Mon, 05 Apr 2004 15:15:11 +0000 To: pykde Subject: Re: [PyKDE] debian-problem Message-Id: X-MARC-Message: https://marc.info/?l=pykde&m=108117828304975 --=_mixed 0053B917C1256E6D_= Content-Type: text/plain; charset="US-ASCII" Hello Thank you for your quick help :-)))) The solution: On the machine are two python2.3.3 installed (i think from binary, but dont know it) and i have not seen/think about it. Work not: /usr/local/bin: Python 2.3.3 (#1, Feb 11 2004, 17:04:03) [GCC 2.95.4 20011002 (Debian prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. ~/qt_hw$ nm -D --defined-only `which python` |grep PyUnicodeUCS4_FromUnicode return nothing. There are only PyUnicodeUCS2_* files Work: /usr/bin: Python 2.3.3 (#2, Jan 13 2004, 00:47:05) [GCC 3.3.3 20040110 (prerelease) (Debian)] on linux2 Type "help", "copyright", "credits" or "license" for more information. ~/qt_hw$ nm -D --defined-only `which /usr/bin/python` |grep PyUnicodeUCS4_FromUnicode 08092420 T PyUnicodeUCS4_FromUnicode ~/qt_hw$ dpkg -l 'python*sip*' 'python*qt*' | grep ^i return: ii python2.3-sip- 3.8-2 Python/C++ bindings generator - Python2.3+Qt ii python-qt3 3.8-3 Qt3 bindings for Python (default version) ii python2.3-qt3c 3.8-3 Qt3 bindings for Python 2.3 ii python2.3-qtex 3.8-3 Qt extensions for PyQt ii python2.3-sip- 3.8-2 Python/C++ bindings generator - Python2.3+Qt Thank you ! martin Torsten Marek Sent by: pykde-admin@mats.imk.fraunhofer.de 05.04.2004 16:55 To pykde mailing list cc Subject Re: [PyKDE] debian-problem Martin.Zohlhuber@tttech.com schrieb: > Hello > I want run my PyQT programm on debian linux. The admin has it installed > and eric3 runs. > When i run a script (show a qt-Button) in eric3 it runs without troubles. > I can also import qt in the interactive interpreter without troubles. > > In the console i get a traceback, when i want import qt. The follow > message shows sys.path and the traceback: > ------------------ > ['/Node/tttprime/ttt/private/zohlhuber/qt_hw', '/usr/local/bin', > '/usr/bin', '/bin', '/usr/bin/X11', '/usr/games', '/usr/lib/python23.zip', > '/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2', > '/usr/lib/python2.3/lib-tk', '/usr/lib/python2.3/lib-dynload', > '/usr/local/lib/python2.3/site-packages', '/usr/local/lib/site-python', > '/usr/lib/python2.3/site-packages', > '/usr/lib/python2.3/site-packages/eric3', > '/usr/lib/python2.3/site-packages/eric3/Debugger', > '/usr/lib/python2.3/site-packages/eric3/ThirdParty/brm', > '/usr/local/lib/python23.zip', '/usr/local/lib/python2.3', > '/usr/local/lib/python2.3/plat-linux2', '/usr/local/lib/python2.3/lib-tk', > '/usr/local/lib/python2.3/lib-dynload'] > Traceback (most recent call last): > File "qt_hw.py", line 3, in ? > from qt import * > File "/usr/lib/python2.3/site-packages/qt.py", line 25, in ? > import libqtc > ImportError: /usr/lib/python2.3/site-packages/libqtcmodule.so: undefined > symbol: PyUnicodeUCS4_FromUnicode > -------------------- > > > When i try to import libqtc (before import qt) i get follow traceback: > -------------- > Traceback (most recent call last): > File "qt_hw.py", line 3, in ? > import libqtc > ImportError: libsip.so.10: cannot open shared object file: No such file or > directory > ------------------- > > > eric3 show me follow Version numbers: > Python 2.3.3 > Qt 3.2.1 > PyQT 3.8 > QScintilla 1.2 > Eric 3.3.1 > Bicyle Repair Man 0.9 Beta4 > > Whats wrong ? > What do eric3, what i am not do ? Have somebody a idea ? > > Thanks > martin Hello Martin, are you using the standard Debian Python? Are you sure that eric3 and your own script invoke the same interpreter? The missing symbol has to be defined in the Python binary itself (you can check for that with nm -D --defined-only `which python`|grep PyUnicodeUCS4_FromUnicode). If that does not help, you need to give further information, for instance the message the interactive Python interpreter shows on startup. greets Torsten -- Torsten Marek ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858 www.keyserver.net -- wwwkeys.eu.pgp.net --=_mixed 0053B917C1256E6D_= Content-Type: application/octet-stream; name="signature.asc" Content-Disposition: attachment; filename="signature.asc" Content-Transfer-Encoding: base64 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0KVmVyc2lvbjogR251UEcgdjEuMi40IChHTlUv TGludXgpCkNvbW1lbnQ6IFVzaW5nIEdudVBHIHdpdGggRGViaWFuIC0gaHR0cDovL2VuaWdtYWls Lm1vemRldi5vcmcKCmlEOERCUUZBY1cxL2ZNVkZIcUpFeUZnUkFnL3NBSjR5L1dBZ2R6eDRsdDhT cURtVXE5M2tZS1FXUkFDZVA4MXIKUzBRejdNY3JlUG04YmNJMXFmcXlFNG89Cj1EaUo0Ci0tLS0t RU5EIFBHUCBTSUdOQVRVUkUtLS0tLQoK --=_mixed 0053B917C1256E6D_= Content-Type: application/octet-stream; name="signature.asc" Content-Disposition: attachment; filename="signature.asc" Content-Transfer-Encoding: base64 LS0tLS1CRUdJTiBQR1AgU0lHTkFUVVJFLS0tLS0NClZlcnNpb246IEdudVBHIHYxLjIuNCAoR05V L0xpbnV4KQ0KQ29tbWVudDogVXNpbmcgR251UEcgd2l0aCBEZWJpYW4gLSBodHRwOi8vZW5pZ21h aWwubW96ZGV2Lm9yZw0KDQppRDhEQlFGQWNYTmtmTVZGSHFKRXlGZ1JBanRsQUo5UjVwY2tIV2xw bEdHaVJsVEVyTElabHk3eEFBQ2VJSXJYDQpaVnNBQzZZUmRQWjIzaW9QMWJxdUJ1cz0NCj1KNWhh DQotLS0tLUVORCBQR1AgU0lHTkFUVVJFLS0tLS0NCg== --=_mixed 0053B917C1256E6D_=-- _______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde