planetfederal / qgis-webappbuilder-plugin

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

layers project is not compiling #423

Open SrNetoChan opened 7 years ago

SrNetoChan commented 7 years ago
WebAppBuilder: Traceback (most recent call last):
              File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\appcreator.py", line 59, in createApp
                writeWebApp(appdef, folder, forPreview, progress)
              File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\appwriter.py", line 101, in writeWebApp
                w.write(appdef, dst, _app, progress)
              File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\widgets\geocoding\geocoding.py", line 34, in write
                self.copyToResources("marker.png", folder)
              File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\webbappwidget.py", line 90, in copyToResources
                resourcesFolder = os.path.join(folder, "resources")
            AttributeError: 'NoneType' object has no attribute 'path'

I believe this is something that this is the same error that is giving in a bunch off other manual tests

luipir commented 7 years ago

I suppose has the same origin of the issue fixed here: https://github.com/boundlessgeo/qgis-geoserver-plugin/issues/85

IMHO It's necessary to investigate the loose of module reference during runtime

SrNetoChan commented 7 years ago

This is happen in any app if you add a geocoding widget. It is not possible to preview the app.

volaya commented 7 years ago

as Luigi says, this is not a problem of the plugin. It seems that some imports get lost... QGIS problem or Desktop one, something in the Python bindings...

SrNetoChan commented 7 years ago

What to do with this one? I can't reproduce it in a systematic way.

luipir commented 7 years ago

a questions, do you do any plugin reload?

SrNetoChan commented 7 years ago

I normally reload QGIS after a fresh install of plugins. Not sure if that was the case with WAB when I had that problem. Do you want me to try not reloading WAB before I run the test? To see if something happens?

luipir commented 7 years ago

ok, so plugin reload is not the problem... for me it's still a mistery. Btw I've way to investigate... after the end of tests

luipir commented 7 years ago

that is important is a reproducible case to investigate the origin of the problem