evmer / perlego-downloader

Download books from Perlego.com in PDF format
MIT License
117 stars 54 forks source link

PermissionError: [Errno 13] Permission denied: #19

Closed Alexmonroeni closed 2 years ago

Alexmonroeni commented 2 years ago

Traceback (most recent call last): File "/home/xxxxx/perlego-downloader/downloader.py", line 156, in os.mkdir(cache_dir) PermissionError: [Errno 13] Permission denied: '/home/xxxx/perlego-downloader/PDF_144322/'

evmer commented 2 years ago

Add write permissions to the script folder

Alexmonroeni commented 2 years ago

How do I do that? Sorry I’m very new to this, hope you can help me out :)

On Sun, Oct 2, 2022 at 7:07 AM evmer @.***> wrote:

Add write permissions to the script folder

— Reply to this email directly, view it on GitHub https://github.com/evmer/perlego-downloader/issues/19#issuecomment-1264615191, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3MGL4HCGAJLNARWTSDE4QDWBFUINANCNFSM6AAAAAAQ2XJDJA . You are receiving this because you authored the thread.Message ID: @.***>

evmer commented 2 years ago

chmod +w perlego-downloader or chmod +w . if you're already inside the folder

Alexmonroeni commented 2 years ago

Thanks so much :)

On Sun, Oct 2, 2022 at 7:10 AM evmer @.***> wrote:

chmod +w perlego-downloader

— Reply to this email directly, view it on GitHub https://github.com/evmer/perlego-downloader/issues/19#issuecomment-1264615773, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3MGL4AFPXKZKG63D4R5B6TWBFUTDANCNFSM6AAAAAAQ2XJDJA . You are receiving this because you authored the thread.Message ID: @.***>

Alexmonroeni commented 2 years ago

I tried giving it read and write permissions, and that fixed it, but now its giving me this error after it finishes ripping the book.

Traceback (most recent call last): File "/home/amoxl/perlego-downloader/downloader.py", line 243, in asyncio.run(html2pdf()) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/home/amoxl/perlego-downloader/downloader.py", line 164, in html2pdf browser = await launch(options={ File "/home/amoxl/.local/lib/python3.10/site-packages/pyppeteer/launcher.py", line 307, in launch return await Launcher(options, **kwargs).launch() File "/home/amoxl/.local/lib/python3.10/site-packages/pyppeteer/launcher.py", line 168, in launch self.browserWSEndpoint = get_ws_endpoint(self.url) File "/home/amoxl/.local/lib/python3.10/site-packages/pyppeteer/launcher.py", line 227, in get_ws_endpoint raise BrowserError('Browser closed unexpectedly:\n') pyppeteer.errors.BrowserError: Browser closed unexpectedly:

On Sun, Oct 2, 2022 at 7:11 AM Alex Monroe @.***> wrote:

Thanks so much :)

On Sun, Oct 2, 2022 at 7:10 AM evmer @.***> wrote:

chmod +w perlego-downloader

— Reply to this email directly, view it on GitHub https://github.com/evmer/perlego-downloader/issues/19#issuecomment-1264615773, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3MGL4AFPXKZKG63D4R5B6TWBFUTDANCNFSM6AAAAAAQ2XJDJA . You are receiving this because you authored the thread.Message ID: @.***>

Alexmonroeni commented 2 years ago

Can you help me fix it ? I would appreciate it, you seem like a hard worker. :)

On Sun, Oct 2, 2022 at 9:01 PM Alex Monroe @.***> wrote:

I tried giving it read and write permissions, and that fixed it, but now its giving me this error after it finishes ripping the book.

Traceback (most recent call last): File "/home/amoxl/perlego-downloader/downloader.py", line 243, in

asyncio.run(html2pdf()) File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() File "/home/amoxl/perlego-downloader/downloader.py", line 164, in html2pdf browser = await launch(options={ File "/home/amoxl/.local/lib/python3.10/site-packages/pyppeteer/launcher.py", line 307, in launch return await Launcher(options, **kwargs).launch() File "/home/amoxl/.local/lib/python3.10/site-packages/pyppeteer/launcher.py", line 168, in launch self.browserWSEndpoint = get_ws_endpoint(self.url) File "/home/amoxl/.local/lib/python3.10/site-packages/pyppeteer/launcher.py", line 227, in get_ws_endpoint raise BrowserError('Browser closed unexpectedly:\n') pyppeteer.errors.BrowserError: Browser closed unexpectedly: On Sun, Oct 2, 2022 at 7:11 AM Alex Monroe ***@***.***> wrote: > Thanks so much :) > > On Sun, Oct 2, 2022 at 7:10 AM evmer ***@***.***> wrote: > >> chmod +w perlego-downloader >> >> — >> Reply to this email directly, view it on GitHub >> , >> or unsubscribe >> >> . >> You are receiving this because you authored the thread.Message ID: >> ***@***.***> >> >