planetfederal / qgis-webappbuilder-plugin

GNU General Public License v3.0
18 stars 20 forks source link

Uncaught ImportError: No module named networkaccessmanager #428

Open dustinturp opened 7 years ago

dustinturp commented 7 years ago

Couldn't load plugin webappbuilder due to an error when calling its classFactory() method Steps to reproduce

  1. First
  2. Second
  3. Third
Traceback (most recent call last):
  File "/Library/Boundless/Desktop/1.1/Cellar/qgis2-bdesk/2.18.10/QGIS for Boundless Desktop 1.1.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 333, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File "/Users/dustinturpin/.qgis2/python/plugins/webappbuilder/__init__.py", line 13, in classFactory
    from webappbuilder.webappbuilder_plugin import WebAppBuilderPlugin
  File "/Library/Boundless/Desktop/1.1/Cellar/qgis2-bdesk/2.18.10/QGIS for Boundless Desktop 1.1.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/dustinturpin/.qgis2/python/plugins/webappbuilder/webappbuilder_plugin.py", line 15, in <module>
    from webappbuilder.maindialog import MainDialog
  File "/Library/Boundless/Desktop/1.1/Cellar/qgis2-bdesk/2.18.10/QGIS for Boundless Desktop 1.1.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/dustinturpin/.qgis2/python/plugins/webappbuilder/maindialog.py", line 14, in <module>
    import utils
  File "/Library/Boundless/Desktop/1.1/Cellar/qgis2-bdesk/2.18.10/QGIS for Boundless Desktop 1.1.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/Users/dustinturpin/.qgis2/python/plugins/webappbuilder/utils.py", line 20, in <module>
    from qgiscommons.networkaccessmanager import NetworkAccessManager
  File "/Library/Boundless/Desktop/1.1/Cellar/qgis2-bdesk/2.18.10/QGIS for Boundless Desktop 1.1.app/Contents/MacOS/../Resources/python/qgis/utils.py", line 607, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named networkaccessmanager

webappbuilder 1.0, QGIS 2.18.10 on Darwin 16.6.0

gioman commented 7 years ago

Hi, sorry for late reply, I investigated a bit and with the help of Desktop team I understand that at this moment because of developments in the qgiscommons library there could not be a mix of plugins installed from Boundless DEV repo and from users repo. Try remove any plugin installed from DEV repo, disabled the DEV repo and try install again WAB from users repo.