You are not logged in.

#1 Yesterday 13:11:07

GazonkFoo
Member
Registered: 2009-11-03
Posts: 7

Python Plugins not working in Krita anymore

Hi all,

not sure if this is caused by a recent package update but somehow the Python Plugins in Krita won't load for me anymore and i get the following error:

krita.scripting: "Traceback (most recent call last):"
krita.scripting: "  File \"/usr/lib/krita-python-libs/krita/__init__.py\", line 11, in <module>"
krita.scripting: "    from .api import *"
krita.scripting: "  File \"/usr/lib/krita-python-libs/krita/api.py\", line 15, in <module>"
krita.scripting: "    from PyKrita.krita import *"
krita.scripting: "RuntimeError: the sip module implements API v12.0 to v12.17 but the PyKrita.krita module requires API v12.18"
krita.scripting: "Could not import krita"

Package versions:

krita 5.2.14-2
python-pyqt5 5.15.11-5
python-pyqt5-sip 12.17.2-2

Not sure if it's the correct place to check but https://pypi.org/project/PyQt5-sip/ also shows 12.17.2 as being the latest, so the error sounds odd to me.

I'm fairly confident that i haven't messed with my global pip modules.

Any help would be greatly appreciated!

Offline

#2 Yesterday 14:14:48

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,057

Offline

#3 Yesterday 15:21:15

GazonkFoo
Member
Registered: 2009-11-03
Posts: 7

Re: Python Plugins not working in Krita anymore

thx, guess my problem is not a random sip module manually installed:

❯ python
>>> import PyQt5
>>> PyQt5.__file__
'/usr/lib/python3.14/site-packages/PyQt5/__init__.py'
❯ pacman -Qo /usr/lib/python3.14/site-packages/PyQt5/__init__.py
/usr/lib/python3.14/site-packages/PyQt5/__init__.py is owned by python-pyqt5 5.15.11-5
❯ python
>>> import PyQt5.sip
>>> PyQt5.sip.__file__
'/usr/lib/python3.14/site-packages/PyQt5/sip.cpython-314-x86_64-linux-gnu.so'
❯ pacman -Qo /usr/lib/python3.14/site-packages/PyQt5/sip.cpython-314-x86_64-linux-gnu.so
/usr/lib/python3.14/site-packages/PyQt5/sip.cpython-314-x86_64-linux-gnu.so is owned by python-pyqt5-sip 12.17.2-2

also nothing in ~/.local/lib

my problem seems to be different from the reddit post though.
they had something asking for 12.9 when 12.9 was actually installed but my krita wants 12.18 and pyqt5-sip is still 12.17 in the arch repos.

do i just need to wait until python-pyqt5-sip is updated?

Offline

#4 Yesterday 15:47:26

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,057

Re: Python Plugins not working in Krita anymore

The 4 year old  reddit link was just to show how to check what gets loaded.
It would seem w/ https://archlinux.org/packages/extra/any/sip/ moving to 6.15 because of python 3.14 the abi bumped to v12.18.0 and v13.11.0 but there're no matching pyqt releases?
(python-pyqt6-sip is also at 3.10.3)

Do you have a gitlab account?
https://gitlab.archlinux.org/archlinux/ … p/-/issues
https://gitlab.archlinux.org/archlinux/ … p/-/issues

Offline

#5 Yesterday 16:32:32

GazonkFoo
Member
Registered: 2009-11-03
Posts: 7

Re: Python Plugins not working in Krita anymore

Ah yeah that makes sense.
The sip Changelogs also have this:

v12.18
    Added support for Python v3.14.
    Removed support for Python v3.9.

unfortunately i don't have a gitlab account sad

but from what i understand theres not much arch can do until a 12.18 release of pyqt5-sip gets pushed to PyPi?

Offline

#6 Yesterday 21:04:36

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,057

Re: Python Plugins not working in Krita anymore

Well let's see - https://gitlab.archlinux.org/archlinux/ … -/issues/7
Ideally somebody has an established background w/ Phil and can clarify the situation.

Offline

Board footer

Powered by FluxBB