Skip to content

"class ProxyBase(metaclass=ProxyMetaclass)" invalid syntax #33

@minghui90

Description

@minghui90

I have Python 2.7.14 installed.
When I installed python-qt5 and executed python setup.py install, I got this error:

byte-compiling build\bdist.win-amd64\egg\PyQt5\uic\port_v3\proxy_base.py to proxy_base.pyc
File "build\bdist.win-amd64\egg\PyQt5\uic\port_v3\proxy_base.py", line 26
class ProxyBase(metaclass=ProxyMetaclass):
SyntaxError: invalid syntax

But the test on Wiki can still be passed. I had also checked proxy_base.py mentioned above, but couldn't find a way to solve it.

So how can I fix this error? Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions