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

Fatal Python error: Py_Initialize: Unable to get the locale encoding #3832

Open
bhimraojabraska opened this issue Aug 13, 2024 · 0 comments
Open

Comments

@bhimraojabraska
Copy link

gnocteam@bgptool4:~$ sudo apt-get install ralph-core=20240813.1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
redis
The following NEW packages will be installed:
ralph-core
0 upgraded, 1 newly installed, 0 to remove and 96 not upgraded.
Need to get 0 B/41.5 MB of archives.
After this operation, 210 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package ralph-core.
(Reading database ... 110721 files and directories currently installed.)
Preparing to unpack .../ralph-core_20240813.1_amd64.deb ...
The system user `ralphsrv' already exists. Exiting.
Leaving 'diversion of /etc/ralph/ralph.conf to /etc/ralph/ralph.conf.distrib by ralph-core'
Leaving 'diversion of /etc/ralph/conf.d/database.conf to /etc/ralph/conf.d/database.conf.distrib by ralph-core'
Leaving 'diversion of /etc/ralph/conf.d/cache.conf to /etc/ralph/conf.d/cache.conf.distrib by ralph-core'
Leaving 'diversion of /etc/ralph/conf.d/redis.conf to /etc/ralph/conf.d/redis.conf.distrib by ralph-core'
Leaving 'diversion of /etc/ralph/conf.d/gunicorn.conf to /etc/ralph/conf.d/gunicorn.conf.distrib by ralph-core'
Unpacking ralph-core (20240813.1) ...
Setting up ralph-core (20240813.1) ...
Collecting django static files...
Could not find platform independent libraries
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to [:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f7314e50740 (most recent call first):
Aborted (core dumped)
dpkg: error processing package ralph-core (--configure):
installed ralph-core package post-installation script subprocess returned error exit status 134
Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
Errors were encountered while processing:
ralph-core
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

Environment

  • Ralph version:
  • Operating system:
  • Method of installation: Deb package? Manual installation? Docker?
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

1 participant