After copy old directory to new OS(U18 to U20) i got python error:
fincahuanaco (e) venv ~ Software odoo-17.0 pip3
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '/home/.../odoo-17.0/venv/bin/python3'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/home/.../odoo-17.0/venv/bin/python3'
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.platlibdir = 'lib'
sys.executable = '/home/.../odoo-17.0/venv/bin/python3'
sys.prefix = '/usr'
sys.exec_prefix = '/usr'
sys.path = [
'/usr/lib/python310.zip',
'/usr/lib/python3.10',
'/usr/lib/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 0x00007f8016431740 (most recent call first):
<no Python frame>
After execute the following command its solved:
fincahuanaco (e) venv ~ Software odoo-17.0 1 export PYTHONHOME=/usr/local

No comments:
Post a Comment