Solved bugs are moved into this topic...
Hobbes
Posts: 42 Joined: 17.05.2022 07:53
Post
by Hobbes » 05.04.2023 21:04
Hi!
I have installed FreeBSD 13.1 with plasma desktop in an old laptop. I have also installed Cudatex-qt5 from FeeBSD quarterly packages (1.179.0.0 version) and it works fine, but when I try to install any addon the console shows the next message:
Code: Select all
ModuleNotFoundError: No module named ¨cuda_addonman´
ERROR: Exception in CudaText for cuda_addonman.do_install_addon:
ModuleNotFoundError: No module named ¨cuda_addonman´
Python engine is installed and set in user.json.
I have searched in the forum and cuda wiki and found nothing. Any clue?
Thanks in advance!
Last edited by
Hobbes on 05.04.2023 21:06, edited 1 time in total.
Hobbes
Posts: 42 Joined: 17.05.2022 07:53
Post
by Hobbes » 05.04.2023 21:12
Yes, it exists, with several folders and .py files (included /cuda_addonman folder).
main Alexey
Posts: 2236 Joined: 25.08.2021 18:15
Post
by main Alexey » 05.04.2023 21:13
1. show the full path of your 'py' folder.
2. check that this dir is listed in Python sys.path: in the bottom Console panel (of CudaText) enter:
Show the result here.
Hobbes
Posts: 42 Joined: 17.05.2022 07:53
Post
by Hobbes » 05.04.2023 21:26
Full paht of 'py' folders:
~/.config/cudatext/py/
/usr/local/lib/libpython3.9.so
/usr/local/lib/libpython3.9.so.1.0-gdb.py
/usr/local/lib/libpython3.9.so.1
/usr/local/lib/libpython3.9.so.1.0
Console output:
Code: Select all
['/usr/local/bin', '/usr/local/lib/python39.zip', '/usr/local/lib/python3.9', '/usr/local/lib/python3.9/lib-dynload', '/usr/local/lib/python3.9/site-packages']
main Alexey
Posts: 2236 Joined: 25.08.2021 18:15
Post
by main Alexey » 05.04.2023 21:36
So Cud's py-dir is not listed in sys.path. I don't know why.
Try the fully portable CudaText from the URL above.
Hobbes
Posts: 42 Joined: 17.05.2022 07:53
Post
by Hobbes » 05.04.2023 21:44
The portable version (1.190.0.0) works fine, no problem with the addons.
main Alexey
Posts: 2236 Joined: 25.08.2021 18:15
Post
by main Alexey » 05.04.2023 21:49
The CudaText code has this:
procedure TfmMain.PythonEngineAfterInit(Sender: TObject);
it adds py-dir to sys.path.
Maybe 'your' CudaText package has this changed/deleted? IDK
Hobbes
Posts: 42 Joined: 17.05.2022 07:53
Post
by Hobbes » 06.04.2023 08:30
I don't know either, but since the portable version works fine, there is no problem.
I will try with the "Latest" packages, to see if it is the same with newer versions.
Thanks for your comments and guidance!
Hobbes
Posts: 42 Joined: 17.05.2022 07:53
Post
by Hobbes » 06.04.2023 09:03
Something curious, when I start Cuda in the text console, everything goes well, no error. And ~/.config/cudatext/py/ is listed in Python sys.path.
If I start Cuda from desktop Icon, the error arises ('py' folder path no listed).
Seems to be some issue with Plasma desktop.