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

Cad tools does not work with latest development QGIS - cannot create layer #8

Open
mikhailtchernychev opened this issue Oct 10, 2014 · 0 comments

Comments

@mikhailtchernychev
Copy link

Hi,

I just recently came across the problem with latest QGIS. When I create parallel line
Cad tools is asking about CS for new layer (twice), than the following message appears
in Python console

fixed
0.1
Traceback (most recent call last):
File "C:/Users/misha/.qgis2/python/plugins\cadtools\tools\parallellinetool.py", line 142, in createParallelLine
cadutils.addGeometryToCadLayer(g)
File "C:/Users/misha/.qgis2/python/plugins\cadtools\tools\cadutils.py", line 38, in addGeometryToCadLayer
QgsMapLayerRegistry().instance().addMapLayer(vl, True)
TypeError: qgis._core.QgsMapLayerRegistry cannot be instantiated or sub-classed
fixed
0.1
Traceback (most recent call last):
File "C:/Users/misha/.qgis2/python/plugins\cadtools\tools\parallellinetool.py", line 142, in createParallelLine
cadutils.addGeometryToCadLayer(g)
File "C:/Users/misha/.qgis2/python/plugins\cadtools\tools\cadutils.py", line 38, in addGeometryToCadLayer
QgsMapLayerRegistry().instance().addMapLayer(vl, True)
TypeError: qgis._core.QgsMapLayerRegistry cannot be instantiated or sub-classed

CadLayer is not created.

Plugin works fine with released 2.4.0 version.

Thank you
Mikhail

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

1 participant