davekats / canvas-student-data-export

Python script to download all of your student data from Canvas LMS
123 stars 33 forks source link

Issue with packages (I think) #8

Closed nickyg543 closed 1 year ago

nickyg543 commented 2 years ago

Error after running export.py:

Getting list of all courses

Downloading course list page node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module 'C:\Users\Nick\ALLCOURSES\node_modules\single-file\cli\single-file' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

Having a hard time interpreting this. I have all the packages installed.

nickyg543 commented 2 years ago

Update: got packages figured out with new error

Failed to launch the browser process! spawn chrome ENOENT

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

I'm not sure where to put this chunk of javascript code

mjforan commented 2 years ago

Did you set your chrome path in singlefile.py?

mjforan commented 2 years ago

BTW there is a typo in singlefile.py which may give you trouble; I am putting together a PR right now to fix that

nickyg543 commented 2 years ago

I did. It reads:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

For now I will leave the cookies field entry and skip all html-download business.

davekats commented 1 year ago

Hi @nickyg543, I'm going to close this but let me know if you still have this issue.