Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

ImportError: cannot import name 'DependencyWarning' #80

Closed
NickGeek opened this issue May 13, 2016 · 8 comments
Closed

ImportError: cannot import name 'DependencyWarning' #80

NickGeek opened this issue May 13, 2016 · 8 comments

Comments

@NickGeek
Copy link

I'm getting this error when running 'import telepot' on Python 3.5.1 on Arch Linux. It was working not too long ago but now it throws the following:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.5/site-packages/telepot/__init__.py", line 5, in <module>
    import requests
  File "/usr/lib/python3.5/site-packages/requests/__init__.py", line 61, in <module>
    from .packages.urllib3.exceptions import DependencyWarning
ImportError: cannot import name 'DependencyWarning'

I'm running the latest version of Telepot (installed via pip)

@NickGeek
Copy link
Author

Update: This was an issue in requests on Arch. Solved by reinstalling requests.

@alexandre-mbm
Copy link

alexandre-mbm commented Dec 1, 2016

@NickGeek, but how to do this with pip? Or should I do it from AUR with yaourt?


Solution for me:

$ sudo pip uninstall requests
$ sudo pip install requests
$ sudo pip uninstall docopt
$ sudo pip install docopt

@paramono
Copy link

I managed to fix this issue just by upgrading urllib3:

sudo pip install --upgrade urllib3

@alexandre-mbm
Copy link

On Arch I always face problems to reconcile distro's packages with pip's packages.

@NickGeek
Copy link
Author

@alexandre-mbm I did it with the AUR package.

@darkicekeel
Copy link

darkicekeel commented Mar 2, 2017

thanks for your replies, fixed an issue regarding layman (on gentoo) thanks to you

benblamey added a commit to HASTE-project/HarmonicIO that referenced this issue Feb 5, 2018
@phoolchandra
Copy link

phoolchandra commented Mar 17, 2018

It work for me Solution for me:

$ sudo pip uninstall requests
$ sudo pip install requests
$ sudo pip uninstall docopt
$ sudo pip install docopt

@venerari
Copy link

me too. thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants