mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.84k stars 971 forks source link

Termux [download][warning] PermissionError: [Errno 1] Operation not permitted #1739

Closed erickyun closed 3 years ago

erickyun commented 3 years ago
gallery-dl https://readmanganato.com/manga-cv980104/chapter-1 -d /data/data/com.termux/files/home/storage/downloads

gallery-dl https://readmanganato.com/manga-cv980104/chapter-1 -v [gallery-dl][debug] Version 1.18.2 [gallery-dl][debug] Python 3.9.5 - Linux-4.14.186-g34d97d2-aarch64-with-libc [gallery-dl][debug] requests 2.25.1 - urllib3 1.26.5 [gallery-dl][debug] Starting DownloadJob for 'https://readmanganato.com/manga-cv980104/chapter-1' [manganelo][debug] Using ManganeloChapterExtractor for 'https://readmanganato.com/manga-cv980104/chapter-1' [urllib3.connectionpool][debug] Starting new HTTPS connection (1): readmanganato.com:443 [urllib3.connectionpool][debug] https://readmanganato.com:443 "GET /manga-cv980104/chapter-1 HTTP/1.1" 200 None [urllib3.connectionpool][debug] Starting new HTTPS connection (1): s71.mkklcdnv6tempv2.com:443 [urllib3.connectionpool][debug] https://s71.mkklcdnv6tempv2.com:443 "GET /mangakakalot/j2/jp917635/chapter_1_in_a_sakurafilled_sky/1.jpg HTTP/1.1" 200 398454 [download][warning] PermissionError: [Errno 1] Operation not permitted: "./gallery-dl/manganelo/Eden's Zero/c001: In A Sakura-Filled Sky/Eden's Zero_c001_001.jpg.part" [download][error] Failed to download Eden's Zero_c001_001.jpg [urllib3.connectionpool][debug] Starting new HTTPS connection (2): s71.mkklcdnv6tempv2.com:443 [urllib3.connectionpool][debug] https://s71.mkklcdnv6tempv2.com:443 "GET /mangakakalot/j2/jp917635/chapter_1_in_a_sakurafilled_sky/2.jpg HTTP/1.1" 200 224288

rautamiekka commented 3 years ago

Works fine for me on Win10 x64, apart from the CDN timing out every so often.

I presume this is a Termux-specific problem where Termux does something wrong with the syscalls.

Fukitsu commented 3 years ago

What Android version are you using? There are some permission problems with Termux on Android 11. Kill Termux then remove the storage permission from the settings, open it again and setup storage permission with termux-setup-storage and try again.

erickyun commented 3 years ago

What Android version are you using?

Hi,

thank for your response. I'm using Android 11

There are some permission problems with Termux on Android 11. Kill Termux then remove the storage permission from the settings, open it again and setup storage permission with termux-setup-storage and try again.

I did try what you suggest but it didn't work? downloading in $HOME does work but /data/data/com.termux/files/home/storage/downloads doesn't work

Fukitsu commented 3 years ago

Try to do it multiple times, it's worked for me after changing ROM