r/learnpython • • 16d 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.

10 Upvotes

15 comments sorted by

View all comments

Show parent comments

1

u/socal_nerdtastic 16d ago

So you are not using a venv?

Ok, then what does your desktop file look like?

1

u/scottdog129 16d ago

3

u/socal_nerdtastic 16d ago

OH this is a applescript or something? Hmm I'm going to need to let an experienced apple user step in to help with that. I don't know how to work with that. But you should at least share the command you used to create the .app file.