bharadwaj-raju / WeatherDesk

MOVED: https://gitlab.com/bharadwaj-raju/WeatherDesk
https://gitlab.com/bharadwaj-raju/WeatherDesk
GNU General Public License v3.0
217 stars 31 forks source link

cant run script #24

Closed dsdmsa closed 8 years ago

dsdmsa commented 8 years ago

sudo python3 WeatherDesk.py --city chisinau [City checking] No error. mostly clear Chisinau Chisinau /home/myname/.weatherdesk_walls/normal.jpg Traceback (most recent call last): File "WeatherDesk.py", line 379, in os.path.join(walls_dir, get_file_name(weather, time=use_time))) File "/home/myname/Desktop/WeatherDesk-master/Desktop.py", line 104, in set_wallpaper desktop_env = get_desktop_environment() File "/home/myname/Desktop/WeatherDesk-master/Desktop.py", line 79, in get_desktop_environment elif is_running('xfce-mcs-manage'): return 'xfce4' File "/home/myname/Desktop/WeatherDesk-master/Desktop.py", line 96, in is_running if re.search(process, x): File "/usr/lib/python3.5/re.py", line 173, in search return _compile(pattern, flags).search(string) TypeError: cannot use a string pattern on a bytes-like object

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "WeatherDesk.py", line 399, in print(trace_main_loop) NameError: name 'trace_main_loop' is not defined

bharadwaj-raju commented 8 years ago

Why sudo?

bharadwaj-raju commented 8 years ago

Fixed with commit 3d45866.

Again, there is no need for sudo, please do not run script with it.