JMG30 / flight_planner

QGIS plugin for planning photogrammetric flights. Output: projection center layer (with attribute table containing parameters of Exterior Orientation) and size of images at average height of the terrain. With flight assessment tools you can get: real coverage of photos, logical sum of overlapping photos, GSD map.
GNU General Public License v2.0
35 stars 12 forks source link

Erros in QGIS / MacOSX #2

Open Spartacus1 opened 3 years ago

Spartacus1 commented 3 years ago

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'
JMG30 commented 3 years ago

@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: comment

I'm not sure if this will help, I'm still quite new in programming ;/

Spartacus1 commented 3 years ago

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

JMG30 commented 3 years ago

@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.