Pages : 1
#1 Le 24/08/2016, à 16:34
- CasseTaTélé_isback
Nouveaux wallpapers météo
Bonjour,
J'ai vu qu'il existe une nouvelle version pour changer de fond d'écran en fonction de la météo:
http://www.omgubuntu.co.uk/2016/05/desk … eatherdesk
J'ai téléchargé et lancé le programme comme indiqué mais j'ai une erreur :
python3 ~/WeatherDesk.py
Traceback (most recent call last):
File "/home/seb/WeatherDesk.py", line 33, in <module>
import psutil
ImportError: No module named 'psutil'
Finalement j'ai réussi à installer psutil pour python3:
sudo apt-get install python3-psutil
J'ai installé le pack de fond d'écrans comme indiqué.
Maintenant j'ai cette erreur : "[Errno 101] Network is unreachable"
~$ python3 ~/WeatherDesk.py
[City checking] No error.
[Main loop]
Traceback (most recent call last):
File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.5/http/client.py", line 1106, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/lib/python3.5/http/client.py", line 1252, in connect
super().connect()
File "/usr/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.5/socket.py", line 711, in create_connection
raise err
File "/usr/lib/python3.5/socket.py", line 702, in create_connection
sock.connect(sa)
OSError: [Errno 101] Network is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/seb/WeatherDesk.py", line 394, in <module>
weather_json = json.loads(urlopen(weather_json_url).read().decode('utf-8'))
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 466, in open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
'_open', req)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 1297, in https_open
context=self._context, check_hostname=self._check_hostname)
File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 101] Network is unreachable>
/bin/sh: 1: /home/seb/WeatherDesk.py: Permission denied
C'est un problème de port bloqué on dirait ...
une idée ???
Dernière modification par CasseTaTélé_isback (Le 24/08/2016, à 16:34)
Ubuntu 20.04
Hors ligne
#2 Le 24/08/2016, à 17:42
- CasseTaTélé_isback
Re : Nouveaux wallpapers météo
En fait en relançant la commande plusieurs fois ça finit par marcher ...
Du coup j'ai rajouté la commande au démarrage mais je sais pas si ça va marcher ...
Ubuntu 20.04
Hors ligne
Pages : 1