-
Notifications
You must be signed in to change notification settings - Fork 21
Uncaught AttributeError: 'NoneType' object has no attribute 'source' #51
Comments
I get a similar probem (Windows 7, QGIS 2.18.5, qgis-versioning 0.6, PostgreSQL 9.6, PostGIS 2.3). Same cause? Any clues what's wrong?
|
What type of layers you have in the group layer in QGIS you are versioning (printscreen)? It seems that you have combined in the group, layers that are not postgres and it seems to be either a: TileLayer (#51 (comment)) or a source that did not open successfully (#51 (comment))... |
Hmm, interesting. So I had created a normal group in the Layers Panel (Add Group), then added just one PostGIS layer to this group. I now created a new project and did the same thing, and the "historize" action worked correctly. The only difference is that in my earlier project, there were also other groups with layers in them when I first tried, but I had selected the one with only the PostGIS layer. I'll see if I can get it to work in the existing project as well. Thanks! |
Yes, you need to have a group layer that includes only the layers that you want to "historize" in PG. |
But is it expected that there can be no other groups in the project? I thought that the historize action would act on just the selected group, so it shouldn't matter that there are also other groups. |
Just tried it again in a new project, and it seems that currently the only way historize a group is to have no other groups with layers present anywhere in the QGIS project. There can only be one group with the PostGIS layer to be versioned, or I get |
Project migrated to : https://gitlab.com/Oslandia/qgis/qgis-versioning |
Steps to reproduce
qgis_versioning 0.4, QGIS 2.14.8-Essen on Windows 10
The text was updated successfully, but these errors were encountered: