Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An issue when importing the library #37

Closed
SharpBit opened this issue Jul 11, 2018 · 2 comments
Closed

An issue when importing the library #37

SharpBit opened this issue Jul 11, 2018 · 2 comments

Comments

@SharpBit
Copy link

  File "C:\Users\Jason\Documents\Programming\e-card-websocket\socket.py", line 4, in <module>
    from pyimgur import Imgur
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python36\lib\site-packages\pyimgur\__init__.py", line 45, in <module>
    import requests  # NOQA
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python36\lib\site-packages\requests\__init__.py", line 43, in <module>
    import urllib3
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\__init__.py", line 8, in <module>
    from .connectionpool import (
  File "C:\Users\Jason\AppData\Local\Programs\Python\Python36\lib\site-packages\urllib3\connectionpool.py", line 7, in <module>
    from socket import error as SocketError, timeout as SocketTimeout
ImportError: cannot import name 'error'

I get this. I don't know how to fix it.

@SharpBit
Copy link
Author

@Damgaard Please answer ASAP. Thanks!

@Damgaard
Copy link
Owner

Hey, looks like you've got a problem with your urllib install. It's nothing specific with PyImgur. I google your error and got this. Is it helpful? https://stackoverflow.com/questions/49821965/python-3-6-cannot-import-connectionpool-from-urllib3

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

No branches or pull requests

2 participants