blueturtleai / gimp-stable-diffusion

MIT License
323 stars 40 forks source link

v1.1.2 load issue #6

Closed zuencap closed 1 year ago

zuencap commented 1 year ago

Hi, I followed the instruction on the site to install v1.1.2. I get this error and the plugin isn't loaded:

Querying plug-in: '/usr/local/abc/home/dfg/.config/GIMP/2.10/plug-ins/gimp-stable-diffusion.py'
gimp: LibGimpBase-WARNING: gimp: gimp_wire_read(): error
Terminating plug-in: '/usr/local/abc/home/dfg/.config/GIMP/2.10/plug-ins/gimp-stable-diffusion.py'
zuencap commented 1 year ago

I tried v1.1.1. It's the same.

blueturtleai commented 1 year ago

Which GIMP version do you use? Which OS? Did you make chmod 755 in case of macOS or Linux?

zuencap commented 1 year ago

I use GIMP 2.10.32 on Linux. Yes the script is executable:

-rwxr-xr-x  1 dfg primarygroup 4213 Sep 27 13:58 gimp-stable-diffusion.py*
blueturtleai commented 1 year ago

Currently I don't have an idea why it doesn't work. I will ask the GIMP community and hope to get a solution.

blueturtleai commented 1 year ago

Could you please check, if Python 2 is installed on your machine? If not, please install Python 2 and try it again.

zuencap commented 1 year ago

I had already python 3. Installed Python 2.7 but it still shows the same message.

I wonder if there is a way to see a more detailed error message.

opencoca commented 1 year ago

@zuencap Also, what Linux are you on? I see mention of a similar issue back in Ubuntu 15.04 though they, too, don't have a conclusive fix.

zuencap commented 1 year ago

I use a custom Debian based on the latest version.

blueturtleai commented 1 year ago

Please check, if you can run "Filters > Render > Spyrogimp". This plugin is also Python based.

blueturtleai commented 1 year ago

Additionally you could check, if the Python console runs. You can open it via "Filters/Python-Fu/Console".

zuencap commented 1 year ago

Hmm, I don't have those 😮 I guess I have somehow a reduced GIMP. I'll check if I can get the proper one and update this issue. Thanks a lot for looking in this.

zuencap commented 1 year ago

Looks like Debian doesn't ship gimp-phyton package any more for the sake of Python 3. I installed flatpack Gimp: https://flathub.org/apps/details/org.gimp.GIMP The plugin loads fine now. Thanks for your help.

blueturtleai commented 1 year ago

Great, that it's working now! Do you know if it's necessary to install Python 2 manually or does this happen automatically when you install GIMP from flathub.org?

zuencap commented 1 year ago

It works without installing Python2. Flatpak handles everything.

opencoca commented 1 year ago

Flat packs are great but they introduce sandboxing that can be complicated to resolve. I’ll look into this when possible. Can you provide the link to the specific pack?

Edit comment: personal information removed

blueturtleai commented 1 year ago

https://flathub.org/apps/details/org.gimp.GIMP