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

FileNotFoundError: [Errno 2] No such file or directory #5

Open
Mutalpha opened this issue Dec 11, 2019 · 1 comment
Open

FileNotFoundError: [Errno 2] No such file or directory #5

Mutalpha opened this issue Dec 11, 2019 · 1 comment

Comments

@Mutalpha
Copy link

Hi,

When attempting to download a course, I encountered the following error:

Traceback (most recent call last):
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\gfc20\Documents\Python Projects\Coursera\venv\Scripts\dl_coursera.exe_main
.py", line 9, in
File "c:\users\gfc20\documents\python projects\coursera\venv\lib\site-packages\dl_coursera_run.py", line 180, in main
dl_tasks = gather_dl_tasks(args['outdir'], soc)
File "c:\users\gfc20\documents\python projects\coursera\venv\lib\site-packages\dl_coursera_run.py", line 89, in gather_dl_tasks
dl_tasks = DLTaskGatherer(soc=soc, outdir=outdir).gather()
File "c:\users\gfc20\documents\python projects\coursera\venv\lib\site-packages\dl_coursera\DLTaskGatherer.py", line 48, in gather
with open(filename, 'wb') as ofs:
FileNotFoundError: [Errno 2] No such file or directory: 'path\machine-learning-asset-management-alternative-data\02@textual-analysis-for-financial-applicati\02@lab-sessions\04@extra-materials-on-textual-analysis-for-\01@extra-materials-on-textual-analysis-for-.html'

I checked the directory and indeed found it empty. Below is the command used:

dl_coursera --cookies cookies.txt --slug machine-learning-asset-management-alternative-data --how builtin --outdir path

Please help and thank you in advance!

@FLZ101 FLZ101 closed this as completed Mar 4, 2020
@FLZ101 FLZ101 reopened this Apr 21, 2020
@FLZ101
Copy link
Owner

FLZ101 commented Apr 22, 2020

You need to disable the Windows path length limit of 260 characters, and google will help you find the instructions for your Windows version.

@FLZ101 FLZ101 added good first issue Good for newcomers and removed good first issue Good for newcomers labels Apr 22, 2020
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

2 participants