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

Reload is not defined #20

Open
RuthlessRuler opened this issue Mar 13, 2018 · 2 comments
Open

Reload is not defined #20

RuthlessRuler opened this issue Mar 13, 2018 · 2 comments

Comments

@RuthlessRuler
Copy link

I am getting this error when i input this command:
python downloader.py -e myemail@yahoo.in -p password -d ~C:\Users\kunal\Downloads\Compressed\Packt -b pdf,epub,mobi,cover,code,info

raceback (most recent call last):
File "downloader.py", line 372, in
reload(sys)
NameError: name 'reload' is not defined

the error repeats itself when i input this command:
python downloader.py -e myemail@yahoo.in -p password -d C:\Users\kunal\Downloads\Compressed\Packt -b pdf,epub,mobi,cover,code,in

I had installed Requests and the other dependencies. I am using python, v3.6.4 on Windows 10.

@nutrino
Copy link

nutrino commented Mar 13, 2018

I've got the same error. I changed env to Miniconda3 (Python 3.6) on Ubuntu 16.04 LTS but had the same error. After I switched to Miniconda2 (Python 2.7), it worked.

@atomsmasha
Copy link

if u want to use 'reload' in 3.6 then you would need to import 'importlib'

then u call reload like so:
'importlib.reload(sys)'

but that won't work either because 'sys.setdefaultencoding' is deprecated in 3.6

this is fine though because UTF-8 is the default encoding scheme. so you can just delete lines 372 and 373, and it should start working 👍

@ApCoder123 ApCoder123 mentioned this issue May 11, 2018
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