marianosimone / epub-thumbnailer

Script to extract the cover of an epub book and create a thumbnail for it
GNU General Public License v3.0
191 stars 29 forks source link

unable to install on arch linux #37

Open ghost opened 2 years ago

ghost commented 2 years ago

the message error :

Checking dependencies ...

Required dependencies:
    Python Imaging Library .......
OK

Installing epub-thumbnailer to /usr/bin/ ...
Could not install

i'm running python version 3.10.4

i have pillow installed on my machine.

marianosimone commented 2 years ago

Hi @SamDc73, thanks for reporting this.

Given the sequence of log messages, it seems like it failed in this line:

https://github.com/marianosimone/epub-thumbnailer/blob/486111b27d192c27011229dc696e9179f59b0eab/install.py#L154-L156

Coming from this if:

https://github.com/marianosimone/epub-thumbnailer/blob/486111b27d192c27011229dc696e9179f59b0eab/install.py#L124-L125

Did you run the installer as sudo? This seems to be a permissions error to me

ghost commented 2 years ago

Did you run the installer as sudo? This seems to be a permissions error to me

yes, i tried installing it using this command sudo python3 install.py install

Are there any way i can install it locally (in the .local/bin directory) ?

marianosimone commented 2 years ago

Given that I don't have an environment like yours to really test this, I can't guarantee that it will work... but you should be able to keep epub-thumbnailer.py wherever you'd like, as long as you change this line to the corresponding location.

You'll also need to make sure that the rest of the installation is done (e.g. installing epub.thumbnailer)

It's still really weird that the installation fails they way it does. Would you mind posting the output of:

ls -l /usr/bin/

Also, what happens if you manually try to run:

cp <wherever_you_download_epub_thumbnailer>/src/epub-thumbnailer.py /usr/bin/epub-thumbnailer

?