Yeah, mine is returning '/usr/local/opt/python/Frameworks/Python.framework/Versions/3.6/include/python3.6m'
here is my cmake config https://gist.github.com/3nids/60bc40b47e6e4db32cd20b81b58c9098 there is the Pyhton executable, that's the only thing I see I hope this helps. Denis Le lun. 11 juin 2018 à 08:09, Tim Sutton <[email protected]> a écrit : > Hi > > Oops looking more closely at FindPythonLibrary.cmake, it only uses your > cmake overrides if all three of PYTHON_INCLUDE_PATH, PYTHON_LIBRARY and > PYTHON_SITE_PACKAGES_DIR are set. I put mine to: > > > > PYTHON_INCLUDE_PATH:STRING=/usr/local/Frameworks/Python.framework/Versions/3.6/include/python3.6m/ > > PYTHON_LIBRARY:STRING=/usr/local/Frameworks/Python.framework/Versions/3.6/lib/ > > PYTHON_SITE_PACKAGES_DIR:STRING=/usr/local/Frameworks/Python.framework/Versions/3.6/lib > > Just busy compiling mine to see if that works now… > > Regards > > Tim > > > On 11 Jun 2018, at 13:52, Tim Sutton <[email protected]> wrote: > > Hi Denis > > > > On 11 Jun 2018, at 13:10, Denis Rouzaud <[email protected]> wrote: > > Hi Tim, > > Apparently, you're using the system Python. Are you sure you have sip > installed in there? > In my config, sip is installed in /usr/local/lib/python3.6/site-packages/ > > > Thanks for your reply. Yeah I know - I’m more trying to figure out how to > get it to ignore the system install python 3. Its wierd because distils is > always showing the system include dir rather than my local one e.g.: > > [timlinux@sandstone ~/dev/cpp/QGIS (master)]$ /usr/local/bin/python3 > Python 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import distutils.sysconfig > >>> distutils.sysconfig.get_python_inc() > '/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m' > > I’m expecting it to return > > /usr/local/Frameworks/Python.framework/Versions/3.6/include > > Since I ran the brew installed python3. > > Even overriding the CMAKE options in my kit always returns the /library > path because FindPython calls the FindLibPython.py before doing anything > else it seems. > > Regards > > Tim > > Denis > > Le lun. 11 juin 2018 à 05:20, Tim Sutton <[email protected]> a écrit : > > Hi All (Larry?) >> >> Testing the latest master from today, self build on macOS, I am getting >> this on application start up (see below). Is this a Mac only problem? Does >> anyone else building on Mac Get this? >> >> Regards >> >> Tim >> >> Couldn't load SIP module. >> Python support will be disabled. >> >> >> Traceback (most recent call last): >> File "", line 1, in >> ModuleNotFoundError: No module named 'sip' >> >> Python version: >> 3.6.4 (v3.6.4:d48ecebad5, Dec 18 2017, 21:07:28) >> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] >> >> QGIS version: >> 3.1.0-Master 'Master', 4e084b63c4 >> >> Python path: >> ['/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python', >> '/Users/timlinux/Library/Application >> Support/QGIS/QGIS3/profiles/default/python', >> '/Users/timlinux/Library/Application >> Support/QGIS/QGIS3/profiles/default/python/plugins', >> '/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/python/plugins', >> '/Users/timlinux/dev/cpp/QGIS-QtCreator-Build/output/bin/$PYTHONPATH', >> '/usr/local/opt/gdal2-python/lib/python3.6/site-packages', >> '/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip', >> '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6', >> '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload', >> '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages’] >> >> >> >> >> >> — >> >> >> <KartozaNewLogoThumbnail.jpg> >> > >> >> >> >> >> *Tim Sutton* >> >> *Co-founder:* Kartoza >> *Ex Project chair:* QGIS.org <http://qgis.org/> >> >> Visit 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 >> [email protected] >> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer >> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer > > <KartozaNewLogoThumbnail.jpg><KartozaNewLogoThumbnail.jpg> > > > — > > > <KartozaNewLogoThumbnail.jpg> > > > > > > > *Tim Sutton* > > *Co-founder:* Kartoza > *Ex Project chair:* QGIS.org <http://qgis.org/> > > Visit 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 > > > — > > > > > > > > *Tim Sutton* > > *Co-founder:* Kartoza > *Ex Project chair:* QGIS.org > > Visit 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 [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
