Ticket #299 (closed defect: invalid)

Opened 11 months ago

Last modified 11 months ago

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

Changed 11 months ago by mlt

  • status changed from new to closed
  • resolution set to invalid

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.