kootenpv / whereami

Uses WiFi signals :signal_strength: and machine learning to predict where you are
GNU Affero General Public License v3.0
5.1k stars 247 forks source link

Unable to run whereami from a launch agent #56

Closed gseiki closed 3 years ago

gseiki commented 3 years ago

I use a Launch Agent to run a bash script in a standard user account on macOS High Sierra. The bash script performs a series of tasks, which also includes collecting whereami results. If the bash script is initiated by the Launch Agent all tasks in the bash script complete as expected except the collection of whereami results. If I manually run the bash script all tasks complete as expected. Anyone have any ideas why the Launch Agent cannot run whereami? The Launch Agent is in /Users/name/Library/LaunchAgents/. Whereami is in /usr/local/bin. The permissions of /usr/local/bin/whereami is 755.

gseiki commented 3 years ago

Got it figured out. I think the Launch Agent was using the wrong version of python. I had to include the path to Python 3 in my script. My automated task is now working as expected.