csyezheng / coursera-helper

A command line tool for downloading courses from coursera.
GNU Lesser General Public License v3.0
45 stars 11 forks source link

Issue with some course While downloading #2

Open ShifuKing opened 9 months ago

ShifuKing commented 9 months ago

hello @csyezheng, first of all thank you for your Great work on Coursera Helper. It truly changes a lot of think for me.

Please while i was dowloading this course im facing this following error. Please can you help me?

This is the error: _Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in run_code File "C:\Users\zo\AppData\Local\Programs\Python\Python311\Scripts\coursera-helper.exe_main.py", line 7, in File "C:\Users\zo\AppData\Local\Programs\Python\Python311\Lib\site-packages\coursera_helper\coursera_dl.py", line 256, in main error_occurred, completed = download_class( ^^^^^^^^^^^^^^^ File "C:\Users\zo\AppData\Local\Programs\Python\Python311\Lib\site-packages\coursera_helper\coursera_dl.py", line 216, in download_class return download_on_demand_class(session, args, class_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\zo\AppData\Local\Programs\Python\Python311\Lib\site-packages\coursera_helper\coursera_dl.py", line 172, in download_on_demand_class completed = course_downloader.download_modules(modules) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\zo\AppData\Local\Programs\Python\Python311\Lib\site-packages\coursera_helper\workflow.py", line 163, in download_modules last_update = self._handle_resource( ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\zo\AppData\Local\Programs\Python\Python311\Lib\site-packages\coursera_helper\workflow.py", line 226, in handle_resource if url.startswith(IN_MEMORY_MARKER): ^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'startswith'

csyezheng commented 9 months ago

@ShifuKing

This bug has been fixed in version 0.12.3. Please upgrade coursera-helper by running:

python -m pip install --upgrade --index-url https://pypi.org/simple/ coursera-helper

Make sure you upgrade to the correct version by running:

coursera-helper --version