python-github-backup icon indicating copy to clipboard operation
python-github-backup copied to clipboard

ModuleNotFoundError: No module named 'urllib2'

Open mmmikko opened this issue 4 years ago • 4 comments

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

mmmikko avatar Aug 28 '21 17:08 mmmikko

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

josegonzalez avatar Oct 18 '21 15:10 josegonzalez

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

matkoniecz avatar Nov 02 '21 13:11 matkoniecz

Both if possible.

josegonzalez avatar Nov 04 '21 07:11 josegonzalez

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?

matkoniecz avatar Nov 22 '21 19:11 matkoniecz