Coder Social home page Coder Social logo

Was not able to save the URL using singlefile. The reported error was No such file or directory about canvas-student-data-export HOT 5 CLOSED

davekats avatar davekats commented on June 23, 2024
Was not able to save the URL using singlefile. The reported error was No such file or directory

from canvas-student-data-export.

Comments (5)

davekats avatar davekats commented on June 23, 2024

@dj346 Are you able to help debug this issue? I no longer have access to Canvas so it's difficult for me to debug issues like this

from canvas-student-data-export.

davekats avatar davekats commented on June 23, 2024

@Bristopher I no longer have access to Canvas so it will be challenging for me to debug this issue. If you'd like you can schedule a call with me and we can debug the issue from your computer: https://usemotion.com/meet/davidk/hxmsj33

from canvas-student-data-export.

dj346 avatar dj346 commented on June 23, 2024

@Bristopher Can you go to the bottom of singlefile.py, uncomment out the section at the bottom, and run the singlefile.py? Post any errors you get. Sorry for the late response.

from canvas-student-data-export.

Bristopher avatar Bristopher commented on June 23, 2024

@davekats @dj346 We're even now haha, been so busy with this last semester. That initial issue I posted above must've been a quirk because out of all the times I've used this that isn't the main issue, the main issue is this:
Downloading course list page Failed to launch the browser process! spawn chrome ENOENT

Somehow it can never correctly find chrome (after searching it seems to be a very common problem, I think it's just a puppeteer issue), I've been trying to just dockerize it at this point so I don't have to deal with
windows-->linux issues, and its good practice to get better at it, but still same issue. If I use the Dockerfile given from gildas-lormeau/single-file-cli to test it finally works, but now there's a new bigger hurdle.

Ever since a couple years ago a lot Universities started using 2FA and redirect you after you login, even with the cookies file, I believe it momentarily redirects to 2FA portal to check and then continues to the page, so single-file just captures the page of the 2FA portal. Not sure if there's a way to delay single-file or somehow bypass the redirect check if you have the correct cookies, or something like that.
https://weblogin.XXX.edu/cas/login?service=https%3A%2F%2FXXX.instructure.com%2Flogin%2Fcas

from canvas-student-data-export.

davekats avatar davekats commented on June 23, 2024

We were able to figure this one out over a zoom call. We found that adding the --browser-debug flag after line 14 in singlefile.py was helpful and seemed to help singlefile render webpages in chrome effectively.

from canvas-student-data-export.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.