pgAdmin4, No Module Called Encoding

If you ended up here, probably you curiously have opened pgAdmin4 config dialog, change nothing and poof! pgAdmin4 throws an error next time you open it.

[bit@bitwise ~]$ pgadmin4
Python path:  "" 
Python Home:  "/usr/lib/pgadmin4/venv"
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f438e486c80 (most recent call first):
Aborted (core dumped)

I reinstall pgAdmin4 many times using pacman, change PYTHONHOME and PYTHONPATH variables, but no luck. Frustated, in the next day, an epiphany flow into my head, if pgAdmin4 throws an error after the config altered, why i don’t delete the config file?

[bit@bitwise ~]$ mv ~/.config/pgadmin/pgadmin4.conf  ~/.config/pgadmin/pgadmin4.conf.old

Diterbitkan oleh

Faruq

Hai! Saya senang bisa tahu kamu membaca profil ini. Saat ini, saya berprofesi sebagai pembaca dan penulis amatir. Saya menulis di blog pribadi "Tempat Pembuangan Otak" dan situs "Unlearn Everything, New Level of Understanding". Tentu akan menyenangkan jika kita saling mengenal, jadi, mengapa harus menunda saling menyapa di kolom komentar?

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google

You are commenting using your Google account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.