-
Hello there. This is probably more of an issue with Python / Ubuntu itself, but since it shows up on Poetry I thought it might make sense to share it here as well (at least for future reference). After upgrading to Ubuntu 23.04, Poetry stopped working : ➜ ~ poetry
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/guillaume/.local/share/pypoetry/venv/bin/python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/home/guillaume/.local/share/pypoetry/venv/bin/python'
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.platlibdir = 'lib'
sys.executable = '/home/guillaume/.local/share/pypoetry/venv/bin/python'
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 0x00007ff0fb4b1040 (most recent call first):
<no Python frame> Python itself does work : ➜ ~ python3
Python 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> I have tried :
This did not help. If anyone has an idea.. I'll be glad to test it out :) |
Beta Was this translation helpful? Give feedback.
Answered by
GTorreil
Apr 21, 2023
Replies: 1 comment
-
For future reference... I overlooked the obvious. Reinstalling Poetry fixes the issue. I'm feeling a bit silly now 😆 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
GTorreil
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For future reference... I overlooked the obvious. Reinstalling Poetry fixes the issue. I'm feeling a bit silly now 😆