View Single Post
Old 02-19-2010, 02:44 PM   #4
Megatron-UK
Connoisseur
Megatron-UK began at the beginning.
 
Posts: 76
Karma: 22
Join Date: Mar 2008
Location: uk
Device: Sony PRS505
Definitely:

Code:
megatron@elderthing:~ $ which python
/usr/local/python26/bin/python
megatron@elderthing:~ $ python -v
.... 
snip all the standard imports
....
Python 2.6.4 (r264:75706, Jan 30 2010, 10:07:56) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import readline # builtin
>>> import PyQt4
import PyQt4 # directory /usr/local/python26/lib/python2.6/site-packages/PyQt4
# /usr/local/python26/lib/python2.6/site-packages/PyQt4/__init__.pyc matches /usr/local/python26/lib/python2.6/site-packages/PyQt4/__init__.py
import PyQt4 # precompiled from /usr/local/python26/lib/python2.6/site-packages/PyQt4/__init__.pyc
>>>
And PyQt4 is linked against my version of Qt (4.6.2) under /usr/local, not the system version (4.3, so doesn't work when building Calibre):

Code:
megatron@elderthing:~ $ ldd /usr/local/python26/lib/python2.6/site-packages/PyQt4/QtCore.so 
	linux-vdso.so.1 =>  (0x00007fff92ffe000)
	libQtCore.so.4 => /usr/local/qt4/lib/libQtCore.so.4 (0x00007fdc8a602000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x00007fdc8a3bf000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fdc8a1ad000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fdc89ea1000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fdc89b95000)
	libm.so.6 => /lib/libm.so.6 (0x00007fdc89911000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fdc896fa000)
	libc.so.6 => /lib/libc.so.6 (0x00007fdc893a7000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007fdc8918f000)
	libdl.so.2 => /lib/libdl.so.2 (0x00007fdc88f8b000)
	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007fdc88d87000)
	librt.so.1 => /lib/librt.so.1 (0x00007fdc88b7d000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fdc888ba000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fdc8aee7000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fdc886b8000)
	libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0x00007fdc884b6000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fdc8829a000)
	libpcre.so.3 => /usr/lib/libpcre.so.3 (0x00007fdc88071000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fdc87e6c000
)
Megatron-UK is offline   Reply With Quote