Issue with packages (I think) #8

Closed
opened 2022-05-23 18:55:15 -06:00 by nickyg543 · 5 comments
nickyg543 commented 2022-05-23 18:55:15 -06:00 (Migrated from github.com)

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.

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 2022-05-23 19:23:57 -06:00 (Migrated from github.com)

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

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 2022-05-23 19:53:38 -06:00 (Migrated from github.com)

Did you set your chrome path in singlefile.py?

Did you set your chrome path in singlefile.py?
mjforan commented 2022-05-23 19:57:37 -06:00 (Migrated from github.com)

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

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 2022-05-23 20:26:09 -06:00 (Migrated from github.com)

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.

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 2023-05-10 15:42:25 -06:00 (Migrated from github.com)

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

Hi @nickyg543, I'm going to close this but let me know if you still have this issue.
Sign in to join this conversation.
No description provided.