Closed jingouwangzi closed 5 years ago
执行Python代码时发生错误:
TypeError: function takes exactly 5 arguments (1 given) Traceback (most recent call last): File "d:/Program Files/QGIS 2.18/apps/qgis/./python/plugins\processing\gui\ConfigDialog.py", line 278, in accept self.tr('Wrong value for parameter "%s":\n\n%s' % (setting.description, unicode(e)))) TypeError: function takes exactly 5 arguments (1 given)
Python版本: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] QGIS版本: 2.18.13 Las Palmas, 8cba0bb9eb
Python路径: d:/Program Files/QGIS 2.18/apps/qgis/./python/plugins\processing C:/Users/user/.qgis2/python/plugins\GeoHey-Toolbox d:/Program Files/QGIS 2.18/apps/qgis/./python C:/Users/user/.qgis2/python C:/Users/user/.qgis2/python/plugins d:/Program Files/QGIS 2.18/apps/qgis/./python/plugins d:\Program Files\QGIS 2.18\bin\python27.zip d:\Program Files\QGIS 2.18\apps\Python27\DLLs d:\Program Files\QGIS 2.18\apps\Python27\lib d:\Program Files\QGIS 2.18\apps\Python27\lib\plat-win d:\Program Files\QGIS 2.18\apps\Python27\lib\lib-tk d:\Program Files\QGIS 2.18\bin d:\Program Files\QGIS 2.18\apps\Python27 d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\win32 d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\win32\lib d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\Pythonwin d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\wx-2.8-msw-unicode d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg C:/Users/user/.qgis2//python
好像是不支持64位qgis
执行Python代码时发生错误:
TypeError: function takes exactly 5 arguments (1 given) Traceback (most recent call last): File "d:/Program Files/QGIS 2.18/apps/qgis/./python/plugins\processing\gui\ConfigDialog.py", line 278, in accept self.tr('Wrong value for parameter "%s":\n\n%s' % (setting.description, unicode(e)))) TypeError: function takes exactly 5 arguments (1 given)
Python版本: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] QGIS版本: 2.18.13 Las Palmas, 8cba0bb9eb
Python路径: d:/Program Files/QGIS 2.18/apps/qgis/./python/plugins\processing C:/Users/user/.qgis2/python/plugins\GeoHey-Toolbox d:/Program Files/QGIS 2.18/apps/qgis/./python C:/Users/user/.qgis2/python C:/Users/user/.qgis2/python/plugins d:/Program Files/QGIS 2.18/apps/qgis/./python/plugins d:\Program Files\QGIS 2.18\bin\python27.zip d:\Program Files\QGIS 2.18\apps\Python27\DLLs d:\Program Files\QGIS 2.18\apps\Python27\lib d:\Program Files\QGIS 2.18\apps\Python27\lib\plat-win d:\Program Files\QGIS 2.18\apps\Python27\lib\lib-tk d:\Program Files\QGIS 2.18\bin d:\Program Files\QGIS 2.18\apps\Python27 d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\jinja2-2.7.2-py2.7.egg d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\markupsafe-0.23-py2.7-win-amd64.egg d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\win32 d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\win32\lib d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\Pythonwin d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\Shapely-1.2.18-py2.7-win-amd64.egg d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\wx-2.8-msw-unicode d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\xlrd-0.9.2-py2.7.egg d:\Program Files\QGIS 2.18\apps\Python27\lib\site-packages\xlwt-0.7.5-py2.7.egg C:/Users/user/.qgis2//python