[Qgis-developer] Nightly & OS X Log Messages Panel - Python and QT

Thomas Endres endres.thomas at gmail.com
Mon May 2 06:33:51 PDT 2016


HI William,
I removed the newly created __init__.py which was created by the command 'sudo
touch /System/Library/Frameworks/Python.framework/Versions/2.7/
Extras/lib/python/mpl_toolkits/__init__.py'.
Then ran your matplotlib package install and __init__.py was not created.

What's your sys.path from within a QGIS python terminal (with my matplotlib
> installed)?


>From QGIS python terminal:
 >>import sys
>>print sys.path
['/Users/tendres/.qgis2/python/plugins/processing',
'/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python',
u'/Users/tendres/.qgis2/python', u'/Users/tendres/.qgis2/python/plugins',
'/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/plugins',
'/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/1.11/Python/2.7/site-packages',
'/Library/Frameworks/cairo.framework/Versions/1/Python/2.7',
'/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/Extras/lib/python',
'/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/tendres/Library/Python/2.7/lib/python/site-packages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages',
'/Library/Python/2.7/site-packages/PIL', u'/Users/tendres/.qgis2//python',
'/Users/tendres/.qgis2/python/plugins/mmqgis/forms', '.',
'/Users/tendres/.qgis2/python/plugins/QuickMultiAttributeEdit/forms']

>
> Does my matplotlib load without noise from python in a Terminal (not QGIS)?


>From python in Terminal:
 >>import matplotlib
>>
yes

This is all on OS X 10.11.4 - not sure what 'matplotlib-override' is about
- might anaconda have messed with things?
Thanks.
-tom

On Fri, Apr 29, 2016 at 3:32 PM, William Kyngesburye <woklist at kyngchaos.com>
wrote:

>
> > On Apr 29, 2016, at 10:24 AM, Thomas Endres <endres.thomas at gmail.com>
> wrote:
> >
> > Hi Larry,
> >
> > On Thu, Apr 28, 2016 at 10:30 PM, Larry Shaffer <larrys at dakotacarto.com>
> wrote:
> > Hi Thomas,
> >
> > On Thu, Apr 28, 2016 at 10:54 AM, Thomas Endres <endres.thomas at gmail.com>
> wrote:
> > HI All,
>
> > 2) Ever since I can remember I have had the following appear in the
> 'Python warning' tab:
> > 2016-04-28T11:27:20   1
>  warning:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pkgutil.py:186:
> ImportWarning: Not importing directory
> '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/mpl_toolkits':
> missing __init__.py
> >
> > This is a system-installed module (not part of the QGIS packaging). You
> can just ignore the warning.
> >
> > You could try the following to get rid of the warning:
> >
> > sudo touch
> /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/mpl_toolkits/__init__.py
> >
> > This did the trick! Now QGIS launches clean. I forgot to mention that I
> already tried a re-install of the matplotlib Python package from
> Kyngchaos.com which did not help.
> >
> > Thanks again Larry - super appreciated!
> >
> > -tom
>
> I do have this in my matplotlib package, so I don't know why it didn't
> work for you.  Maybe you have some other python module that is messing with
> the sys.path and breaking my matplotlib (or maybe something in QGIS)?  My
> matplotlib uses an insert to make sure it loads before the system copy.
>
> What's your sys.path from within a QGIS python terminal (with my
> matplotlib installed)?
>
> Does my matplotlib load without noise from python in a Terminal (not QGIS)?
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> "Mon Dieu! but they are all alike.  Cheating, murdering, lying, fighting,
> and all for things that the beasts of the jungle would not deign to possess
> - money to purchase the effeminate pleasures of weaklings.  And yet withal
> bound down by silly customs that make them slaves to their unhappy lot
> while firm in the belief that they be the lords of creation enjoying the
> only real pleasures of existence....
>
> - the wisdom of Tarzan
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20160502/b2fed690/attachment.html>


More information about the Qgis-developer mailing list