r0oth3x49 / lynda-dl

A cross-platform python based utility to download courses from lynda.com for personal offline use.
MIT License
295 stars 95 forks source link

error FileNotFoundError: [Errno 2] No such file or directory... #9

Closed Mozenrat closed 6 years ago

Mozenrat commented 6 years ago

Hi. Getting following error while downloading some courses. Example: Silverlight 5 Essential Training, error happens during part 19th (though in the error line it's says 20 for some reason):

[*] : Downloading lecture : (1 of 8)
[*] : Downloading (001 Understanding Silverlight animations )
Traceback (most recent call last):
  File "C:\Users\usver\scripts\lynda-dl\lynda-dl.py", line 433, in <module>
    main()
  File "C:\Users\usver\scripts\lynda-dl\lynda-dl.py", line 405, in main
    lynda.InfoExtractor()
  File "C:\Users\usver\scripts\lynda-dl\lynda-dl.py", line 181, in InfoExtractor
    out = self.Downloader(_url, lecture_name, chapter_path)
  File "C:\Users\usver\scripts\lynda-dl\lynda-dl.py", line 88, in Downloader
    out = course_dl.download(url, title, filepath=path, quiet=True, callback=self.Download)
  File "C:\Users\usver\scripts\lynda-dl\lynda\_downloader.py", line 85, in download
    outfh = open(temp_filepath, fmode)
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\usver\\scripts\\lynda-dl\\_DL\\Silverlight-5-Essential-Training\\20  Energizing the UI with Animations \\001 Understanding Silverlight animations .mp4.temp'

Update: Another example: "AutoCAD 2019 Essential Training", error happens with the first video.

r0oth3x49 commented 6 years ago

@Mozenrat i will check and fix ASAP. can you please provide course URL so that i can test it against that course.

Mozenrat commented 6 years ago

thank you! Here are URLs: https://www.lynda.com/Silverlight-tutorials/Silverlight-5-Essential-Training/87898-2.html https://www.lynda.com/AutoCAD-tutorials/AutoCAD-2019-Essential-Training/656793-2.html

r0oth3x49 commented 6 years ago

@Mozenrat try downloading course to any other drive. -o "E:\lynda"

ghalebi1886 commented 4 years ago

@r0oth3x49 I have the same issue, what should I do? I am on mac os