prsh11 / manga-cli

📖 Script to read manga from cli
MIT License
80 stars 4 forks source link

Enter Option: error: could not open document #29

Closed mindlessp0tatoe closed 1 year ago

mindlessp0tatoe commented 1 year ago

Hello,

I have a similar issue to #10

I have all dependencies installed, however i keep receiving:

Enter Option: error: could not open document
prsh11 commented 1 year ago

Probably try opening with another pdf viewer using

manga-cli -o <your pdf viewer> 
mindlessp0tatoe commented 1 year ago

Probably try opening with another pdf viewer using

I thought Zathura was supported. I have it installed and all the optional dependencies for it.

Edit: Just tried a different PDF reader. Exact same error. mupdf: error: cannot open document.

prsh11 commented 1 year ago

It works fine for me, but I can't understand why it is not working for you. Could you try a clean install?

rm /usr/local/bin/manga-cli
rm -rf ~/.cache/manga-cli
mindlessp0tatoe commented 1 year ago

rm /usr/local/bin/manga-cli

rm: cannot remove '/usr/local/bin/manga-cli': No such file or directory

Tried the usual ( Berserk ), no dice. Tried Naruto, i get the following:


Enter Option: error: cannot open /home/USER/cache/manga-cli/Naruto-67.cbz: No such file or directory
mupdf: error: cannot open document```
prsh11 commented 1 year ago

Can check the list of the contents of ~/.cache/manga-cli after trying to download a manga.

mindlessp0tatoe commented 1 year ago

I saw it for a split second, doing another ls shows empty cache.

image

image

prsh11 commented 1 year ago

Do you have zip and Imagemagick installed?

mindlessp0tatoe commented 1 year ago

Do you have zip and Imagemagick installed?

You have got to be kidding me. it was zip....

sudo pacman -S zip

fixed the issue. Sorry for the trouble :pray: and thank you for troubleshooting with me!