GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — urllib3 problems! · Issue #579 · python-telegram-bot/python-telegram-bot

urllib3 problems! #579

New issue
Copy link
New issue
Copy link
Closed
🐛 bug
Closed
urllib3 problems!#579
🐛 bug
Copy link

Description

@persian-telegram
persian-telegram
opened on Apr 25, 2017
Issue body actions

Steps to reproduce

  1. Just trying to run a simple echobot

Expected behaviour

Tell us what should happen

  • telegram bot should work as normal
  • I tried everything and it worked on PythonAnywhere but i can't run it on my VPS.
  • I have also tried installing virtualenv but didn't work

$ virtualenv telegram-bot
$ source telegram-bot/bin/activate
$ pip install python-telegram-bot

Actual behaviour

Tell us what happens instead
error comes up

Configuration

Operating System:
ubuntu 14.04

Version of Python, python-telegram-bot & dependencies:
python 2.7, latest python-telegram-bot
$ python -m telegram

Logs

Insert logs here (if necessary)
root@persian-telegram-bot:~# screen -S myTelegramBot

  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/poolmanager.py", line 303, in urlopen
    conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/poolmanager.py", line 219, in connection_from_host
    return self.connection_from_context(request_context)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/poolmanager.py", line 232, in connection_from_context
    return self.connection_from_pool_key(pool_key, request_context=request_context)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/poolmanager.py", line 245, in connection_from_pool_key
    pool = self.pools.get(pool_key)
  File "/root/telegram-bot/lib/python2.7/_abcoll.py", line 363, in get
    return self[key]
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/_collections.py", line 53, in __getitem__
    item = self._container.pop(key)
  File "/usr/lib/python2.7/collections.py", line 138, in pop
    if key in self:
TypeError: unhashable type: 'list'
Exception in thread updater:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/telegram/ext/updater.py", line 115, in _thread_wrapper
    target(*args, **kwargs)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/telegram/ext/updater.py", line 228, in _start_polling
    self._bootstrap(bootstrap_retries, clean=clean, webhook_url='')
  File "/root/telegram-bot/local/lib/python2.7/site-packages/telegram/ext/updater.py", line 335, in _bootstrap
    self.bot.setWebhook(webhook_url=webhook_url, certificate=cert)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/telegram/bot.py", line 125, in decorator
    result = func(self, *args, **kwargs)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/telegram/bot.py", line 1280, in setWebhook
    result = self._request.post(url, data, timeout=timeout)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/telegram/utils/request.py", line 207, in post
    **urlopen_kwargs)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/telegram/utils/request.py", line 132, in _request_wrapper
    resp = self._con_pool.request(*args, **kwargs)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/request.py", line 70, in request
    **urlopen_kw)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/request.py", line 148, in request_encode_body
    return self.urlopen(method, url, **extra_kw)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/poolmanager.py", line 303, in urlopen
    conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/poolmanager.py", line 219, in connection_from_host
    return self.connection_from_context(request_context)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/poolmanager.py", line 232, in connection_from_context
    return self.connection_from_pool_key(pool_key, request_context=request_context)
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/poolmanager.py", line 245, in connection_from_pool_key
    pool = self.pools.get(pool_key)
  File "/root/telegram-bot/lib/python2.7/_abcoll.py", line 363, in get
    return self[key]
  File "/root/telegram-bot/local/lib/python2.7/site-packages/urllib3/_collections.py", line 53, in __getitem__
    item = self._container.pop(key)
  File "/usr/lib/python2.7/collections.py", line 138, in pop
    if key in self:
TypeError: unhashable type: 'list'

Activity

  1. jh0ker
    added a commit that references this issue on Apr 25, 2017

    🚑 enforce urllib3==1.20

    a566023
  2. persian-telegram commented on Apr 25, 2017

    @persian-telegram
    persian-telegram
    on Apr 25, 2017
    Author
    More actions

    Thank you for the commit. Now when i try to pip install lxml I get this error

    Command /root/telegram-bot/bin/python -c "import setuptools, tokenize;file='/root/telegram-bot/build/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-zywS9a-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/telegram-bot/include/site/python2.7 failed with error code 1 in /root/telegram-bot/build/lxml
    Storing debug log for failure in /root/.pip/pip.log

  3. jh0ker commented on Apr 25, 2017

    @jh0ker
    jh0ker
    on Apr 25, 2017
    Member
    More actions

    Thank you for your report! I released a hotfix version to pypi. Please use pip install -U python-telegram-bot to upgrade.

    Reacted by Badiboy and Junior Claudio Zavaleta
  4. jh0ker commented on Apr 25, 2017

    @jh0ker
    jh0ker
    on Apr 25, 2017
    Member
    More actions

    I don't know about lxml, perhaps you don't have to required headers installed. This is not the right place for that question though.

  5. jh0ker
    closed this as completedon Apr 25, 2017
  6. jh0ker
    added
    bug
    on Apr 25, 2017
  7. jh0ker
    added 2 commits that reference this issue on Apr 25, 2017

    🚑 Bump version to v5.3.1

    da4ed9b

    enforce urllib3==1.20 (#580)

    4541476
  8. github-actions
    locked and limited conversation to collaborators on Aug 25, 2020
  9. Bibo-Joshi
    removed
    bug 🐛
    on Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    🐛 bug

    Fields

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.