HELP! build python error with message: "unable to load the file system codec"

Wang Lei f3d27b at
Mon Aug 9 15:38:28 CEST 2010

Hi, developers!

I get python3k from the svn repository. The revision is 83889. When
building it, i encounter this error.

gcc -pthread   -Xlinker -export-dynamic -o python Modules/python.o
libpython3.2.a -lpthread -ldl  -lutil   -lm
XXX lineno: 1098, opcode: 32
Unable to get the locale encoding: fallback to utf-8
Fatal Python error: Py_Initialize: unable to load the file system codec
LookupError: no codec search functions registered: can't find encoding
/bin/sh: line 1: 14357 Aborted                 CC='gcc -pthread'
LDSHARED='gcc -pthread -shared' LDFLAGS=' ' OPT='-DNDEBUG -g -fwrapv
-O3 -Wall -Wstrict-prototypes' ./python -E ../python-svn-14/
make: *** [sharedmods] Error 134

What does that mean? Could anyone help?

In case you want to check out the output. It is attached.


More information about the Python-list mailing list