Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot override existing name #137

Closed
mottosso opened this issue Sep 15, 2016 · 0 comments
Closed

Cannot override existing name #137

mottosso opened this issue Sep 15, 2016 · 0 comments

Comments

@mottosso
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant