PDA

View Full Version : f26 DNF error undefined symbol: _Py_CoerceLegacyLocale



jpoirier
14th November 2017, 06:49 PM
running dnf I get: /usr/libexec/system-python: symbol lookup error: /usr/libexec/system-python: undefined symbol: _Py_CoerceLegacyLocale

There was one other post about this error but no resolution.

Update - fixed by removing/renaming libs that were not owned by a package, e.g.

~ ls /usr/local/lib | grep python
libpython3.6m.a
libpython3.6m.so.1.0
libpython3.6m.so
libpython3.so

~ rpm -qf /usr/local/lib/libpython3.6m.a
file /usr/local/lib/libpython3.6m.a is not owned by any package

~ rpm -qf /usr/local/lib/libpython3.6m.so
file /usr/local/lib/libpython3.6m.so is not owned by any package

~ rpm -qf /usr/local/lib/libpython3.6m.so.1.0
file /usr/local/lib/libpython3.6m.so.1.0 is not owned by any package

~ rpm -qf /usr/local/lib/libpython3.so
file /usr/local/lib/libpython3.so is not owned by any package

~ mv /usr/local/lib/libpython3.6m.a /usr/local/lib/libpython3.6m.a~
~ mv /usr/local/lib/libpython3.6m.so /usr/local/lib/libpython3.6m.so~
~ mv /usr/local/lib/libpython3.6m.so.1.0 /usr/local/lib/libpython3.6m.so.1.0~
~ mv /usr/local/lib/libpython3.so /usr/local/lib/libpython3.so~