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

Error in running the plugin #1

Open
pcav opened this issue Aug 18, 2015 · 4 comments
Open

Error in running the plugin #1

pcav opened this issue Aug 18, 2015 · 4 comments

Comments

@pcav
Copy link

pcav commented Aug 18, 2015

I'm getting an error by simply selecting two points ad adding a

dimensioning:

Traceback (most recent call last):
File "/home/paolo/.qgis2/python/plugins/dimensioning/dimensioning.py",
line 133, in calculateDimensioning
tools.utils.addGeometryToDimensionLayer( f, "main" )
File "/home/paolo/.qgis2/python/plugins/dimensioning/tools/utils.py",
line 35, in addGeometryToDimensionLayer
QgsMapLayerRegistry().instance().addMapLayer(vl, True)
TypeError: qgis._core.QgsMapLayerRegistry cannot be instantiated or
sub-classed

@fredi-alf
Copy link

I have the same problem.
QGIS 2.8.3

@pcav
Copy link
Author

pcav commented Apr 11, 2016

still true: any hope to have it fixed?
thanks

@pcav
Copy link
Author

pcav commented Jun 14, 2016

I also get another error, I do not know if related:
2016-06-14T08:59:03 1 Traceback (most recent call last): File "/home/paolo/.qgis2/python/plugins/dimensioning/dimensioning.py", line 83, in calculateDimensioning pt1.setX(self.p1.x()) AttributeError: 'NoneType' object has no attribute 'x'

@drcro
Copy link

drcro commented Sep 5, 2016

Remove the brackets in utils.py line 35 to:
QgsMapLayerRegistry.instance().addMapLayer(vl, True)

Then the plugin works, but there are still issues with the spatiallite db and the distance isn't stored in the database as i understand it.

jef-n referenced this issue in jef-n/dimensioning Sep 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants