<div dir="ltr"><div><div>I don't think static has anything to do with it. This is an issue with inconsistent PyCharm skeleton generation. <br>See <a href="https://youtrack.jetbrains.com/issue/PY-14103" target="_blank">https://youtrack.jetbrains.com/issue/PY-14103</a> and <a href="https://youtrack.jetbrains.com/issue/PY-14235" target="_blank">https://youtrack.jetbrains.com/issue/PY-14235</a><br></div>I use PyQt4 and PyQt5 on Mac/Linux/Windows with PyCharm and with some configurations I get this same annoying issue, but not always. <br></div>As stated in the link above you should be able to copy the generated skeletons from another setup to get code completion working for now. <br><div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 11, 2015 at 1:07 AM, Marius Shekow <span dir="ltr"><<a href="mailto:marius.shekow@fit.fraunhofer.de" target="_blank">marius.shekow@fit.fraunhofer.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
my goal is to distribute a redistributable application on Mac OS X, not making any assumptions about what Python, Qt, PyQt, ... the user has installed. I.e. my goal is to produce a self-contained build.<br>
<br>
For this I want to use the existing/unmodified (dynamically linked) Python 3.4 and Qt 5.5.1 distributions (because building them myself is hard), and statically compile the other dependencies, such as SIP, PyQt, sqlite3, etc.<br>
<br>
I'm using Mac OS X El Capitan. I've downloaded Python 3.4.3 from the official website and installed it. I've downloaded SIP from the RiverSide homepage and compiled it statically (with python3 configure.py --static + make + sudo make install). I.e. I'm using the python3 binary (for configuration) that is installed from the official Python 3.4.3 installer.<br>
<br>
I've downloaded and installed Qt 5.5.1 from the official Qt homepage (the 32/64-bit Intel distribution). This installs it to ~/Qt5.5.1<br>
<br>
I've then downloaded the PyQt5 sources and also built them statically (python3 configure.py --static --qmake ~/Qt5.5.1/5.5/clang_64/bin/qmake)<br>
I've also done "sudo make install".<br>
<br>
The issue is that I can't really develop Python code this way. My IDE (PyCharm) claims that there is nothing in the PyQt5 package in site-packages. The directory is there, in /LIbrary/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/PyQt5. It contains an __init__.py, a bunch of .a library files and the uic directory with lots of other stuff". But references such as PyQt5.WtWidgets can't be resolved.<br>
<br>
I'd really like to be able to code in Python on MacOS X with that static version. Is that possible?<br>
<br>
Best regards,<br>
Marius Shekow<span><font color="#888888"><br>
-- <br>
Marius Shekow<br>
Mixed and Augmented Reality Solutions, Fraunhofer FIT<br>
<a href="http://www.fit.fraunhofer.de/mars" rel="noreferrer" target="_blank">http://www.fit.fraunhofer.de/mars</a><br>
Tel.: <a href="tel:%2B49%20%280%292241%20-%2014-2184" value="+492241142184" target="_blank">+49 (0)2241 - 14-2184</a><br>
_______________________________________________<br>
PyQt mailing list    <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<a href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt" rel="noreferrer" target="_blank">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></font></span></blockquote></div><br></div></div></div></div></div>