[prev in list] [next in list] [prev in thread] [next in thread]
List: qgis-user
Subject: Re: [Qgis-user] Processing tools stopped working.
From: Tyler Veinot <tylerkveinot () gmail ! com>
Date: 2017-03-30 16:48:34
Message-ID: CANfsH32Mb3te2totEE3tY93pkPxYaXVXCmL_79JAFUHG2KSWnQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Matthias;
I managed to fix all the errors but the one for processing of which seems
to be tied to the pyQt modules.
I uninstalled all those whl's and the python-QT5 but still not having any
luck. The errors for QEsg were solved by reinstalling utilis and matplotlib.
Tyler
On Thu, Mar 30, 2017 at 1:44 PM, Tyler Veinot <tylerkveinot@gmail.com>
wrote:
> Matthias;
> Ok, how do I fix my system/python?
> Tyler
>
> On Thu, Mar 30, 2017 at 1:35 PM, Matthias Kuhn <matthias@opengis.ch>
> wrote:
>
>> Hi Tyler,
>>
>> this is an issue with the plugin (on some systems) and not an issue with
>> your dependencies.
>>
>> Do not install PyQt packages with pip on the system where QGIS is
>> installed. This will install imcompatible binary libraries which is
>> never a good idea.
>>
>> Matthias
>>
>> On 03/30/2017 06:12 PM, Tyler Veinot wrote:
>> > I am getting Python errors on QGIS Startup for Processing and QEsg, due
>> > to classFactory() error. The issue started when I installed; pip install
>> > python-Qt5, PyQt4-4.11.4-cp27-cp27m-win32.whl,
>> > PyQtdesignerplugins-1.1-py2.py3-none-any.whl, and
>> > pyqtgraph-0.10.0-py2.py3-none-any.whl trying to fill the dependencies
>> > required for the QField Sync plugin which was failing because it could
>> > not import name uic.
>> > I tried uninstalling the Python Modules 1 by 1 and checking QGIS but
>> > after they were all uninstalled QGIS still failed. I reinstalled QGIS
>> > with no changes. I then uninstalled QGIS and reinstalled using the
>> > OSGeo4W installer. I still get the classFactory() error for as stated
>> above.
>> > Below is the Python Message Log, any thoughts on how to fix this?
>> >
>> > 2017-03-30T12:57:321Traceback (most recent call last):
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 333, in
>> > startPlugin
>> > plugins[packageName] = package.classFactory(iface)
>> > File "C:/Users/tveinot/.qgis2/python/plugins\QEsg\__init__.py", line
>> > 34, in classFactory
>> > from QEsg_00Settings import QEsg
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File "C:/Users/tveinot/.qgis2/python/plugins\QEsg\QEsg_00Settings.py",
>> > line 41, in <module>
>> > from QEsg_05Perfil import *
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File "C:/Users/tveinot/.qgis2/python/plugins\QEsg\QEsg_05Perfil.py",
>> > line 31, in <module>
>> > import matplotlib.pyplot as plt
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > ImportError: No module named matplotlib.pyplot
>> > 2017-03-30T12:57:341Traceback (most recent call last):
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 333, in
>> > startPlugin
>> > plugins[packageName] = package.classFactory(iface)
>> > File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\__init__.py",
>> > line 37, in classFactory
>> > from processing.ProcessingPlugin import ProcessingPlugin
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File
>> > "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\Processin
>> gPlugin.py",
>> > line 38, in <module>
>> > from processing.gui.ProcessingToolbox import ProcessingToolbox
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File
>> > "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\gui\Proce
>> ssingToolbox.py",
>> > line 31, in <module>
>> > from qgis.PyQt import uic
>> > ImportError: cannot import name uic
>> > 2017-03-30T12:57:341Traceback (most recent call last):
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 333, in
>> > startPlugin
>> > plugins[packageName] = package.classFactory(iface)
>> > File "C:/Users/tveinot/.qgis2/python/plugins\QEsg\__init__.py", line
>> > 34, in classFactory
>> > from QEsg_00Settings import QEsg
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File "C:/Users/tveinot/.qgis2/python/plugins\QEsg\QEsg_00Settings.py",
>> > line 41, in <module>
>> > from QEsg_05Perfil import *
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File "C:/Users/tveinot/.qgis2/python/plugins\QEsg\QEsg_05Perfil.py",
>> > line 31, in <module>
>> > import matplotlib.pyplot as plt
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > ImportError: No module named matplotlib.pyplot
>> > 2017-03-30T12:57:341Traceback (most recent call last):
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 308, in
>> > loadPlugin
>> > __import__(packageName)
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\__init__.py",
>> > line 29, in <module>
>> > from processing.tools.general import * # NOQA
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File
>> > "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\tools\general.py",
>> > line 31, in <module>
>> > from processing.core.Processing import Processing
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File
>> > "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\core\Processing.py",
>> > line 42, in <module>
>> > from processing.script.ScriptUtils import ScriptUtils
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File
>> > "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\script\
>> ScriptUtils.py",
>> > line 30, in <module>
>> > from processing.script.ScriptAlgorithm import ScriptAlgorithm
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File
>> > "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\script\
>> ScriptAlgorithm.py",
>> > line 34, in <module>
>> > from processing.gui.Help2Html import getHtmlFromHelpFile
>> > File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 607, in
>> _import
>> > mod = _builtin_import(name, globals, locals, fromlist, level)
>> > File
>> > "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\gui\__init__.py",
>> > line 1, in <module>
>> > from qgis.PyQt import uic
>> > ImportError: cannot import name uic
>> >
>> >
>> > _______________________________________________
>> > Qgis-user mailing list
>> > Qgis-user@lists.osgeo.org
>> > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> >
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
[Attachment #5 (text/html)]
<div dir="ltr">Matthias;<div>I managed to fix all the errors but the one for \
processing of which seems to be tied to the pyQt modules.</div><div>I uninstalled all \
those whl's and the python-QT5 but still not having any luck. The errors for QEsg \
were solved by reinstalling utilis and matplotlib.</div><div>Tyler</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 at 1:44 PM, \
Tyler Veinot <span dir="ltr"><<a href="mailto:tylerkveinot@gmail.com" \
target="_blank">tylerkveinot@gmail.com</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Matthias;<div>Ok, how do I fix my \
system/python?</div><span class="HOEnZb"><font \
color="#888888"><div>Tyler</div></font></span></div><div class="HOEnZb"><div \
class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 30, 2017 \
at 1:35 PM, Matthias Kuhn <span dir="ltr"><<a href="mailto:matthias@opengis.ch" \
target="_blank">matthias@opengis.ch</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi Tyler,<br> <br>
this is an issue with the plugin (on some systems) and not an issue with<br>
your dependencies.<br>
<br>
Do not install PyQt packages with pip on the system where QGIS is<br>
installed. This will install imcompatible binary libraries which is<br>
never a good idea.<br>
<br>
Matthias<br>
<span><br>
On 03/30/2017 06:12 PM, Tyler Veinot wrote:<br>
> I am getting Python errors on QGIS Startup for Processing and QEsg, due<br>
> to classFactory() error. The issue started when I installed; pip install<br>
> python-Qt5, PyQt4-4.11.4-cp27-cp27m-win32.<wbr>whl,<br>
> <a href="http://PyQtdesignerplugins-1.1-py2.py">PyQtdesignerplugins-1.1-py2.py</a><wbr>3-none-any.whl, \
and<br> > pyqtgraph-0.10.0-py2.py3-none-<wbr>any.whl trying to fill the \
dependencies<br> > required for the QField Sync plugin which was failing because \
it could<br> > not import name uic.<br>
> I tried uninstalling the Python Modules 1 by 1 and checking QGIS but<br>
> after they were all uninstalled QGIS still failed. I reinstalled QGIS<br>
> with no changes. I then uninstalled QGIS and reinstalled using the<br>
> OSGeo4W installer. I still get the classFactory() error for as stated above.<br>
> Below is the Python Message Log, any thoughts on how to fix this?<br>
><br>
</span>> 2017-03-30T12:57:321Traceback (most recent call last):<br>
<span>> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line \
333, in<br> > startPlugin<br>
> plugins[packageName] = package.classFactory(iface)<br>
> File "C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\__init__.py", \
line<br> > 34, in classFactory<br>
> from QEsg_00Settings import QEsg<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File \
"C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\QEsg_00Settings<wbr>.py",<br>
> line 41, in <module><br>
> from QEsg_05Perfil import *<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File \
"C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\QEsg_05Perfil.<wbr>py",<br>
> line 31, in <module><br>
> import matplotlib.pyplot as plt<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > ImportError: No module named matplotlib.pyplot<br>
</span>> 2017-03-30T12:57:341Traceback (most recent call last):<br>
<span>> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line \
333, in<br> > startPlugin<br>
> plugins[packageName] = package.classFactory(iface)<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\__init__.<wbr>py",<br>
> line 37, in classFactory<br>
> from processing.ProcessingPlugin import ProcessingPlugin<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File<br>
> "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\Processin<wbr>gPlugin.py",<br>
> line 38, in <module><br>
> from processing.gui.ProcessingToolb<wbr>ox import ProcessingToolbox<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File<br>
> "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\gui\Proce<wbr>ssingToolbox.py",<br>
> line 31, in <module><br>
> from qgis.PyQt import uic<br>
> ImportError: cannot import name uic<br>
</span>> 2017-03-30T12:57:341Traceback (most recent call last):<br>
<span>> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line \
333, in<br> > startPlugin<br>
> plugins[packageName] = package.classFactory(iface)<br>
> File "C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\__init__.py", \
line<br> > 34, in classFactory<br>
> from QEsg_00Settings import QEsg<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File \
"C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\QEsg_00Settings<wbr>.py",<br>
> line 41, in <module><br>
> from QEsg_05Perfil import *<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File \
"C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\QEsg_05Perfil.<wbr>py",<br>
> line 31, in <module><br>
> import matplotlib.pyplot as plt<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > ImportError: No module named matplotlib.pyplot<br>
</span>> 2017-03-30T12:57:341Traceback (most recent call last):<br>
<div><div class="m_8068720297152152348h5">> File \
"C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 308, in<br> > \
loadPlugin<br> > __import__(packageName)<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File \
"C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\__init__.<wbr>py",<br>
> line 29, in <module><br>
> from processing.tools.general import * # NOQA<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File<br>
> "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\tools\<wbr>general.py",<br>
> line 31, in <module><br>
> from processing.core.Processing import Processing<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File<br>
> "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\core\<wbr>Processing.py",<br>
> line 42, in <module><br>
> from processing.script.ScriptUtils import ScriptUtils<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File<br>
> "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\script\<wbr>ScriptUtils.py",<br>
> line 30, in <module><br>
> from processing.script.ScriptAlgori<wbr>thm import ScriptAlgorithm<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File<br>
> "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\script\<wbr>ScriptAlgorithm.py",<br>
> line 34, in <module><br>
> from processing.gui.Help2Html import getHtmlFromHelpFile<br>
> File "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py", line 607, \
in _import<br> > mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> > File<br>
> "C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\gui\__<wbr>init__.py",<br>
> line 1, in <module><br>
> from qgis.PyQt import uic<br>
> ImportError: cannot import name uic<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Qgis-user mailing list<br>
> <a href="mailto:Qgis-user@lists.osgeo.org" \
target="_blank">Qgis-user@lists.osgeo.org</a><br> > List info: <a \
href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" \
target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a><br> > \
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" \
rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a><br>
><br>
______________________________<wbr>_________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" \
target="_blank">Qgis-user@lists.osgeo.org</a><br> List info: <a \
href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" \
target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" \
rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-user</a></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
[Attachment #6 (text/plain)]
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic