Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Comparison between bytes and string
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
elover
n00b
n00b


Joined: 20 Nov 2019
Posts: 60
Location: Spain

PostPosted: Sun Nov 22, 2020 10:00 am    Post subject: Comparison between bytes and string Reply with quote

Hello, when I synchronize portage I receive this message related to urllib3


Refreshing keys via WKD .../usr/lib/python3.7/site-packages/urllib3/connection.py:218: BytesWarning: Comparison between bytes and string
if SKIP_HEADER not in values:
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 25116
Location: here

PostPosted: Sun Nov 22, 2020 10:29 am    Post subject: Reply with quote

Can help this?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
elover
n00b
n00b


Joined: 20 Nov 2019
Posts: 60
Location: Spain

PostPosted: Sun Nov 22, 2020 11:22 am    Post subject: Reply with quote

Yes, that's the mistake

Report in the bug what they asked for

this command:
python -bb /usr/bin/emerge --sync
Code:

>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
 * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
 * Refreshing keys via WKD ...Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/portage/util/_async/AsyncFunction.py", line 39, in _run
    result = self.target(*(self.args or []), **(self.kwargs or {}))
  File "/usr/lib/python3.7/site-packages/portage/sync/controller.py", line 165, in sync
    taskmaster.run_tasks(tasks, func, status, options=task_opts)
  File "/usr/lib/python3.7/site-packages/portage/sync/controller.py", line 65, in run_tasks
    result = getattr(inst, func)(**kwargs)
  File "/usr/lib/python3.7/site-packages/portage/sync/syncbase.py", line 338, in sync
    return self.update()
  File "/usr/lib/python3.7/site-packages/portage/sync/modules/rsync/rsync.py", line 147, in update
    self._refresh_keys(openpgp_env)
  File "/usr/lib/python3.7/site-packages/portage/sync/syncbase.py", line 268, in _refresh_keys
    if openpgp_env.refresh_keys_wkd():
  File "/usr/lib/python3.7/site-packages/gemato/openpgp.py", line 420, in refresh_keys_wkd
    resp = requests.get(url, proxies=proxies)
  File "/usr/lib/python3.7/site-packages/requests/api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.7/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/usr/lib/python3.7/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/lib/python3.7/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/lib/python3.7/http/client.py", line 1277, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1288, in _send_request
    self.putrequest(method, url, **skips)
  File "/usr/lib/python3.7/site-packages/urllib3/connection.py", line 214, in putrequest
    return _HTTPConnection.putrequest(self, method, url, *args, **kwargs)
  File "/usr/lib/python3.7/http/client.py", line 1176, in putrequest
    self.putheader('Host', host_enc)
  File "/usr/lib/python3.7/site-packages/urllib3/connection.py", line 218, in putheader
    if SKIP_HEADER not in values:
BytesWarning: Comparison between bytes and string

Action: sync for repo: gentoo, returned code = 1

Thank you for your help
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum