Opened 10 years ago

Closed 10 years ago

#299 closed defect (invalid)

pyuic4 does not work

Reported by: mlt Owned by: osgeo4w-dev@…
Priority: major Component: Package
Version: Keywords: pyuic, python, encoding
Cc:

Description

I'm using the latest build and here is what I'm getting:

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

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

I feel like it is python 3 raise syntax or something.

Change History (1)

comment:1 by mlt, 10 years ago

Resolution: invalid
Status: newclosed

Apparently I have another pyuic4 on the PATH. Providing full path C:\OSGeo4W\bin\pyuic4.bat did the trick. Though it is weird. Right PATHs should come first when in OSGeo4W console.

Note: See TracTickets for help on using tickets.