Hi


> On 03 Dec 2018, at 09:32, Peter Petrik <peter.pet...@lutraconsulting.co.uk> 
> wrote:
> 
> Hi, 
> 
> 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.
> 

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:

import sys
for p in sys.path:
        print(p)
/Users/timlinux/Library/Application 
Support/QGIS/QGIS3/profiles/default/python/plugins/karika
/Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python
/Users/timlinux/Library/Application Support/QGIS/QGIS3/profiles/default/python
/Users/timlinux/Library/Application 
Support/QGIS/QGIS3/profiles/default/python/plugins
/Applications/QGIS3.4.2.app/Contents/MacOS/../Resources/python/plugins
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python37.zip
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/lib-dynload
/Applications/QGIS3.4.2.app/Contents/Resources/python
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python3.7/site-packages


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:



[timlinux@sandstone 
/Applications/QGIS3.4.2.app/Contents/Frameworks/Python.framework/Versions/3.7/bin]$
 ./python3.7
Python 2.7.10 (default, Aug 17 2018, 17:41:52) 
[GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> for p in sys.path:
...     print(p)
... 

/Library/Frameworks/SQLite3.framework/Versions/C/Python/2.7
/Library/Frameworks/GEOS.framework/Versions/3/Python/2.7/site-packages
/Library/Python/2.7/site-packages/numpy-override
/Library/Python/2.7/site-packages/matplotlib-override
/Library/Frameworks/GDAL.framework/Versions/2.1/Python/2.7/site-packages
/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
/Library/Python/2.7/site-packages/pycharm-debug.egg
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/timlinux/Library/Python/2.7/lib/python/site-packages
/usr/local/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages/pycharm-debug.egg
/usr/local/lib/python2.7/site-packages/geos
/usr/local/Cellar/numpy/1.15.3/libexec/nose/lib/python2.7/site-packages
/usr/local/lib/python2.7/site-packages/wx-3.0-osx_cocoa
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC
>>> 
KeyboardInterrupt
>>> quit()

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?



Regards

Tim

> P.
> 
> 
> On Sun, Dec 2, 2018 at 10:16 PM Tim Sutton <t...@kartoza.com 
> <mailto:t...@kartoza.com>> wrote:
> Hi
> 
> 
>> On 30 Nov 2018, at 16:28, Saber Razmjooei 
>> <saber.razmjo...@lutraconsulting.co.uk 
>> <mailto:saber.razmjo...@lutraconsulting.co.uk>> wrote:
>> 
>> Hi Tim and all,
>> 
>> We have managed to package QGIS with version number. So, you can have all 
>> versions of QGIS installed side-by-side:
>> https://lutraconsulting.github.io/qgis-mac-packager/ 
>> <https://lutraconsulting.github.io/qgis-mac-packager/>
>> (master build is in progress and should be ready in an hour or so).
> 
> This is great, grabbing it now!
> 
>> 
>> Feel free to test and file tickets.
> 
> Cool, will do.
> 
> @Peter can you clarify what you meant by your reply regarding python? Are you 
> suggesting I need to install the python.org <http://python.org/> package too? 
> Do you have plans to bundle python into your QGIS.app?
> 
> Regards
> 
> Tim
> 
>> 
>> Regards
>> Saber
>> 
>> 
>> 
>> On Wed, 21 Nov 2018 at 15:42, Peter Petrik 
>> <peter.pet...@lutraconsulting.co.uk 
>> <mailto:peter.pet...@lutraconsulting.co.uk>> wrote:
>> Python is taken directly from homebrew bottle. Worth try with the python.org 
>> <http://python.org/> package.
>> 
>> P.
>> 
>> On Wed, Nov 21, 2018 at 3:23 PM William Kyngesburye <wokl...@kyngchaos.com 
>> <mailto:wokl...@kyngchaos.com>> wrote:
>> Are you building Python from source?  I use the python.org 
>> <http://python.org/> binary distribution and have no problems running QGIS 3 
>> on Sierra.  That means they are probably building with an older SDK so those 
>> new symbols are not used.
>> 
>>> On Nov 21, 2018, at 3:38 AM, Saber Razmjooei 
>>> <saber.razmjo...@lutraconsulting.co.uk 
>>> <mailto:saber.razmjo...@lutraconsulting.co.uk>> wrote:
>>> 
>>> Hi Tim,
>>> 
>>> Yes, it should work with 10.13 and 10.14. But for older versions there is 
>>> an upstream blocker which we will look into later:
>>> https://github.com/lutraconsulting/qgis-mac-packager/issues/22 
>>> <https://github.com/lutraconsulting/qgis-mac-packager/issues/22>
>>> 
>>> Regards
>>> Saber
>>> 
>>> On Wed, 21 Nov 2018 at 09:36, Tim Sutton <t...@kartoza.com 
>>> <mailto:t...@kartoza.com>> wrote:
>>> Nice going! I will test them out for you! Did you manage to fix the python 
>>> path issue?
>>> 
>>> Regards
>>> 
>>> Tim
>>> 
>>>> On 21 Nov 2018, at 11:15, Saber Razmjooei 
>>>> <saber.razmjo...@lutraconsulting.co.uk 
>>>> <mailto:saber.razmjo...@lutraconsulting.co.uk>> wrote:
>>>> 
>>>> Dear all,
>>>> 
>>>> We managed finally to set up an integrated infrastructure to automatically 
>>>> create the following packages for QGIS:
>>>> https://lutraconsulting.github.io/qgis-mac-packager/ 
>>>> <https://lutraconsulting.github.io/qgis-mac-packager/>
>>>> 
>>>> 1- QGIS current release (3.4.1): you will get the new packages (e.g. 
>>>> 3.4.2) on the same day as point release
>>>> 2- QGIS nightly: generates a new package every day from the master branch 
>>>> with all the latest features (and bugs!). This is not currently available 
>>>> from the official QGIS download page.
>>>> 
>>>> The packages are all signed and you don't need to circumvent any security 
>>>> to be able to install them. Everything should work for 10.13 and 10.14 but 
>>>> with older versions of Mac OS, you may have some issues with Python and 
>>>> plugins (see: https://github.com/lutraconsulting/qgis-mac-packager/issues 
>>>> <https://github.com/lutraconsulting/qgis-mac-packager/issues>).
>>>> 
>>>> We will appreciate if you test and report back any problem.
>>>> Kind regards
>>>> Saber
>>>> -- 
>>>> Saber Razmjooei
>>>> www.lutraconsulting.co.uk <http://www.lutraconsulting.co.uk/>
>>>> 
>>>> _______________________________________________
>>>> QGIS-Developer mailing list
>>>> QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org>
>>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
>>>> <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
>>>> <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>>> —
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> Tim Sutton
>>> 
>>> Co-founder: Kartoza
>>> Ex Project chair: QGIS.org <http://qgis.org/>
>>> 
>>> Visit http://kartoza.com <http://kartoza.com/> to find out about open 
>>> source:
>>> 
>>> Desktop GIS programming services
>>> Geospatial web development
>>> GIS Training
>>> Consulting Services
>>> 
>>> Skype: timlinux 
>>> IRC: timlinux on #qgis at freenode.net <http://freenode.net/>
>>> 
>>> 
>>> -- 
>>> Saber Razmjooei
>>> www.lutraconsulting.co.uk <http://www.lutraconsulting.co.uk/>
>>> +44 (0)7568 129733
>>> <KartozaNewLogoThumbnail.jpg><KartozaNewLogoThumbnail.jpg>_______________________________________________
>>> Qgis-user mailing list
>>> qgis-u...@lists.osgeo.org <mailto:qgis-u...@lists.osgeo.org>
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>>> <https://lists.osgeo.org/mailman/listinfo/qgis-user>
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user 
>>> <https://lists.osgeo.org/mailman/listinfo/qgis-user>
>> -----
>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
>> http://www.kyngchaos.com/ <http://www.kyngchaos.com/>
>> 
>> Earth: "Mostly harmless"
>> 
>> - revised entry in the HitchHiker's Guide to the Galaxy
>> 
>> 
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
>> <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
>> <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>> 
>> -- 
>> Saber Razmjooei
>> www.lutraconsulting.co.uk <http://www.lutraconsulting.co.uk/>
>> +44 (0)7568 129733 <tel:+44%207568%20129733>
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer@lists.osgeo.org <mailto:QGIS-Developer@lists.osgeo.org>
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
>> <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer 
>> <https://lists.osgeo.org/mailman/listinfo/qgis-developer>
> —
> 
> 
> 
> 
> 
> 
> 
> 
> Tim Sutton
> 
> Co-founder: Kartoza
> Ex Project chair: QGIS.org <http://qgis.org/>
> 
> Visit http://kartoza.com <http://kartoza.com/> to find out about open source:
> 
> Desktop GIS programming services
> Geospatial web development
> GIS Training
> Consulting Services
> 
> Skype: timlinux 
> IRC: timlinux on #qgis at freenode.net <http://freenode.net/>
> <KartozaNewLogoThumbnail.jpg><KartozaNewLogoThumbnail.jpg>

—








Tim Sutton

Co-founder: Kartoza
Ex Project chair: QGIS.org

Visit http://kartoza.com <http://kartoza.com/> to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux 
IRC: timlinux on #qgis at freenode.net

_______________________________________________
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to