<div dir="ltr"><div>The PyQt{4,5} windows installers create a qt.conf file in two locations, one in the same directory as the python.exe, and the other in site-packages\PyQt{4,5}. This is necessary to make the Qt libraries relocateable, that is, ignore the hard-coded file paths in qmake.exe and QtCore.dll. I think you need to create these files based on the documentation at <a href="http://qt-project.org/doc/qt-5/qt-conf.html" target="_blank">http://qt-project.org/doc/qt-5/qt-conf.html</a> , something along the lines of</div><div> <br></div><div><div>[Paths]</div><div>Prefix = .</div><div>Binaries= .</div><div><br></div><div>in site-packages/PyQt{4,5}, and </div><div><br></div><div><div>[Paths]</div><div>Prefix = Lib/site-packages/PyQt4</div></div><div>Binaries = Lib/site-packages/PyQt4<br></div><div><br></div><div>in C:\Python2.7 (for example). Note that these paths are relative (and they use / path separators). The installers provided by Riverbank generate absolute paths (C:/Python2.7/Lib/site-packages/PyQt4), which won't work for what you are trying to do via PyPI, since you don't know where the user installed python. I've tested these qt.conf files with relative paths just now, running the qtdemo from PyQt4, and it works. If I delete those files, the qtdemo gives me errors related to the sqlite drivers (plugins, I believe) not being found, which is similar to the problem you reported.</div><div><br></div><div>A side note, I've just finished developing conda packages for Qt5 and PyQt{4,5}. At install time, the conda package manager makes an effort to replace the hard-coded paths generated at build time with the path required for the actual install, in which case the qt.conf file is not needed. The Qt windows installer does the same thing, replacing the (padded) build path with the installation path.<br></div><div><div><div><div><br></div></div></div></div></div><div>I found this thread useful when I was working on the conda packages:</div><div><br></div><div><a href="http://stackoverflow.com/questions/4699311/how-to-install-qt-on-windows-after-building/17640221#17640221">http://stackoverflow.com/questions/4699311/how-to-install-qt-on-windows-after-building/17640221#17640221</a><br></div><div><br></div><div>Darren</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 18, 2014 at 4:26 AM, Marcus Ottosson <span dir="ltr"><<a href="mailto:konstruktion@gmail.com" target="_blank">konstruktion@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><p style="margin:1.2em 0px!important">I’ve uploaded an initial version, compiled using VS2013x64 for Python 2.7 x64 under Windows 8.1.<br><a href="https://github.com/pyqt/pyqt5" target="_blank">https://github.com/pyqt/pyqt5</a></p>
<p style="margin:1.2em 0px!important">But I’ve run into an issue that maybe someone here knows of a solution to.<br><a href="https://github.com/pyqt/pyqt5/issues/2" target="_blank">https://github.com/pyqt/pyqt5/issues/2</a></p>
<p style="margin:1.2em 0px!important">I also noticed that the namespace “pyqt” was free on GitHub. Phil, I would understand if you would like this namespace for yourself. That is fine by me, just let me know and we’ll handle the transfer. Until then I’ll hold onto it and make sure it doesn’t end up in the wrong hands.</p>
<p style="margin:1.2em 0px!important">Also, if you have any preference on the notice about this repository or organisation not being affiliated with your company, let me know and I’ll type it in.</p>
<p style="margin:1.2em 0px!important">Best,<br>Marcus</p>
<div title="MDH:SSd2ZSB1cGxvYWRlZCBhbiBpbml0aWFsIHZlcnNpb24sIGNvbXBpbGVkIHVzaW5nIFZTMjAxM3g2
NCBmb3IgUHl0aG9uIDIuNyB4NjQgdW5kZXIgV2luZG93cyA4LjEuPGRpdj5odHRwczovL2dpdGh1
Yi5jb20vcHlxdC9weXF0NTxicj48L2Rpdj48ZGl2Pjxicj48L2Rpdj48ZGl2PkJ1dCBJJ3ZlIHJ1
biBpbnRvIGFuIGlzc3VlIHRoYXQgbWF5YmUgc29tZW9uZSBoZXJlIGtub3dzIG9mIGEgc29sdXRp
b24gdG8uPC9kaXY+PGRpdj48ZGl2Pmh0dHBzOi8vZ2l0aHViLmNvbS9weXF0L3B5cXQ1L2lzc3Vl
cy8yPGJyPjwvZGl2PjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+SSBhbHNvIG5vdGljZWQgdGhh
dCB0aGUgbmFtZXNwYWNlICJweXF0IiB3YXMgZnJlZSBvbiBHaXRIdWIuIFBoaWwsIEkgd291bGQg
dW5kZXJzdGFuZCBpZiB5b3Ugd291bGQgbGlrZSB0aGlzIG5hbWVzcGFjZSBmb3IgeW91cnNlbGYu
IFRoYXQgaXMgZmluZSBieSBtZSwganVzdCBsZXQgbWUga25vdyBhbmQgd2UnbGwgaGFuZGxlIHRo
ZSB0cmFuc2Zlci4gVW50aWwgdGhlbiBJJ2xsIGhvbGQgb250byBpdCBhbmQgbWFrZSBzdXJlIGl0
IGRvZXNuJ3QgZW5kIHVwIGluIHRoZSB3cm9uZyBoYW5kcy48L2Rpdj48ZGl2Pjxicj48L2Rpdj48
ZGl2PkFsc28sIGlmIHlvdSBoYXZlIGFueSBwcmVmZXJlbmNlIG9uIHRoZSBub3RpY2UgYWJvdXQg
dGhpcyByZXBvc2l0b3J5IG9yIG9yZ2FuaXNhdGlvbiBub3QgYmVpbmcgYWZmaWxpYXRlZCB3aXRo
IHlvdXIgY29tcGFueSwgbGV0IG1lIGtub3cgYW5kIEknbGwgdHlwZSBpdCBpbi48L2Rpdj48ZGl2
Pjxicj48L2Rpdj48ZGl2PkJlc3QsPC9kaXY+PGRpdj5NYXJjdXM8L2Rpdj4=" style="min-height:0;font-size:0em;padding:0;margin:0"></div></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On 17 September 2014 20:04, Marcus Ottosson <span dir="ltr"><<a href="mailto:konstruktion@gmail.com" target="_blank">konstruktion@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Gotcha. Thanks, Phil.</div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On 17 September 2014 19:41, Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On 17/09/2014 6:08 pm, Marcus Ottosson wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>
Hi Nenad and Florian,<br>
<br>
The thought did occur to me about providing more versions via PyPI, but I<br>
can only imagine, and as mentioned by Phil, the amount of work involved in<br>
actually getting something like that off the ground.<br>
<br>
Having said that, as there seems to be some interest, I see no reason why<br>
we couldn’t make it a team effort. I’ll be working on GitHub and getting<br>
PyPI builds up via Travis, as that is how I’m working currently.<br>
<br>
I’ll give a shout once I’ve gotten started and maybe we could start talking<br>
about ways to go at it from there?<br>
<br></span>
For reference, this <<a href="https://github.com/abstractfactory/pyblish" target="_blank">https://github.com/<u></u>abstractfactory/pyblish</a>> is the<span><br>
project the I’m working with.<br>
<br>
You could install one of the Windows installers and see what gets installed<br>
in site-packages\PyQt5.<br>
<br></span>
Thanks Phil, I’ll have a look at that. Out of interest, how did *you*<br>
figure this out?<br>
</blockquote>
<br>
Most of it is obvious, the rest is trial-and-error and bug reports.<span><font color="#888888"><br>
<br>
Phil<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div dir="ltr"><font size="1"><b>Marcus Ottosson</b><br><a href="mailto:konstruktion@gmail.com" target="_blank">konstruktion@gmail.com</a></font><font size="1"><br></font></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><font size="1"><b>Marcus Ottosson</b><br><a href="mailto:konstruktion@gmail.com" target="_blank">konstruktion@gmail.com</a></font><font size="1"><br></font></div>
</font></span></div>
<br>_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></blockquote></div><br></div>