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

ModuleNotFoundError: No module named 'urllib2' #183

Open
mmmikko opened this issue Aug 28, 2021 · 4 comments
Open

ModuleNotFoundError: No module named 'urllib2' #183

mmmikko opened this issue Aug 28, 2021 · 4 comments

Comments

@mmmikko
Copy link

mmmikko commented Aug 28, 2021

Is there some easy way that I could try to fix this issue and make a PR?

@josegonzalez
Copy link
Owner

Basically all MRs welcome. This might be a python2 vs python3 thing.

@matkoniecz
Copy link

Is this script supposed to be python3 or python2? Or is it supporting both?

@josegonzalez
Copy link
Owner

Both if possible.

@matkoniecz
Copy link

https://github.com/josegonzalez/python-github-backup/blob/master/requirements.txt is not listing it

Note that

The urllib2 module has been split across several modules in Python 3 named urllib.request and urllib.error. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.

https://docs.python.org/2.7/library/urllib2.html

Given that python2 is EOLed maybe it would be better to supporting just Python3?

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

3 participants