No module named 'cuda_addonman'

Solved bugs are moved into this topic...
Hobbes
Posts: 42
Joined: 17.05.2022 07:53

No module named 'cuda_addonman'

Post 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!
Last edited by Hobbes on 05.04.2023 21:06, edited 1 time in total.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post 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/
Hobbes
Posts: 42
Joined: 17.05.2022 07:53

Post by Hobbes »

Yes, it exists, with several folders and .py files (included /cuda_addonman folder).
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post 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:

Code: Select all

import sys
print(sys.path)
Show the result here.
Hobbes
Posts: 42
Joined: 17.05.2022 07:53

Post 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']
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post 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.
Hobbes
Posts: 42
Joined: 17.05.2022 07:53

Post by Hobbes »

The portable version (1.190.0.0) works fine, no problem with the addons.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post 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
Hobbes
Posts: 42
Joined: 17.05.2022 07:53

Post 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!
Hobbes
Posts: 42
Joined: 17.05.2022 07:53

Post 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.
Post Reply