-
Notifications
You must be signed in to change notification settings - Fork 31
Developer Information
Changes to the GUI are not to be done manually, but rather via Qt Designer
.
The UI file in question can be opened via
$ designer ORStoolsDialogUI.ui
Saving the file and git diff
ensures nothing gets changed that shouldn't get changed.
The file then has to be "compiled" to python using
$ pyuic5 --import-from=. ORStoolsDialogUI.ui -o ORStoolsDialogUI.py
where the --import-from
-option is used to correctly import resources_rc - otherwise QGIS 3.16 will complain.
2024-11-21T15:33:05 WARNING Traceback (most recent call last): File "C:\Users/nanditha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\common\client.py", line 167, in request response, content = self.nam.request( ^^^^^^^^^^^^^^^^^ File "C:\Users/nanditha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\common\networkaccessmanager.py", line 278, in request raise self.http_call_result.exception ORStools.common.networkaccessmanager.RequestsException: Network error #400: Error transferring https://api.openrouteservice.org/v2/directions/driving-car/geojson? - server replied: Bad Request
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users/nanditha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\gui\ORStoolsDialog.py", line 416, in run_gui_control
response = clnt.request(
^^^^^^^^^^^^^
File "C:\Users/nanditha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\common\client.py", line 175, in request
self._check_status()
File "C:\Users/nanditha/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ORStools\common\client.py", line 237, in _check_status
raise exceptions.ApiError(str(status_code), message)
ORStools.utils.exceptions.ApiError: 400 ({"error":{"code":2004,"message":"Request parameters exceed the server configuration limits. The approximated route distance must not be greater than 6000000.0 meters."},"info":{"engine":{"build_date":"2024-10-09T09:23:42Z","version":"8.2.0"},"timestamp":1732183431427}})