Opened 6 years ago

Closed 6 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 by jef, 6 years ago

You need to run call py3_env.bat first.

comment:2 by kbevers, 6 years ago

Thanks! I was not aware of that script.

comment:3 by jef, 6 years ago

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