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

Location Services Authorization #18

Closed
LFavano opened this issue Mar 27, 2024 · 6 comments
Closed

Location Services Authorization #18

LFavano opened this issue Mar 27, 2024 · 6 comments

Comments

@LFavano
Copy link

LFavano commented Mar 27, 2024

I'm getting the error Unable to obtain authorisation, exiting... shortly after running the code.

I know that Python must be granted Location Services access in order for it to work, but I can't manage to do that on MacOS 14.1.2, Python doesn't appear in my Location Services app list.

This is not strictly related to the code but do you perhaps have a solution to it?
Thanks

@raminsharifi
Copy link

same problem here

@LFavano LFavano changed the title Locaiton Services Authorization Location Services Authorization Mar 27, 2024
@phenotypic
Copy link
Owner

Hi there, please could you try updating your macOS version? Also check you have installed the necessary prerequisites and requirements. I am running on 14.4.1 without issue.

The first time you run the script, Python will request Location Services authorisation which you must accept for the script to function properly.

You can see if the permission has been granted by going to System Settings > Privacy & Security > Location Services and checking next to Python.

@phenotypic
Copy link
Owner

In the latest version of the script, I manually load the frameworks using objc rather than importing CoreWLAN and CoreLocation directly.

This seems to have resolved the issue on the other MacBook I have used for testing. Please confirm this has resolved the issue for you too.

@phenotypic
Copy link
Owner

For CoreWLAN-related bugs, please refer to issue #19. This includes network SSID/BSSIDs being displayed as None.

If you receive the Unable to obtain authorisation, exiting... error, ensure Python has been granted Location Services permissions by going to System Settings > Privacy & Security > Location Services and checking next to Python.

@northwestwitch
Copy link

Unfortunately I have this problem as well. MacOS version 14.1.2.

@0nexx
Copy link

0nexx commented May 5, 2024

same problem. MacOS v.14.4.1

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

5 participants