Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certbot fails to start #9924

Open
vmato opened this issue Mar 31, 2024 · 1 comment
Open

Certbot fails to start #9924

vmato opened this issue Mar 31, 2024 · 1 comment

Comments

@vmato
Copy link

vmato commented Mar 31, 2024

My operating system is (include version):

FreeBSD 14.0-RELEASE-p6

I installed Certbot with (snap, OS package manager, pip, certbot-auto, etc):

pkg

I ran this command and it produced this output:

#certbot
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = '/usr/local/bin/python3.9'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/local/bin/python3.9'
  sys.base_prefix = '/usr/local'
  sys.base_exec_prefix = '/usr/local'
  sys.platlibdir = 'lib'
  sys.executable = '/usr/local/bin/python3.9'
  sys.prefix = '/usr/local'
  sys.exec_prefix = '/usr/local'
  sys.path = [
    '/usr/local/lib/python39.zip',
    '/usr/local/lib/python3.9',
    '/usr/local/lib/python3.9/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
LookupError: unknown encoding: UTF-8

Current thread 0x0000015089212000 (most recent call first):
<no Python frame>

Certbot's behavior differed from what I expected because:

Expected: certbot runs normally

@osirisinferi
Copy link
Collaborator

To me, this error looks like a major breakage of your Python setup in general and not directly related to Certbot. See e.g. https://python-list.python.narkive.com/Q6Xc4rVB/lookuperror-unknown-encoding-utf-8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants