<div dir="ltr"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I am attempting to update a project to pyqtdeploy 2.0.  I have the sysroot setup, but when attempting to build my application I get an import error for PyQt5.QtCore.  PyQt5 is setup and runs my app perfectly, and pyqtdeploy itself runs perfectly.  Below is the actual error.  Any ideas on what I did wrong?<br><br>Note that I am using a pyenv virtual environment (pyenv virtualenv) if that is relevant .....<br></span><br><b>Compile OS:</b>  MacOS High Sierra (10.13.4)<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">pyqtdeploy-build --build-dir /Users/morrisde/contract/Piran<wbr>haColorQt10/ios/sysroot_test/<wbr>pump --target ios-64 --sysroot /Users/morrisde/contract/Piran<wbr>haColorQt10/ios/sysroot_test pump.pdy<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Traceback (most recent call last):<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">  File "/usr/local/var/pyenv/versions<wbr>/piranha-qt5/bin/pyqtdeploy-<wbr>build", line 11, in <module><br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">    load_entry_point('pyqtdeploy==<wbr>0.0.dev0', 'console_scripts', 'pyqtdeploy-build')()<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">  File "/usr/local/var/pyenv/versions<wbr>/piranha-qt5/lib/python3.6/<wbr>site-packages/pkg_resources/__<wbr>init__.py", line 480, in load_entry_point<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">    return get_distribution(dist).load_en<wbr>try_point(group, name)<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">  File "/usr/local/var/pyenv/versions<wbr>/piranha-qt5/lib/python3.6/<wbr>site-packages/pkg_resources/__<wbr>init__.py", line 2693, in load_entry_point<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">    return ep.load()<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">  File "/usr/local/var/pyenv/versions<wbr>/piranha-qt5/lib/python3.6/<wbr>site-packages/pkg_resources/__<wbr>init__.py", line 2324, in load<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">    return self.resolve()<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">  File "/usr/local/var/pyenv/versions<wbr>/piranha-qt5/lib/python3.6/<wbr>site-packages/pkg_resources/__<wbr>init__.py", line 2330, in resolve<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">    module = __import__(self.module_name, fromlist=['__name__'], level=0)<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">  File "/usr/local/var/pyenv/versions<wbr>/piranha-qt5/lib/python3.6/<wbr>site-packages/pyqtdeploy-0.0.<wbr>dev0-py3.6.egg/pyqtdeploy/__<wbr>init__.py", line 28, in <module><br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">    from .builder import Builder<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">  File "/usr/local/var/pyenv/versions<wbr>/piranha-qt5/lib/python3.6/<wbr>site-packages/pyqtdeploy-0.0.<wbr>dev0-py3.6.egg/pyqtdeploy/<wbr>builder/__init__.py", line 28, in <module><br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">    from .builder import Builder<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">  File "/usr/local/var/pyenv/versions<wbr>/piranha-qt5/lib/python3.6/<wbr>site-packages/pyqtdeploy-0.0.<wbr>dev0-py3.6.egg/pyqtdeploy/<wbr>builder/builder.py", line 33, in <module><br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">    from PyQt5.QtCore import (QByteArray, QCoreApplication, QDir, QFile,<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">ModuleNotFoundError: No module named 'PyQt5.QtCore'<br></font><font face="monospace, monospace" style="color:rgb(34,34,34);font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">make: *** [pump_xcode] Error 1</font></blockquote><div><br></div><div> <div class="gmail_extra">Examining the python environment used by the file "builder.py" referenced in the traceback, I get the following information:<br><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_extra"><font face="monospace, monospace"><b>sys.executable</b>: /usr/local/var/pyenv/versions/<wbr>3.6.5/bin/python</font></div></div><div class="gmail_extra"><div class="gmail_extra"><font face="monospace, monospace"><b>sys.path</b>: ['/usr/local/var/pyenv/version<wbr>s/3.6.5/bin', '/Users/morrisde/contract/Pira<wbr>nhaColorQt10/ios/sysroot_test/<wbr>lib/python3.6/site-packages', '/Users/morrisde/contract/Pira<wbr>nhaColorQt10/ios/sysroot_test/<wbr>lib/python3.6/site-packages/<wbr>numpy-1.14.3-py3.6-macosx-10.<wbr>13-x86_64.egg', '/usr/local/var/pyenv/versions<wbr>/3.6.5/lib/python36.zip', '/usr/local/var/pyenv/versions<wbr>/3.6.5/lib/python3.6', '/usr/local/var/pyenv/versions<wbr>/3.6.5/lib/python3.6/lib-<wbr>dynload', '/usr/local/var/pyenv/versions<wbr>/3.6.5/lib/python3.6/site-<wbr>packages', '/usr/local/var/pyenv/versions<wbr>/3.6.5/lib/python3.6/site-<wbr>packages/pyqtdeploy-0.0.dev0-<wbr>py3.6.egg']</font></div></div></blockquote><div class="gmail_extra"><div class="gmail_extra"><br>This looks wrong in two ways, though perhaps I am simply either doing something wrong or misunderstanding what it should look like:<br><br><ol><li style="margin-left:15px">I am using a pyenv virtual environment (pyenv virtualenv).  As such, the correct executable path should be whatever is setup by my pyenv environment:<br><br><font face="monospace, monospace">/usr/local/var/pyenv/shims/pyt<wbr>hon</font><br><br>It appears that pyqtdeploy-build is taking the real executable and ignoring the virtual environment, which breaks pyenv functionality.  (which is possibly acceptable in this situation except for the fact that I can't actually compile the iOS application).<br><br></li><li style="margin-left:15px">The python module path (sys.path) is missing the pyenv virtual environment site packages which should be found here:<br><br><font face="monospace, monospace">/usr/local/var/pyenv/versions/<wbr>piranha-qt5/lib/python3.6/site<wbr>-packages</font><br><br>It appears that pyqtdeploy-build is looking for PyQt5 in the sysroot directory (<span style="color:rgb(34,34,34);font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font face="monospace, monospace">/Users/morrisde/contract/Pira<wbr>nhaColorQt10/ios/sysroot_test/<wbr>lib/python3.6/site-packages</font></span><span style="color:rgb(34,34,34);font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><font face="arial, helvetica, sans-serif">), however no PyQt5 installation exists in that location.<br><br></font></span></li></ol><div><font face="arial, helvetica, sans-serif">Can anyone help with how to setup an iOS build environment?</font></div><div><font face="arial, helvetica, sans-serif">Is it possible to use pyenv (with or without a virtual environment)?</font></div><div><font face="arial, helvetica, sans-serif">Or is there some other setup which must be used?</font></div><div><span style="font-family:arial,helvetica,sans-serif">Or am I missing a build step?</span></div><div><font face="arial, helvetica, sans-serif"><br>I attached my<span> </span></font><font face="monospace, monospace">sysroot.json</font><font face="arial, helvetica, sans-serif"><span> </span>config file in the previous email.  Here are the build commands I am using (with full python virtualenv setup):</font></div><br></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><font face="monospace, monospace">brew install pyenv pyenv-virtualenv<br>pyenv install 3.6.5<br>pyenv virtualenv -p python3.6 3.6.5 piranha-qt5<br>pyenv local piranha-qt5</font></div><div class="gmail_extra"><font face="monospace, monospace">pip install sip==4.19.8 pyqt5==5.10.1</font></div><div class="gmail_extra"><font face="monospace, monospace"><br>pyqtdeploy-sysroot --sysroot ${HOME}/contract/PiranhaColorQ<wbr>t10/ios/sysroot_test \</font></div><div class="gmail_extra"><font face="monospace, monospace">                   --source-dir ${HOME}/contract/pkgsrc sysroot.json \</font></div><div class="gmail_extra"><font face="monospace, monospace">                   --target ios-64</font></div><div class="gmail_extra"><font face="monospace, monospace"><br></font></div><div class="gmail_extra"><font face="monospace, monospace">pyqtdeploy-build --build-dir ${HOME}/contract/PiranhaColorQ<wbr>t10/ios/sysroot_test/pump \</font></div><div class="gmail_extra"><font face="monospace, monospace">                 --target ios-64 \</font></div><div class="gmail_extra"><font face="monospace, monospace">                 --sysroot ${HOME}/contract/PiranhaColorQ<wbr>t10/ios/sysroot_test pump.pdy</font></div></blockquote><div class="gmail_extra"><br>Any help on what I am doing wrong?<br><br>Thank you,</div><div class="gmail_extra"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">David</span><div class="m_6227430521872679256gmail-yj6qo m_6227430521872679256gmail-ajU" style="outline:none;padding:10px 0px;width:22px;margin:2px 0px 0px;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><br class="m_6227430521872679256gmail-Apple-interchange-newline"></div></div></div><br></div>