[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&#39;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">&lt;<a href="mailto:tylerkveinot@gmail.com" \
target="_blank">tylerkveinot@gmail.com</a>&gt;</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">&lt;<a href="mailto:matthias@opengis.ch" \
target="_blank">matthias@opengis.ch</a>&gt;</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>
&gt; I am getting Python errors on QGIS Startup for Processing and QEsg, due<br>
&gt; to classFactory() error. The issue started when I installed; pip install<br>
&gt; python-Qt5, PyQt4-4.11.4-cp27-cp27m-win32.<wbr>whl,<br>
&gt; <a href="http://PyQtdesignerplugins-1.1-py2.py">PyQtdesignerplugins-1.1-py2.py</a><wbr>3-none-any.whl, \
and<br> &gt; pyqtgraph-0.10.0-py2.py3-none-<wbr>any.whl trying to fill the \
dependencies<br> &gt; required for the QField Sync plugin which was failing   because \
it could<br> &gt; not import name uic.<br>
&gt; I tried uninstalling the Python Modules 1 by 1 and checking QGIS but<br>
&gt; after they were all uninstalled QGIS still failed. I reinstalled QGIS<br>
&gt; with no changes. I then uninstalled QGIS and reinstalled using the<br>
&gt; OSGeo4W installer. I still get the classFactory() error for as stated above.<br>
&gt; Below is the Python Message Log, any thoughts on how to fix this?<br>
&gt;<br>
</span>&gt; 2017-03-30T12:57:321Traceback (most recent call last):<br>
<span>&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line \
333, in<br> &gt; startPlugin<br>
&gt;      plugins[packageName] = package.classFactory(iface)<br>
&gt;   File &quot;C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\__init__.py&quot;, \
line<br> &gt; 34, in classFactory<br>
&gt;      from QEsg_00Settings import QEsg<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File \
&quot;C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\QEsg_00Settings<wbr>.py&quot;,<br>
 &gt; line 41, in &lt;module&gt;<br>
&gt;      from QEsg_05Perfil import *<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File \
&quot;C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\QEsg_05Perfil.<wbr>py&quot;,<br>
 &gt; line 31, in &lt;module&gt;<br>
&gt;      import matplotlib.pyplot as plt<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt; ImportError: No module named matplotlib.pyplot<br>
</span>&gt; 2017-03-30T12:57:341Traceback (most recent call last):<br>
<span>&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line \
333, in<br> &gt; startPlugin<br>
&gt;      plugins[packageName] = package.classFactory(iface)<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\__init__.<wbr>py&quot;,<br>
 &gt; line 37, in classFactory<br>
&gt;      from processing.ProcessingPlugin import ProcessingPlugin<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File<br>
&gt; &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\Processin<wbr>gPlugin.py&quot;,<br>
 &gt; line 38, in &lt;module&gt;<br>
&gt;      from processing.gui.ProcessingToolb<wbr>ox import ProcessingToolbox<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File<br>
&gt; &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\gui\Proce<wbr>ssingToolbox.py&quot;,<br>
 &gt; line 31, in &lt;module&gt;<br>
&gt;      from qgis.PyQt import uic<br>
&gt; ImportError: cannot import name uic<br>
</span>&gt; 2017-03-30T12:57:341Traceback (most recent call last):<br>
<span>&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line \
333, in<br> &gt; startPlugin<br>
&gt;      plugins[packageName] = package.classFactory(iface)<br>
&gt;   File &quot;C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\__init__.py&quot;, \
line<br> &gt; 34, in classFactory<br>
&gt;      from QEsg_00Settings import QEsg<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File \
&quot;C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\QEsg_00Settings<wbr>.py&quot;,<br>
 &gt; line 41, in &lt;module&gt;<br>
&gt;      from QEsg_05Perfil import *<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File \
&quot;C:/Users/tveinot/.qgis2/pytho<wbr>n/plugins\QEsg\QEsg_05Perfil.<wbr>py&quot;,<br>
 &gt; line 31, in &lt;module&gt;<br>
&gt;      import matplotlib.pyplot as plt<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt; ImportError: No module named matplotlib.pyplot<br>
</span>&gt; 2017-03-30T12:57:341Traceback (most recent call last):<br>
<div><div class="m_8068720297152152348h5">&gt;   File \
&quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 308, in<br> &gt; \
loadPlugin<br> &gt;      __import__(packageName)<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File \
&quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\__init__.<wbr>py&quot;,<br>
 &gt; line 29, in &lt;module&gt;<br>
&gt;      from processing.tools.general import *                     # NOQA<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File<br>
&gt; &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\tools\<wbr>general.py&quot;,<br>
 &gt; line 31, in &lt;module&gt;<br>
&gt;      from processing.core.Processing import Processing<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File<br>
&gt; &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\core\<wbr>Processing.py&quot;,<br>
 &gt; line 42, in &lt;module&gt;<br>
&gt;      from processing.script.ScriptUtils import ScriptUtils<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File<br>
&gt; &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\script\<wbr>ScriptUtils.py&quot;,<br>
 &gt; line 30, in &lt;module&gt;<br>
&gt;      from processing.script.ScriptAlgori<wbr>thm import ScriptAlgorithm<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File<br>
&gt; &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\script\<wbr>ScriptAlgorithm.py&quot;,<br>
 &gt; line 34, in &lt;module&gt;<br>
&gt;      from processing.gui.Help2Html import getHtmlFromHelpFile<br>
&gt;   File &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n\qgis\utils.py&quot;, line 607, \
in _import<br> &gt;      mod = _builtin_import(name, globals, locals, fromlist, \
level)<br> &gt;   File<br>
&gt; &quot;C:/OSGEO4~1/apps/qgis/./pytho<wbr>n/plugins\processing\gui\__<wbr>init__.py&quot;,<br>
 &gt; line 1, in &lt;module&gt;<br>
&gt;      from qgis.PyQt import uic<br>
&gt; ImportError: cannot import name uic<br>
&gt;<br>
&gt;<br>
</div></div>&gt; ______________________________<wbr>_________________<br>
&gt; Qgis-user mailing list<br>
&gt; <a href="mailto:Qgis-user@lists.osgeo.org" \
target="_blank">Qgis-user@lists.osgeo.org</a><br> &gt; 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> &gt; \
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>
 &gt;<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