-4

I got an isssue while executing the script python lld.py to download linkedin course for offline use

C:\Users\Srilokan\Downloads\linkedin>python lld.py Traceback (most recent call last): File "lld.py", line 13, in reload(sys) NameError: name 'reload' is not defined

I have taken this code from https://github.com/mclmza/linkedin-learning-downloader

Please rectify the error

Panup Pong
  • 1,871
  • 2
  • 22
  • 44

1 Answers1

0

According to this thread How do I unload (reload) a Python module? this could be a version issue? Can you check if you are loading 'reload' from the right module ?

If its python 3.3 and above your lld.py file should have something like

importlib.reload(module)
Muthu
  • 21
  • 5