<p>This bug is predictable. If some variable (PyQt installation path) is hardcoded in more than one place - there always are bugs. I think, there are the same bug in other distributions.<br></p><p>Are you sure it is impossible to use os.path.dirname(PyQt4.__file__) instead of pyqtconfig?</p>
<p>Andrei Kopats<br></p><div class="gmail_quote"><a href="tel:24.08.2011%2020" value="+12408201120" target="_blank">24.08.2011 20</a>:31 пользователь "Phil Thompson" <<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>> написал:<br type="attribution">
> On Wed, 24 Aug 2011 20:13:10 +0300, Andrei Kopats <<a href="mailto:hlamer@tut.by" target="_blank">hlamer@tut.by</a>> wrote:<br>
>> Hi<br>>> <br>>> I tried to install the last QScintilla snapshot on up to date Ubuntu<br>> 11.04<br>>> <br>>> Python bindings installed to incorrect directory for me, so, it is<br>>> impossible to import it. PyQt4 installed to<br>
>> /usr/lib/pymodules/python2.7/PyQt4, but bindings to<br>>> /usr/lib/python2.7/dist-packages/PyQt4<br>>> <br>>> Here is simple test:<br>>> import os.path<br>>> import PyQt4.pyqtconfig<br>
>> <br>>> print os.path.dirname(PyQt4.__file__)<br>>> print PyQt4.pyqtconfig.Configuration().pyqt_mod_dir<br>>> <br>>> <br>>> Output:<br>>> /usr/lib/pymodules/python2.7/PyQt4<br>
>> /usr/lib/python2.7/dist-packages/PyQt4<br>
>> <br>>> I don't know, if it is bug of Ubuntu or of QScintilla, but, maybe you<br>> could<br>>> use os.path.dirname(PyQt4.__file__) as installation path?<br>>> <br>>> Andrei Kopats<br>
> <br>> If pyqtconfig says that PyQt4 is installed in one directory but it is<br>> actually installed in another then that would suggest a bug in Ubuntu's<br>> PyQt package.<br>> <br>> Phil<br></div>