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

Basic example crashes when running without venv. #120

Open
HubKing opened this issue Apr 22, 2024 · 0 comments
Open

Basic example crashes when running without venv. #120

HubKing opened this issue Apr 22, 2024 · 0 comments

Comments

@HubKing
Copy link

HubKing commented Apr 22, 2024

Python version is 3.11.8-1. Arch Linux, Plasma 6.0.4, kernel 6.8.7. pyside6 6.7.0-3 and python-qasync 0.24.0-2 are installed from the official repository. If I run the "basic example" as it is, other than adding missing imports like

import sys
import asyncio

from qasync import QEventLoop, QApplication, asyncClose, asyncSlot
from PySide6.QtWidgets import QWidget, QVBoxLayout, QLabel

It crashes.

QWidget: Must construct a QApplication before a QWidget
Aborted (core dumped)

I created a venv that inherits system packages, removed system qasync, and installed only qasync in the venv. It crashed in the same way.

I created a venv without inheritance and installed only qasync and pyside6. This time, it worked.

@HubKing HubKing changed the title Basic example doesn't work. Aborted. Basic example crashes when running without venv. Apr 22, 2024
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

1 participant