You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I successfully compiled Kratos in Ubuntu 24.04 and from terminal it works fine.
can you please help me to set the correct Python path and Kratos path in GiD?
Here what I tried:
And here the resulting error:
Python path configuration:
PYTHONHOME = '/usr/bin'
PYTHONPATH = '/home/veit/opt/Kratos/bin/Release:'
program name = '/usr/bin/python3.11'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = '/usr/bin/lib/python3.11'
sys._base_executable = '/usr/bin/python3.11'
sys.base_prefix = '/usr/bin'
sys.base_exec_prefix = '/usr/bin'
sys.platlibdir = 'lib'
sys.executable = '/usr/bin/python3.11'
sys.prefix = '/usr/bin'
sys.exec_prefix = '/usr/bin'
sys.path = [
'/home/veit/opt/Kratos/bin/Release',
'/tmp/gidNHnM4p/UNNAMED.gid',
'/usr/bin/lib/python311.zip',
'/usr/bin/lib/python3.11',
'/usr/bin/lib/python3.11/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007edbdc378080 (most recent call first):
<no Python frame>
I appreciate any help!
The text was updated successfully, but these errors were encountered:
@jginternational That errors means that python is unable to find its libs folder where encoding and other libs are located. If Kratos can be launcher correctly from the terminal I suspect this is a problem on how GiD is manipulating the paths. Most likely:
@jginternational: yes python 3.11 is the version I used to build Kratos. FYI here the line in the config file export PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE:-"/usr/bin/python3.11"}
@roigcarlo: here the output of the script /usr/lib/python3.11/encodings/__init__.py
The default for usr/bin/python3 as Python path is python3.12 where Kratos is not installed. Thus I think it is not an option.
That's the problem then, Gid is looking for the scripts /usr/bin/lib/ but they are located in /usr/lib/. @jginternational How can we tell gid to look into that location?
Hi, I successfully compiled Kratos in Ubuntu 24.04 and from terminal it works fine.
can you please help me to set the correct Python path and Kratos path in GiD?
Here what I tried:

And here the resulting error:
I appreciate any help!
The text was updated successfully, but these errors were encountered: