Erros in QGIS / MacOSX
Spartacus1 opened this issue · 3 comments
The plug-in fails to open in QGIS 3.12.3/MacOSX with the following error:
File "/Users/xxxx/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/flight_planner/flight_planner.py", line 193, in run
self.dlg.show()
AttributeError: 'FlightPlanner' object has no attribute 'dlg'
@Spartacus1 I downloaded this QGIS version and works fine (but I have Windows). First try reset QGIS or run plugin on different version. If this doesn't help, you can comment by # two lines in flight_planner.py, like this:
I'm not sure if this will help, I'm still quite new in programming ;/
Tried but no luck. After the code comments the plugin is not mounted. There's also something wrong with the paths to the camera parameters folder:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/xxxxxxx/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/flight_planner\\cameras_library\\'
The folder is there but the path is misspelled for UNIX systems I Guess. Using the terminal the right path comes as follow
/Users/xxxxxx/Library/Application\ Support/QGIS/QGIS3/profiles/default/python/plugins/flight_planner/cameras_library
@Spartacus1 the problem with paths is fixed by @chippey and plugin is updated. As for the first problem, I'm not sure why it may not work, this file was created by PluginBuilder and I didn't modify it at all. You can add "self.first_start = True" before if statement, maybe it will help.