Current thread 0x00007f5aa48af880 (most recent call first): no Python frame Python path configuration: PYTHONHOME = (not set) PYTHONPATH = (not set) program name = /var/www/project/venu/bin/python isolated = 0 environment = 1 user site = 1 import site = 1 sys._base_executable = /var/www/project/venu/bin/python sys.base_prefix = '/opt/python3.8.2' sys.base_exec_prefix = '/opt/python3.8.2' sys.executable = '/var/www/project/venu/bin/python sys.prefix = '/opt/python3.8.2' sys.exec_prefix = '/opt/python3.8.2' sys.path = [ '/opt/python3.8.2/lib/python38.zip', '/opt/python3.8.2/lib/python3.8', '/opt/python3.8.2/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 (most recent call first)
He cumplido Python 3.8.2 con Django 2.2. funciona localmente bien, pero cuando trato de implementarlo con Apache y mod_wsgi 4.7.1 y obtengo el error anterior. Alguna sugerencia ?
En mi caso, mi LoadModule específico LoadModule wsgi_module "/path_to_conda"
estaba siendo ignorado debido al mod wsgi apache previamente habilitado. Tuve que deshabilitarlo primero con a2dismod wsgi
, como se responde aquí .