Typeerror: Qgscoordinatetransform - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Typeerror: Qgscoordinatetransform (/thread-9602.html) |
Typeerror: Qgscoordinatetransform - sekkdk - Apr-18-2018 Hi, Im having trouble with a program called Qgis and a plugin for that thats called Posttelemac. Im getting a error code. TypeError: QgsCoordinateTransform(): arguments did not match any overloaded call: overload 1: too many arguments overload 2: not enough arguments overload 3: not enough arguments overload 4: not enough arguments overload 5: argument 1 has unexpected type 'QgsCoordinateReferenceSystem' Traceback (most recent call last): File "C:/Users/sekkdk_da/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\PostTelemac\PostTelemac.py", line 261, in run self.slf[len(self.slf)-1].setRealCrs(self.iface.mapCanvas().mapSettings().destinationCrs()) #to prevent weird bug with weird crs File "C:/Users/sekkdk_da/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\PostTelemac\meshlayer\post_telemac_pluginlayer.py", line 409, in setRealCrs self.xform = qgis.core.QgsCoordinateTransform(self.realCRS, qgis.utils.iface.mapCanvas().mapSettings().destinationCrs()) TypeError: QgsCoordinateTransform(): arguments did not match any overloaded call: overload 1: too many arguments overload 2: not enough arguments overload 3: not enough arguments overload 4: not enough arguments overload 5: argument 1 has unexpected type 'QgsCoordinateReferenceSystem' Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] QGIS version: 3.0.1-Girona Girona, a86bec25eb Python sökväg: C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python C:/Users/sekkdk_da/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/sekkdk_da/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/PROGRA~1/QGIS2~1.18/apps/qgis/./python/plugins C:\PROGRA~1\QGIS2~1.18\bin\python36.zip C:\PROGRA~1\QGIS2~1.18\apps\Python36\DLLs C:\PROGRA~1\QGIS2~1.18\apps\Python36\lib C:\PROGRA~1\QGIS2~1.18\bin C:\PROGRA~1\QGIS2~1.18\apps\Python36 C:\PROGRA~1\QGIS2~1.18\apps\Python36\lib\site-packages C:/Users/sekkdk_da/AppData/Roaming/QGIS/QGIS3\profiles\default/python I haved followed this installation instructions. https://github.com/Artelia/PostTelemac/wiki#T2 Does anyone have any idea? RE: Typeerror: Qgscoordinatetransform - sparkz_alot - Apr-18-2018 We need to see the relevant code you are running. As it is, the only thing certain is you are not passing the correct amount / type arguments. Did you check the docs to make sure you are supplying this information? |