You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ModuleNotFoundError: No module named 'urllib2' #183
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.
Python 2 support was dropped years ago, and as of commit 875e318 (PR #442), only Python 3.10+ is supported. The urllib2 module no longer exists in the codebase, urllib is used from the standard library.
Activity
josegonzalez commentedon Oct 18, 2021
Basically all MRs welcome. This might be a python2 vs python3 thing.
matkoniecz commentedon Nov 2, 2021
Is this script supposed to be python3 or python2? Or is it supporting both?
josegonzalez commentedon Nov 4, 2021
Both if possible.
matkoniecz commentedon Nov 22, 2021
https://github.com/josegonzalez/python-github-backup/blob/master/requirements.txt is not listing it
Note that
https://docs.python.org/2.7/library/urllib2.html
Given that python2 is EOLed maybe it would be better to supporting just Python3?
Iamrodos commentedon Nov 29, 2025
@josegonzalez I think this can be closed.
Python 2 support was dropped years ago, and as of commit 875e318 (PR #442), only Python 3.10+ is supported. The urllib2 module no longer exists in the codebase, urllib is used from the standard library.