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

Segfault on multiple OS and Python versions #19

Closed
fabiomanz opened this issue Oct 13, 2024 · 2 comments
Closed

Segfault on multiple OS and Python versions #19

fabiomanz opened this issue Oct 13, 2024 · 2 comments

Comments

@fabiomanz
Copy link

Hi,

I cannot say exactly what the problem is, but when importing this library with PySide6, it causes a segfault: segmentation fault python -c "import pyqttoast"

Steps to reproduce

  1. python -m venv .venv Create a new isolated environment
  2. source .venv/bin/activate
  3. pip install pyqt-toast-notification
  4. pip install PySide6
  5. python -c "import pyqttoast"

Strangly if I change step 4 to pip install PyQt6, it works.

I have tried this on Ubuntu 20.04 and MacOS with Python 3.12.7 and Python 3.12.6.

With version 6.7.0 of PySide6 it still works (pip install PySide6==6.7.0).

Can you please take a look at this or give a hint what this problem is?

@niklashenning
Copy link
Owner

Hi, sorry for the late response.

I couldn't reproduce this issue on Windows, but I'm pretty sure it was caused by a bug in PySide6 version 6.8.0, which essentially broke the star imports (e.g., from PySide6.QtCore import *). This, in turn, affected QtPy, the wrapper for PyQt and PySide, which pyqttoast is using.
You can find the Qt bug report here and the QtPy issue here.

This should be fixed in PySide6 version 6.8.0.1, but I can't verify this right now as I was unable to reproduce this issue on my operating system.

@fabiomanz
Copy link
Author

Hi, thanks for the detailed response. I updated the PySide6 Version and it fixed the issue. Great to see where the issue originated from.

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

No branches or pull requests

2 participants