Page 1 of 2
No module named 'cuda_addonman'
Posted: 05.04.2023 21:04
by Hobbes
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!
Posted: 05.04.2023 21:06
by main Alexey
Open the folder 'py',
it's here-
https://wiki.freepascal.org/CudaText#Lo ... .27data.27
This folder must contain "cuda_addonman" dir with several *.py files.
It exists?
If not exists, then try the fully portable CudaText installation:
https://sourceforge.net/projects/cudate ... s/release/
Posted: 05.04.2023 21:12
by Hobbes
Yes, it exists, with several folders and .py files (included /cuda_addonman folder).
Posted: 05.04.2023 21:13
by main Alexey
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.
Posted: 05.04.2023 21:26
by Hobbes
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']
Posted: 05.04.2023 21:36
by main Alexey
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.
Posted: 05.04.2023 21:44
by Hobbes
The portable version (1.190.0.0) works fine, no problem with the addons.
Posted: 05.04.2023 21:49
by main Alexey
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
Posted: 06.04.2023 08:30
by Hobbes
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!
Posted: 06.04.2023 09:03
by Hobbes
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.