You are not logged in.
What is the way to make the Python Pâté plugins for Kate work on Arch with Python3?
I get this error after I switch python plugins on in plugin manager:
kate(1323)/Kate (Plugins): "Traceback (most recent call last):
File "/usr/share/apps/kate/plugins/pate/kate/__init__.py", line 49, in <module>
from PyKDE4.kdecore import i18nc
ImportError: No module named 'PyKDE4'
Could not import kate"On this page there is talk about a link you may have to do: http://kate-editor.org/2012/06/26/pytho … ser-guide/
On this page it says python3 should work: http://kate-editor.org/2013/05/31/a-ric … te-editor/
So I take a look inside /usr/lib/python3.4/site-packages/, there is an existing folder named PyKate4 which is confusing, well, not to worry I try to set up links like this:
ls -l PyK*
PyKDE4:
lrwxrwxrwx 1 root root 22 16 apr 01.46 __init__.py -> ../PyKate4/__init__.py
lrwxrwxrwx 1 root root 18 16 apr 01.42 kate.so -> ../PyKate4/kate.so
PyKate4:
-rw-r--r-- 1 root root 0 17 mar 08.29 __init__.py
-rwxr-xr-x 1 root root 177392 31 mar 00.22 kate.soRestarting kate, but obviously that didn't work, I should have known..
Being new to Python includes, I don't really know what I'm doing...
But I do think this might be relevant:
python
Python 3.4.0 (default, Mar 17 2014, 23:20:09)
>>> import PyKDE4 # notice, no error on these:
>>> import PyKate4
>>> import PyKDE4.kdecore # but this does not work
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'PyKDE4.kdecore'
>>> import PyKate4.kdecore # tried this, just because...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'PyKate4.kdecore'
>>> import sys
>>> print(sys.path)
['', '/usr/lib/python34.zip', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-linux', '/usr/lib/python3.4/lib-dynload', '/usr/lib/python3.4/site-packages']Perhaps this (but its says python2.7):
locate -b PyKDE4
/usr/lib/python2.7/site-packages/PyKDE4
/usr/share/apps/cmake/modules/FindPyKDE4.cmake
/usr/share/apps/cmake/modules/FindPyKDE4.py..and this:
locate /kate.so
/usr/lib/python3.4/site-packages/PyKate4/kate.soLast edited by JKAbrams (2014-04-16 06:19:06)
Offline
I'd start with "pacman -Ss python kde" and work myself through the package lists of those packages.
Offline
pacman -S kdebindings-python
...
error: failed to commit transaction (conflicting files)
kdebindings-python: /usr/lib/python3.4/site-packages/PyKDE4/__init__.py exists in filesystemBingo! Left my links in place to know when I found the right one.
After removing my links and installing this package, enabling the plugins works.
Thanks.
Offline