MyCoursesDownloader
MyCoursesDownloader copied to clipboard
FileNotFoundError: [Errno 2] No such file or directory
ldavies@ldavies-VirtualBox:~/Documents/code/MyCoursesDownloader$ sudo python3 mycoursesdownloader.py -u ltd9938
RIT Password:
Enter download directory: /home/ldavies/Desktop/MYC
2019-01-02 08:21:24.966 | INFO | __main__:<module>:211 - Successfully logged into MyCourses
2019-01-02 08:21:25.899 | INFO | __main__:<module>:308 - I've found 17 courses
Processing BIOL10301.2171: 0%| | 0/17 [00:00<?, ?it/s]2019-01-02 08:21:26.169 | INFO | __main__:<module>:445 - Found 0 files to download
Creating Filesystem Paths: 0%| | 0/17 [00:00<?, ?it/s]
Traceback (most recent call last):
File "mycoursesdownloader.py", line 464, in <module>
with open("{}/metadata.txt".format(fs_path), 'w') as fh:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ldavies/Desktop/MYC/BIOL.103.01_06_12 - General Biology I Lab/metadata.txt'
I received this error after being asked for MyCourses password. This is on my Ubuntu 16.04 machine, also duplicated on my Windows 10 machine.
Missed adding the function to make the directory. It should have been made before, but if there was nothing to download then it might not have been created. Just pushed a new version. Let me know if this fixes it.
It fixed the exception, but doesn't download anything under content. Does this only save current classes?
Does the course you're trying to download have contents? Some courses don't have any contents.