You are not logged in.

#1 2011-07-27 08:44:51

seal20
Member
Registered: 2010-02-13
Posts: 36

[Solved] python messed up? CodecRegistryError,\

I am trying to install QIIME which is python based on my pc.
I have the same problem with qiime itself and PyNAST, a dependency. I installed both with setup.py. The install seems successful but when I run test I get this error:

Fatal Python error: Py_Initialize: Unable to get the locale encoding
  File "/usr/lib/python2.7/encodings/__init__.py", line 123
    raise CodecRegistryError,\

I suppose it is because they are requiring python 2 and NOT 3 but somewhat it get messed up...
I have this in .bashrc to define PYTHONPATH variable:

export PYTHONPATH=/home/sylvain/qiime/bin/:/usr/lib/python2.7

How can I specify that python 2 should be used for all the scripts? I invoke the scripts using :

python2 all_tests.py

Do I miss something?

Last edited by seal20 (2011-07-29 03:29:20)

Offline

#2 2011-07-29 03:28:47

seal20
Member
Registered: 2010-02-13
Posts: 36

Re: [Solved] python messed up? CodecRegistryError,\

I found the solution...

First as a temporary solution I changed the link of /usr/bin/python to point to python2.7 . But then I found that I need to put the full path of the python executable in the .qiime_config
and it solved the problem so I rechange the link to point to python3

Offline

Board footer

Powered by FluxBB