Matthias;
Ok, how do I fix my system/python?
Tyler

On Thu, Mar 30, 2017 at 1:35 PM, Matthias Kuhn <matth...@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\ProcessingPlugin.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\
> ProcessingToolbox.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
_______________________________________________
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

Reply via email to