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

Improve ctk & qt python packages to avoid segfault when imported from standalone python #1072

Merged
merged 2 commits into from
Mar 15, 2023

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Mar 14, 2023

Since importing a PythonQt-based module outside of a Qt application leads to a segfault, skip the import if it happens in a standalone python interpreter.

This issue was discovered while working on the following:

Note that we may revisit this once the integration of the following pull-request has been finalized:

@jcfr jcfr changed the title Improve ctk qt python to fix crash Improve ctk & qt python package to avoid segfault when imported from standalone python Mar 14, 2023
@jcfr jcfr changed the title Improve ctk & qt python package to avoid segfault when imported from standalone python Improve ctk & qt python packages to avoid segfault when imported from standalone python Mar 14, 2023
…e python

Since importing a PythonQt-based module outside of a Qt application
leads to a segfault, skip the import if it happens in a standalone
python interpreter.

See commontk#520
@jcfr jcfr force-pushed the improve-ctk-qt-python-to-fix-crash branch from da08630 to cbc2c9b Compare March 15, 2023 01:35
@jcfr jcfr merged commit a203172 into commontk:master Mar 15, 2023
@jcfr jcfr deleted the improve-ctk-qt-python-to-fix-crash branch March 15, 2023 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant