Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot override existing name #137

@mottosso

Description

@mottosso

The error produced when Qt.py is attempting to override members that isn't officially part of a binding, but for one reason or another is there anyway.

AttributeError: Cannot override existing name: PySide.QtWidgets # 
# Error: AttributeError: Cannot override existing name: PySide.QtWidgets # 

Solution

Offer the user an option to disable this check.

$ export QT_ALLOW_OVERRIDES=true
$ python -c "import Qt"

Alternative

Another option is to disable run-time checking of this kind altogether, and save it for testing-only. These things do not change at run-time, and are unlikely to change across bindings and versions of bindings.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions