Jun-17-2018, 02:43 AM
Hi all!
So I have a small Python program I'm trying to get working on my Mac downloaded from here: https://gitlab.com/bharadwaj-raju/WeatherDesk . It's a nifty script that changes the desktop wallpaper depending on the local time and weather conditions. I'd like to configure it and have it run automatically each time I start my machine.
Unfortunately I can't get it to run without throwing up an error. I've downloaded the new version of Python (3.6.5) and I'm trying to run the script (moved to a folder in my Applications directory) with the following code in Terminal:
The output is:
[inline]Traceback (most recent call last):
File "/Applications/WeatherDesk/WeatherDesk.py", line 30, in <module>
import urllib.error
ImportError: No module named error[/inline]
Could this be a problem with something in the script, or my Python configuration, or some quirk specific to a Mac? I know nothing about Python unfortunately, but I'd be appreciative of anyone who could hold my hand through getting this script working as I spent the previous night downloading and editing wallpapers for it!
So I have a small Python program I'm trying to get working on my Mac downloaded from here: https://gitlab.com/bharadwaj-raju/WeatherDesk . It's a nifty script that changes the desktop wallpaper depending on the local time and weather conditions. I'd like to configure it and have it run automatically each time I start my machine.
Unfortunately I can't get it to run without throwing up an error. I've downloaded the new version of Python (3.6.5) and I'm trying to run the script (moved to a folder in my Applications directory) with the following code in Terminal:
cd '' && '/usr/bin/pythonw' '/Applications/WeatherDesk/WeatherDesk.py' && echo Exit status: $? && exit 1
The output is:
[inline]Traceback (most recent call last):
File "/Applications/WeatherDesk/WeatherDesk.py", line 30, in <module>
import urllib.error
ImportError: No module named error[/inline]
Could this be a problem with something in the script, or my Python configuration, or some quirk specific to a Mac? I know nothing about Python unfortunately, but I'd be appreciative of anyone who could hold my hand through getting this script working as I spent the previous night downloading and editing wallpapers for it!