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
modalSession exits prematurely #3
Comments
I'm downloading/installing Python 2 as a conda environment so that I can run the tests and see if I can fix this. |
I can not reproduce this bug.
|
Explanation about the inner decorator mentioned when this issue was first open. The logic of the inner decorator can be greatly simplified if one does not call set_locale or select_language; Without these two, the code for the inner decorator would simply be:
set_locale() and select_language() require that an app instance be passed as one So, the simple version of the inner decorator above changes so as to first add "app" as one of the kwargs and try running the function; if "app" was not a valid keyword argument in the first place, and exception is caught. With Python 3.3+, there is a way to find out if "app" was indeed an expected keyword argument. For earlier version, we just assume that the exception was raised for this reason; for Python 3.3, we examine to see if the unexpected "app" was the reason for the exception: if it looks like it, we just run the program again, otherwise we raise the exception. |
This issue might be mac-specific: https://bugreports.qt-project.org/browse/QTBUG-37699 |
I know that Python 3 is the intended version to use, and testing is done on 3.4. Things seems to work with Python 2.7.8, and it would be nice if they did. But I typically get the warning / error message below.
I get the same thing when calling that code as a script. Any ideas? I see the
with_app
decorator but just looking at it can't follow the logic of the inner_decorator
.The text was updated successfully, but these errors were encountered: