Re: RV: CodecRegistryError problem for an IDE.

2020-05-16 Thread Dieter Maurer
Bryan Cabrera Ramírez wrote at 2020-5-15 19:53 +0200:
>   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 ?

Apparently, a Python version 3 interpreter is used but it finds
a Python version 2 library. Those versions cannot mix.

I cannot tell you how this mix came into being.
I would try to uninstall Python and then reinstall freshly
Python 3.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: RV: CodecRegistryError problem for an IDE.

2020-05-15 Thread MRAB

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.

--
https://mail.python.org/mailman/listinfo/python-list


RV: CodecRegistryError problem for an IDE.

2020-05-15 Thread Bryan Cabrera Ramírez
   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 ?

    

    

   Best regards,

    

   Thank you,

    

   Bryan Cabrera Ramirez

    

    
-- 
https://mail.python.org/mailman/listinfo/python-list