Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erros in QGIS / MacOSX #2

Open
Spartacus1 opened this issue Jul 5, 2020 · 3 comments
Open

Erros in QGIS / MacOSX #2

Spartacus1 opened this issue Jul 5, 2020 · 3 comments

Comments

@Spartacus1
Copy link

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
Copy link
Owner

JMG30 commented Jul 5, 2020

@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
Copy link
Author

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
Copy link
Owner

JMG30 commented Jul 7, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants