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

Error: while import urllib #35

Open
Zevobla opened this issue Jul 6, 2020 · 1 comment
Open

Error: while import urllib #35

Zevobla opened this issue Jul 6, 2020 · 1 comment

Comments

@Zevobla
Copy link

Zevobla commented Jul 6, 2020

Traceback (most recent call last):
File "net-creds.py", line 15, in
from urllib import unquote
ImportError: cannot import name 'unquote' from 'urllib' (/usr/lib64/python3.8/urllib/init.py)

python: 3.8.3
pip: pip 19.3.1 from /usr/lib/python3.8/site-packages/pip (python 3.8)

Please, help me.

@moseswynn
Copy link

moseswynn commented Oct 2, 2020

In Python 3 urllib has been broken down into 4 modules. To correct this it should be changed to from urllib.parse import unquote. Judging by the shebang at the top of the file, net-creds is meant to be used with Python 2 only.

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