planetfederal / qgis-webappbuilder-plugin

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

test "Symbology test: points" cannot find datasource then fails #405

Open gioman opened 7 years ago

gioman commented 7 years ago

screenshot_20170530_114519

not even pointing manually to the datasource works

screenshot_20170530_114749

then the test fails

Test name: Web App Builder-Symbology test 'points'
Test result:Test failed at step 'Creating web app' with message:
'NoneType' object has no attribute 'type'
Traceback (most recent call last):
  File "C:/Users/boundless/.qgis2/python/plugins\qgistester\testerwidget.py", line 142, in runNextStep
    execute(step.function)
  File "C:/Users/boundless/.qgis2/python/plugins\qgistester\utils.py", line 70, in execute
    return func()
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\tests\testerplugin.py", line 79, in <lambda>
    test.addStep("Creating web app", lambda: _createWebApp(n))
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\tests\testerplugin.py", line 42, in _createWebApp
    webAppFolder = createAppFromTestAppdef(n, checkApp, preview)
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\tests\utils.py", line 91, in createAppFromTestAppdef
    writeWebApp(appdef, folder, preview, SilentProgress())
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\appwriter.py", line 73, in writeWebApp
    appdef["Settings"]["App view CRS"], forPreview)
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\utils.py", line 123, in exportLayers
    if layer.type() == layer.VectorLayer and layer.providerType().lower() != "wfs":
AttributeError: 'NoneType' object has no attribute 'type'
gioman commented 7 years ago

@volaya same things for test "points2"

Test name: Web App Builder-Symbology test 'points2'
Test result:Test failed at step 'Creating web app' with message:
'NoneType' object has no attribute 'type'
Traceback (most recent call last):
  File "C:/Users/boundless/.qgis2/python/plugins\qgistester\testerwidget.py", line 142, in runNextStep
    execute(step.function)
  File "C:/Users/boundless/.qgis2/python/plugins\qgistester\utils.py", line 70, in execute
    return func()
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\tests\testerplugin.py", line 79, in <lambda>
    test.addStep("Creating web app", lambda: _createWebApp(n))
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\tests\testerplugin.py", line 42, in _createWebApp
    webAppFolder = createAppFromTestAppdef(n, checkApp, preview)
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\tests\utils.py", line 91, in createAppFromTestAppdef
    writeWebApp(appdef, folder, preview, SilentProgress())
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\appwriter.py", line 73, in writeWebApp
    appdef["Settings"]["App view CRS"], forPreview)
  File "C:/Users/boundless/.qgis2/python/plugins\webappbuilder\utils.py", line 123, in exportLayers
    if layer.type() == layer.VectorLayer and layer.providerType().lower() != "wfs":
AttributeError: 'NoneType' object has no attribute 'type'
luipir commented 7 years ago

doing it relative

luipir commented 7 years ago

@gioman I can't confirm :( if works for me!

gioman commented 7 years ago

@luipir are you on windows?

luipir commented 7 years ago

no

gioman commented 7 years ago

no @luipir then it doesn't count :)

luipir commented 7 years ago

I'll give a try tomorrow on a win setup

gioman commented 7 years ago

@volaya @luipir same issue on macOS, for what it matters.

volaya commented 7 years ago

Working fine here in OSX. I see that the paths in the project are relative, so it should open correctly...

gioman commented 7 years ago

test_wa