PyQt6 support?
See original GitHub issueI tried editing __init__.py
mimicking PyQt5
, copy-pasting and changing to PyQt6
where relevant, but running the aiohttp example using PyQt6.QtWidgets
ends up with this:
Traceback (most recent call last):
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/asyncio/selector_events.py", line 261, in _add_reader
key = self._selector.get_key(fd)
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/selectors.py", line 193, in get_key
raise KeyError("{!r} is not registered".format(fileobj)) from None
KeyError: '6 is not registered'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/willyjl/Coding/spicetify-easyinstall/test.py", line 95, in <module>
qasync.run(main())
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/site-packages/qasync/__init__.py", line 797, in run
return asyncio.run(*args, **kwargs)
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/asyncio/runners.py", line 39, in run
loop = events.new_event_loop()
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/asyncio/events.py", line 761, in new_event_loop
return get_event_loop_policy().new_event_loop()
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/site-packages/qasync/__init__.py", line 775, in new_event_loop
return QEventLoop(QApplication(sys.argv))
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/site-packages/qasync/__init__.py", line 335, in __init__
super().__init__()
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/site-packages/qasync/_unix.py", line 198, in __init__
asyncio.SelectorEventLoop.__init__(self, selector)
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/asyncio/unix_events.py", line 54, in __init__
super().__init__(selector)
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/asyncio/selector_events.py", line 61, in __init__
self._make_self_pipe()
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/asyncio/selector_events.py", line 112, in _make_self_pipe
self._add_reader(self._ssock.fileno(), self._read_from_self)
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/asyncio/selector_events.py", line 263, in _add_reader
self._selector.register(fd, selectors.EVENT_READ,
File "/home/willyjl/.pyenv/versions/3.9.6/lib/python3.9/site-packages/qasync/_unix.py", line 112, in register
notifier = QtCore.QSocketNotifier(key.fd, QtCore.QSocketNotifier.Read)
AttributeError: type object 'QSocketNotifier' has no attribute 'Read'
sys:1: RuntimeWarning: coroutine 'main' was never awaited
Is PyQt6
support planned? Am I missing something?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
PyQt6 - PyPI
PyQt6 is a comprehensive set of Python bindings for Qt v6. It is implemented as more than 35 extension modules and enables Python...
Read more >Installing PyQt6 on Windows - Python GUIs
Install PyQt6 on Windows 10 & 11. Before you start coding you will first need to have a working installation of PyQt6 on...
Read more >PyQt6 support : PY-51291 - JetBrains YouTrack
Since I upgraded my project from PyQt5 to PyQt6 (because only Qt6 runs on Apple Silicon), I can no longer stop at breakpoints...
Read more >Qt for Python 6 released
Another important update is that we support Python 3.9, and we have raised the minimum version to 3.6. We have performed a "Python...
Read more >Require help installing pyqt6 - python - Stack Overflow
I have been trying to install pyqt6 on my linux device! tried running: pip install pyqt6 pip3 install pyqt6 python -m pip install...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Willy-JL I have created a PR #53 that supports PyQt6, hopefully it will be accepted soon.
Until my PR is accepted you could install my version through the command:
PyQt6 isn’t fully supported yet, sorry. Some changes were made for PyQt6 but it’s incomplete. I can’t really say when/if I’ll have time to finish it.