[QScintilla] Invalid pyqt_mod_dir, python bindings installed incorreclty
Andrei Kopats
hlamer at tut.by
Wed Aug 24 18:13:10 BST 2011
Hi
I tried to install the last QScintilla snapshot on up to date Ubuntu 11.04
Python bindings installed to incorrect directory for me, so, it is
impossible to import it. PyQt4 installed to
/usr/lib/pymodules/python2.7/PyQt4, but bindings to
/usr/lib/python2.7/dist-packages/PyQt4
Here is simple test:
import os.path
import PyQt4.pyqtconfig
print os.path.dirname(PyQt4.__file__)
print PyQt4.pyqtconfig.Configuration().pyqt_mod_dir
Output:
/usr/lib/pymodules/python2.7/PyQt4
/usr/lib/python2.7/dist-packages/PyQt4
I don't know, if it is bug of Ubuntu or of QScintilla, but, maybe you could
use os.path.dirname(PyQt4.__file__) as installation path?
Andrei Kopats
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/qscintilla/attachments/20110824/f2c85e7f/attachment.html>
More information about the QScintilla
mailing list