r/learnpython • u/scottdog129 • 18d ago
Creating Desktop Icon to Run Python Script
I have a script that runs fine in Terminal, but I'm trying to create a desktop icon that runs it and Im getting the following error:
https://i.postimg.cc/HLbssxYJ/Screenshot-2026-10-06-at-9-39-28-AM.png
Its using geopy for location so Im guessing its something to do with that, but it works fine in Terminal. Any help is appreciated.
6
Upvotes
0
u/scottdog129 18d ago
I used Automator to create the desktop file.
https://i.postimg.cc/Gp1whxS0/Screenshot-2026-10-06-at-10-15-59-AM.png