Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gioman opened this issue May 30, 2017 · 10 comments
Open

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

gioman opened this issue May 30, 2017 · 10 comments
Assignees
Labels

Comments

@gioman
Copy link

gioman commented May 30, 2017

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
Copy link
Author

gioman commented May 30, 2017

@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
Copy link
Contributor

luipir commented May 30, 2017

doing it relative

@luipir luipir assigned luipir and unassigned volaya May 30, 2017
@luipir
Copy link
Contributor

luipir commented May 30, 2017

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

@gioman
Copy link
Author

gioman commented May 30, 2017

@luipir are you on windows?

@luipir
Copy link
Contributor

luipir commented May 30, 2017

no

@gioman
Copy link
Author

gioman commented May 30, 2017

no
@luipir then it doesn't count :)

@luipir
Copy link
Contributor

luipir commented May 30, 2017

I'll give a try tomorrow on a win setup

@gioman
Copy link
Author

gioman commented May 31, 2017

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

@volaya
Copy link
Contributor

volaya commented Jun 5, 2017

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

@gioman
Copy link
Author

gioman commented Jun 5, 2017

test_wa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants