hhannine / superpaper

A cross-platform multi monitor wallpaper manager.
MIT License
1.12k stars 46 forks source link

ImportError on startup #52

Closed ciaphas2037 closed 4 years ago

ciaphas2037 commented 4 years ago

Hi, thanks for uploading this, I have used it in the past and been very happy with it. I'm a bit of a Linux noob so might have done something stupid here.

I am running Manjaro 20.0.1 on Linux 5.6.11-1.

When I try to launch superpaper from terminal I get the following error:

File "/usr/bin/superpaper", line 11, in load_entry_point('superpaper==2.0.2', 'console_scripts', 'superpaper')() File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 490, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 2859, in load_entry_point return ep.load() File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 2450, in load return self.resolve() File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 2456, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/lib/python3.8/site-packages/superpaper/main.py", line 13, in from superpaper.cli import cli_logic File "/usr/lib/python3.8/site-packages/superpaper/cli.py", line 8, in from superpaper.data import CLIProfileData File "/usr/lib/python3.8/site-packages/superpaper/data.py", line 15, in import superpaper.wallpaper_processing as wpproc File "/usr/lib/python3.8/site-packages/superpaper/wallpaper_processing.py", line 19, in from PIL import Image, UnidentifiedImageError ImportError: cannot import name 'UnidentifiedImageError' from 'PIL' (/usr/lib/python3.8/site-packages/PIL/init.py)

I presume there's an issue with the library or dependencies. Is it clear from this error message what I'm missing and what I need to do to fix it?

hhannine commented 4 years ago

What package are you using of Superpaper? If you're using the unofficial AUR package the issue might be with the too old Pillow version that the AUR version is patched to use.

ciaphas2037 commented 4 years ago

I did use the package on AUR, didn't realise it was the unofficial version (think it worked last time I'd used it a few months ago). Just had a look at your install guide on this page. I'll try to grab it off PyPI and see how it goes.

Thanks for the help

ciaphas2037 commented 4 years ago

All working now, thanks for the quick response.

hhannine commented 4 years ago

Good to hear!

I've not used it myself but I've followed the issues with the AUR package a bit and they're running into some issues since Pillow 7.0 is not available there yet so they've patched Superpaper to run on older Pillow. Seems like this issue you run into is also related to that.