-
Notifications
You must be signed in to change notification settings - Fork 256
Closed
Labels
Description
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.