<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I need to investigate on this, for reference there is open issue <a href="https://github.com/lutraconsulting/qgis-mac-packager/issues/41">https://github.com/lutraconsulting/qgis-mac-packager/issues/41</a></div><div><br></div><div>Kind regards</div><div>Peter</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 7:39 PM Tim Sutton <<a href="mailto:tim@kartoza.com">tim@kartoza.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><br><div>On 03 Dec 2018, at 20:29, Tim Sutton <<a href="mailto:tim@kartoza.com" target="_blank">tim@kartoza.com</a>> wrote:</div><br class="m_-5313678900028308639Apple-interchange-newline"><div><span style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline!important">Hi</span><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br></div><div style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br><div><br><blockquote type="cite"><div>On 03 Dec 2018, at 09:32, Peter Petrik <<a href="mailto:peter.petrik@lutraconsulting.co.uk" target="_blank">peter.petrik@lutraconsulting.co.uk</a>> wrote:</div><br class="m_-5313678900028308639Apple-interchange-newline"><div><div dir="ltr" style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">Hi, <div><br></div><div>Python is already bundled in our package. The package is really standalone, so you do not need to have anything else installed. The note about Python is that, unfortunately, the python distribution we use ATM is not compatible with MacOS 10.11 and 10.12. One way how to fix it is probably use Python official distribution and not Homebrew distribution in the process of creation of our package.</div><div><br></div></div></div></blockquote><div><br></div><div>Ah ok cool thanks for the clarification. I can confirm that the package I downloaded last night picks up the python interpreter inside the bundle nicely:</div><div><br></div><div><div>import sys</div><div>for p in sys.path:</div><div><span class="m_-5313678900028308639Apple-tab-span" style="white-space:pre-wrap">  </span>print(p)</div><div>/Users/timlinux/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/karika</div><div>/Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python</div><div>/Users/timlinux/Library/Application Support/QGIS/QGIS3/profiles/default/python</div><div>/Users/timlinux/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins</div><div>/Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python/plugins</div><div>/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip</div><div>/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload</div><div>/Applications/QGIS3.4.2.app/Contents/Resources/python</div><div>/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages</div></div><div><br></div><div><br></div><div>What is the recommended way to install additional deps (e.g. via pip) into the bundled python environment? If we try to just directly  use the python interpreter (see below) it does not have the correct python path:</div><div><br></div><div><br></div><div><br></div><span>[timlinux@sandstone /Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/3.7/bin]$ ./python3.7<br>Python 2.7.10 (default, Aug 17 2018, 17:41:52) <br>[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin<br>Type "help", "copyright", "credits" or "license" for more information.<br>>>> import sys<br>>>> for p in sys.path:<br>...     print(p)<br>... <br><br>/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7<br>/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages<br>/Library/Python/2.7/site-packages/numpy-override<br>/Library/Python/2.7/site-packages/matplotlib-override<br>/Library/Frameworks/GDAL.framework/Versions/2.1/Python/2.7/site-packages<br>/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg<br>/Library/Python/2.7/site-packages/pycharm-debug.egg<br>/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip<br>/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7<br>/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin<br>/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac<br>/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages<br>/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk<br>/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old<br>/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload<br>/Users/timlinux/Library/Python/2.7/lib/python/site-packages<br>/usr/local/lib/python2.7/site-packages<br>/usr/local/lib/python2.7/site-packages/pycharm-debug.egg<br>/usr/local/lib/python2.7/site-packages/geos<br>/usr/local/Cellar/numpy/1.15.3/libexec/nose/lib/python2.7/site-packages<br>/usr/local/lib/python2.7/site-packages/wx-3.0-osx_cocoa<br>/Library/Python/2.7/site-packages<br>/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python<br>/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC<br>>>> <br>KeyboardInterrupt<br>>>> quit()<br></span><span><br>Maybe we need to bundle in pip and a tool from within QGIS to call pip (some examples were given on this mailing list in the past) from within QGIS so that the python interpreter has the correct context….this would probably be useful for windows users too?<br><br><br><br>Regards</span></div><div><span><br></span></div><div><span>Tim</span></div></div></div><blockquote type="cite"><div></div></blockquote></div><br><div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;line-height:normal;text-align:center"><span>—</span></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;line-height:normal;text-align:center"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal;min-height:14px"><br></div><br class="m_-5313678900028308639Apple-interchange-newline" style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span><span><span><span><span><span><span><span><span><span><img id="m_-531367890002830863988B0873F-E104-48CF-883C-26B86E80683B" src="cid:1A5DF6DE-E302-4C28-BFBD-29663CBF1351"></span><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal;min-height:14px"><br class="m_-5313678900028308639Apple-interchange-newline"><br class="m_-5313678900028308639Apple-interchange-newline"><br class="m_-5313678900028308639Apple-interchange-newline"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal;min-height:14px"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal"><b>Tim Sutton</b></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal;min-height:14px"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal"><b>Co-founder:</b><span class="m_-5313678900028308639Apple-converted-space"> </span>Kartoza</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal"><b>Ex Project chair:</b><span style="font-weight:normal"><span class="m_-5313678900028308639Apple-converted-space"> </span><a href="http://QGIS.org" target="_blank">QGIS.org</a></span></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal;min-height:14px"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal">Visit <a href="http://kartoza.com/" target="_blank"><span>http://kartoza.com</span></a> to find out about open source:</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal;min-height:14px"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal">Desktop GIS programming services</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal">Geospatial web development</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal">GIS Training</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal">Consulting Services</div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal;min-height:14px"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal"><b>Skype</b>: timlinux </div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:center;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;margin:0px;line-height:normal"><b>IRC:</b><span class="m_-5313678900028308639Apple-converted-space"> </span>timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a></div>
</span></span></span></span></span></span></span></span></span></span></div>
</div><br></div></blockquote></div>