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


Wang Lei

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


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question