Opened 4 years ago

Closed 4 years ago

#547 closed defect (worksforme)

Python3 tries load python2 files and crashes

Reported by: kbevers Owned by: osgeo4w-dev@…
Priority: major Component: Package
Version: Keywords:
Cc:

Description

When I am trying to start the Python3 console I get the following error message:

> python3
Fatal Python error: Py_Initialize: unable to load the file system codec
  File "C:\OSGeo4W64\apps\Python27\Lib\encodings\__init__.py", line 123
    raise CodecRegistryError,\
                            ^
SyntaxError: invalid syntax

Current thread 0x000039b4 (most recent call first):

It would seem like the paths for Py2 and Py3 are messed up. I haven't been able to pinpoint exactly where though.

Change History (3)

comment:1 Changed 4 years ago by jef

You need to run call py3_env.bat first.

comment:2 Changed 4 years ago by kbevers

Thanks! I was not aware of that script.

comment:3 Changed 4 years ago by jef

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.