unhandled exception

Create issue
Issue #8 invalid
Former user created an issue

After I updated python to 3.6.0, I am unable to do any search in pkgbrowser. There is just an Error window saying that an unhandled exception occured, with the following details:

Traceback (most recent call last):
  File "/usr/lib/pkgbrowser/pkgbrowser/backend.py", line 543, in _call_async
    return _call(args)
  File "/usr/lib/pkgbrowser/pkgbrowser/backend.py", line 539, in _call
    return getattr(backend, args[0])(*args[1:])
  File "/usr/lib/pkgbrowser/pkgbrowser/backend.py", line 893, in _find_aur
    for package in self._fetch_packages(targets):
  File "/usr/lib/pkgbrowser/pkgbrowser/backend.py", line 752, in _fetch_packages
    for url, data in Downloader.download(urls).items():
  File "/usr/lib/pkgbrowser/pkgbrowser/backend.py", line 249, in download
    raise exception
pkgbrowser.backend.Traceback: Traceback (most recent call last):
  File "/usr/lib/pkgbrowser/pkgbrowser/backend.py", line 264, in run
    response = urllib.request.urlopen(url, timeout=20)
  File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
  File "/usr/lib/python3.5/urllib/request.py", line 466, in open
  File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
  File "/usr/lib/python3.5/urllib/request.py", line 1297, in https_open
  File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
  File "/usr/lib/python3.5/http/client.py", line 1106, in request
  File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
  File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
  File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
  File "/usr/lib/python3.5/http/client.py", line 877, in send
  File "/usr/lib/python3.5/http/client.py", line 1252, in connect
  File "/usr/lib/python3.5/http/client.py", line 849, in connect
  File "/usr/lib/python3.5/socket.py", line 693, in create_connection
  File "/usr/lib/python3.5/socket.py", line 732, in getaddrinfo
LookupError: unknown encoding: idna

--Niku. (I'd log in if required to!)

Comments (3)

  1. V. Niku

    I reinstalled pkgbrowser (0.20.1-1), and everything is working fine now.

    Before that, after a reboot, on trying to start pkgbrowser, I got the following error message:

    Traceback (most recent call last):
      File "/usr/lib/pkgbrowser/main.py", line 9, in <module>
      File "/usr/lib/pkgbrowser/pkgbrowser/app.py", line 112, in run
      File "/usr/lib/pkgbrowser/pkgbrowser/app.py", line 56, in window
        from pkgbrowser.window import Window
      File "/usr/lib/pkgbrowser/pkgbrowser/window.py", line 18, in <module>
        from pkgbrowser.backend import (
      File "/usr/lib/pkgbrowser/pkgbrowser/backend.py", line 13, in <module>
        from pkgbrowser import alpm, conf, utils
    ImportError: cannot import name 'alpm'
  2. Log in to comment