dglent / meteo-qt

System tray application for weather status information
GNU General Public License v3.0
82 stars 21 forks source link

Won't run on Manjaro 18.0.4 KDE (Switched to lxqt) #90

Closed neurodiverseEsoteric closed 5 years ago

neurodiverseEsoteric commented 5 years ago
2019/09/05 09:52:36 CRASH:
--------------------------------------------------------------------------------
<class 'http.client.InvalidURL'>         
URL can't contain control characters. '/data/2.5/forecast/daily?id=5378538&mode=xml&units=imperial&APPID=\n936b1aed9a541e3446cafb8be2c70e62&cnt=7' (found at least '\n')
--------------------------------------------------------------------------------
  File "/usr/lib/python3.7/site-packages/meteo_qt/meteo_qt.py", line 1952, in run
    + self.suffix + '&cnt=7', timeout=5
  File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 1345, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.7/urllib/request.py", line 1317, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib/python3.7/http/client.py", line 1244, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1255, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.7/http/client.py", line 1117, in putrequest
    raise InvalidURL(f"URL can't contain control characters. {url!r} "
neurodiverseEsoteric commented 5 years ago

...Never mind, I found a typo in the api key line (which I had to copy from /.cache/meteo, as the AUR package of meteo-qt doesn't provide one, but aur/meteo-git does (but it crashes when attempting to interact with lxqt's statusnotifier plugin...))

dglent commented 5 years ago

For the key, you need to create your own as meteo-qt doesn't provide a key any more. Initially, i provided a common key but it has been hijacked