Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError #63

Open
diestor opened this issue Apr 11, 2023 · 0 comments
Open

FileNotFoundError #63

diestor opened this issue Apr 11, 2023 · 0 comments

Comments

@diestor
Copy link

diestor commented Apr 11, 2023

Running on Windows 10. A few hours ago I had no problem, however, after re-installing everything I'm getting a new error:

File "C:\Users\difer\Downloads\perlego\perlego-downloader-main\downloader.py", line 238, in <module> asyncio.run(html2pdf()) File "C:\Program Files\Python310\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File "C:\Users\difer\Downloads\perlego\perlego-downloader-main\downloader.py", line 171, in html2pdf browser = await launch(options={ File "C:\Users\difer\AppData\Roaming\Python\Python310\site-packages\pyppeteer\launcher.py", line 307, in launch return await Launcher(options, **kwargs).launch() File "C:\Users\difer\AppData\Roaming\Python\Python310\site-packages\pyppeteer\launcher.py", line 148, in launch self.proc = subprocess.Popen( # type: ignore File "C:\Program Files\Python310\lib\subprocess.py", line 971, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Program Files\Python310\lib\subprocess.py", line 1456, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] El sistema no puede encontrar el archivo especificado

I want to note that before getting this error, I run the code without fixing the line 171, and in this case, the respone was the expected error, however, after changing it, I'm facing this new stuff.
The book ID is the following: 3174161, I dont think it matters because I've tried three different books and the response is the same.

EDIT: 12/04
After tweaking a little bit, I found the way to make it work, you just have to delete all the 'args', leaving it like this:
# start headless chrome browser = await launch(options={ 'headless': True, 'autoClose': False, }, )
It all worked perfectly.
HOWEVER, I've got some recent error, while trying to download the following book: 1866541; I'm left with an archive with no extension that has no weight. If someone could help me I'll be very pleased.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant