RV: CodecRegistryError problem for an IDE.
MRAB
python at mrabarnett.plus.com
Fri May 15 15:23:38 EDT 2020
On 2020-05-15 18:53, Bryan Cabrera RamÃrez wrote:
> Hi,
>
>
>
> I'm trying to insall an INET package for an IDE called OMNeT++ and when
>
> I try to build the INET the following happens in the command window:
>
>
>
>
>
> Fatal Python error: Py_Initialize: unable to load the file system codec
>
> File "C:\Python27\Lib\encodings\__init__.py", line 123
>
> raise CodecRegistryError,\
>
> ^
>
> SyntaxError: invalid syntax
>
>
>
>
>
> I did python repair from the setup installer but it still doesn't work.
>
>
>
> Do you know what should I do in order to solve the problem ?
>
>
That syntax is valid for Python 2.7. (Python 2 has reached end-of-life.)
I'm wondering if it's due to a confusion between Python 2 and Python 3,
with Python 3 trying to run code intended for Python 2.
More information about the Python-list
mailing list