matplotlib-override is from my package.  I do that to make it simpler to get 
matplotlib and its dependencies (ie the problematic mpl_toolkits) to load 
before the system matplotlib.  

The installer does not do anything to the system matplotlib.  The override 
mpl_toolkits has the needed __init__.py.

> On May 2, 2016, at 8:33 AM, Thomas Endres <endres.tho...@gmail.com> wrote:
> 
> 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 <wokl...@kyngchaos.com> 
> wrote:
> 
> > On Apr 29, 2016, at 10:24 AM, Thomas Endres <endres.tho...@gmail.com> wrote:
> >
> > Hi Larry,
> >
> > On Thu, Apr 28, 2016 at 10:30 PM, Larry Shaffer <lar...@dakotacarto.com> 
> > wrote:
> > Hi Thomas,
> >
> > On Thu, Apr 28, 2016 at 10:54 AM, Thomas Endres <endres.tho...@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
> 
> 
> 
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"The beast is actively interested only in now, and, as it is always now and 
always shall be, there is an eternity of time for the accomplishment of 
objects."

- the wisdom of Tarzan





_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to