<div dir="ltr">Hi Larry,<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 28, 2016 at 10:30 PM, Larry Shaffer <span dir="ltr"><<a href="mailto:larrys@dakotacarto.com" target="_blank">larrys@dakotacarto.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Thomas,<div class="gmail_extra">
<br><div class="gmail_quote"><span class="">On Thu, Apr 28, 2016 at 10:54 AM, Thomas Endres <span dir="ltr"><<a href="mailto:endres.thomas@gmail.com" target="_blank">endres.thomas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">
<p style="margin:0px">HI All,</p><p style="margin:0px">I have been using the nightly builds for quite some time with OS X 10.11.4.</p><p style="margin:0px">Couple of questions regarding errors I am seeing in the 'Log Messages Panel':</p><p style="margin:0px">1) Are QT Painter errors due to work with 3.0? Should they be disregarded or reported? Lots of the following after a change in zoom level:</p><p style="margin:0px;text-indent:0px">QPainter::begin: Paint device returned engine == 0, type: 3</p><p style="margin:0px;text-indent:0px">2016-04-28T11:31:54 1 QPainter::setRenderHint: Painter must be active to set rendering hints</p><p style="margin:0px;text-indent:0px">2016-04-28T11:31:54 1 QPainter::translate: Painter not active</p><p style="margin:0px">
</p><p style="margin:0px">2016-04-28T11:31:54 1 QPainter::end: Painter not active, aborted</p></div></blockquote><div><br></div></span><div>This is a bug somewhere that is trying to set a property on a non-existent QPainter. That might be tricky to track down. Doesn't seem to be hurting anything, though.</div></div></div></div></blockquote><div><br></div><div>Thanks for the info - for people smarter than I, here are the first lines from the Qt tab in the 'Log Messages Panel' after launching a nightly QGIS build and opening a project - the last 4 lines repeat a few hundred times: </div><div><br></div><div>
<p style="margin:0px">2016-04-29T10:15:52 1 Object::connect: No such signal QgsComposerItemComboBox::itemChanged( const QgsComposerItem* )</p>
<p style="margin:0px">2016-04-29T10:15:52 1 Object::connect: (sender name: 'mWorldFileMapComboBox')</p>
<p style="margin:0px">2016-04-29T10:15:52 1 Object::connect: (receiver name: 'QgsCompositionWidgetBase')</p>
<p style="margin:0px">2016-04-29T10:15:52 1 Object::connect: No such signal QgsComposerItemComboBox::itemChanged( const QgsComposerItem* )</p>
<p style="margin:0px">2016-04-29T10:15:52 1 Object::connect: (sender name: 'mOverviewFrameMapComboBox')</p>
<p style="margin:0px">2016-04-29T10:15:52 1 Object::connect: (receiver name: 'QgsComposerMapWidgetBase')</p>
<p style="margin:0px">2016-04-29T10:15:52 1 Object::connect: No such signal QgsComposerItemComboBox::itemChanged( const QgsComposerItem* )</p>
<p style="margin:0px">2016-04-29T10:15:52 1 Object::connect: (sender name: 'mWorldFileMapComboBox')</p>
<p style="margin:0px">2016-04-29T10:15:52 1 Object::connect: (receiver name: 'QgsCompositionWidgetBase')</p>
<p style="margin:0px">2016-04-29T10:15:53 1 QPainter::begin: Paint device returned engine == 0, type: 3</p>
<p style="margin:0px">2016-04-29T10:15:54 1 QPainter::setRenderHint: Painter must be active to set rendering hints</p>
<p style="margin:0px">2016-04-29T10:15:54 1 QPainter::translate: Painter not active</p>
<p style="margin:0px">2016-04-29T10:15:54 1 QPainter::end: Painter not active, aborted</p></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><p style="margin:0px">2) Ever since I can remember I have had the following appear in the 'Python warning' tab:</p><p style="margin:0px">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<br></p></div></blockquote><div><br></div></span><div>This is a system-installed module (not part of the QGIS packaging). You can just ignore the warning.</div><div><br></div><div>You could try the following to get rid of the warning:</div><div><br></div><div><span style="font-size:12.8px">sudo touch /System/Library/Frameworks/</span><span style="font-size:12.8px">Python.framework/Versions/2.7/</span><span style="font-size:12.8px">Extras/lib/python/mpl_</span><span style="font-size:12.8px">toolkits/</span>__init__.py<br></div></div></div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>Thanks again Larry - super appreciated!</div><div><br></div><div>-tom</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div></div><div><br></div><div>Just creating a blank __init__.py may do the trick. However, due to SIP security on 10.11.x , you may not be 'allowed' to create the file (even with sudo). If so, you can temporarily turn off SIP, create the file, test, then turn SIP back on [0].</div><div><br></div><div>Alternatively, you could try installing matplotlib Python package from Kyngchaos.com or the official package somewhere on sys.path that will be picked up before the system install of matplotlib. I don't think this will really get rid of the warning, which may happen whenever the system paths are parsed.</div><div><br></div><div>[0] <a href="http://arstechnica.com/apple/2015/09/os-x-10-11-el-capitan-the-ars-technica-review/8/" target="_blank">http://arstechnica.com/apple/2015/09/os-x-10-11-el-capitan-the-ars-technica-review/8/</a></div><div><br></div><div>Regards,</div><div><br></div><div>Larry Shaffer<br>Dakota Cartography<br>Black Hills, South Dakota<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr"><p style="margin:0px"></p>
<p style="margin:0px"> file, filename, etc = imp.find_module(subname, path)</p>
<p style="margin:0px"> </p>
<p style="margin:0px"> traceback: File "<string>", line 1, in <module></p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 326, in startPlugin</p>
<p style="margin:0px"> plugins[packageName] = package.classFactory(iface)</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/__init__.py", line 29, in classFactory</p>
<p style="margin:0px"> from MetaSearch.plugin import MetaSearchPlugin</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 600, in _import</p>
<p style="margin:0px"> mod = _builtin_import(name, globals, locals, fromlist, level)</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/plugin.py", line 33, in <module></p>
<p style="margin:0px"> from MetaSearch.dialogs.maindialog import MetaSearchDialog</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 600, in _import</p>
<p style="margin:0px"> mod = _builtin_import(name, globals, locals, fromlist, level)</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/plugins/MetaSearch/dialogs/maindialog.py", line 43, in <module></p>
<p style="margin:0px"> from owslib.csw import CatalogueServiceWeb</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 600, in _import</p>
<p style="margin:0px"> mod = _builtin_import(name, globals, locals, fromlist, level)</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/owslib/csw.py", line 18, in <module></p>
<p style="margin:0px"> from owslib.util import OrderedDict</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 600, in _import</p>
<p style="margin:0px"> mod = _builtin_import(name, globals, locals, fromlist, level)</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/owslib/util.py", line 13, in <module></p>
<p style="margin:0px"> import pytz</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 600, in _import</p>
<p style="margin:0px"> mod = _builtin_import(name, globals, locals, fromlist, level)</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/pytz/__init__.py", line 29, in <module></p>
<p style="margin:0px"> from pkg_resources import resource_stream</p>
<p style="margin:0px"> File "/Applications/QGIS_2.15-dev.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 600, in _import</p>
<p style="margin:0px"> mod = _builtin_import(name, globals, locals, fromlist, level)</p>
<p style="margin:0px"> File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2813, in <module></p>
<p style="margin:0px"> add_activation_listener(lambda dist: dist.activate())</p>
<p style="margin:0px"> File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 686, in subscribe</p>
<p style="margin:0px"> callback(dist)</p>
<p style="margin:0px"> File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2813, in <lambda></p>
<p style="margin:0px"> add_activation_listener(lambda dist: dist.activate())</p>
<p style="margin:0px"> File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2346, in activate</p>
<p style="margin:0px"> list(map(declare_namespace, self._get_metadata('namespace_packages.txt')))</p>
<p style="margin:0px"> File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1942, in declare_namespace</p>
<p style="margin:0px"> _handle_ns(packageName, path_item)</p>
<p style="margin:0px"> File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1899, in _handle_ns</p>
<p style="margin:0px"> loader = importer.find_module(packageName)</p><p style="margin:0px"><br></p><p style="margin:0px">Install or path errors on my end?</p><p style="margin:0px"><br></p><p style="margin:0px">Thanks!</p><p style="margin:0px">-tom</p></div>
<br></div></div>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br></div></div>
</blockquote></div><br></div></div>