-
Notifications
You must be signed in to change notification settings - Fork 39
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
Python 3.11 support #108
Comments
I tried the same workaround for pyqt6-tools. wget https://files.pythonhosted.org/packages/59/42/c5d942af97f9792a32029aca02055bce00d3b454be30a432bfb38a647a95/pyqt6_plugins-6.1.0.2.2-cp39-cp39-win_amd64.whl
mv pyqt6_plugins-6.1.0.2.2-cp39-cp39-win_amd64.whl pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
# overwrite `Requires-Dist: pyqt6` section from `Requires-Dist: pyqt6 (==6.1.0)` to `Requires-Dist: pyqt6` and `Requires-Dist: qt6-tools` section from `Requires-Dist: qt6-tools (<6.1.0.2,>=6.1.0.1.2)` to `Requires-Dist: qt6-tools` in pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl/pyqt6_plugins-6.1.0.2.2.dist-info/METADATA.
pip install pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
wget https://files.pythonhosted.org/packages/d0/5a/125c5c43772d4d94554e9c31ccca9645c5e69f1c7aba4e43d5b427dc4d42/pyqt6_tools-6.1.0.3.2-py3-none-any.whl
# change `Requires-Dist: pyqt6 (==6.1.0)` to `Requires-Dist: pyqt6` and `Requires-Dist: pyqt6-plugins (<6.1.0.3,>=6.1.0.2.2)` to `Requires-Dist: pyqt6-plugins` (remove the version limit for pyqt6 and pyqt6-plugins) in pyqt6_tools-6.1.0.3.2-py3-none-any.whl/pyqt6_tools-6.1.0.3.2.dist-info/METADATA
pip install pyqt6_tools-6.1.0.3.2-py3-none-any.whl C:\Users\Liu.D.H>python -V
Python 3.11.0
C:\Users\Liu.D.H>pip -V
pip 22.3.1 from C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)
C:\Users\Liu.D.H>pip install pyqt6
Collecting pyqt6
Downloading PyQt6-6.4.0-cp37-abi3-win_amd64.whl (6.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.4/6.4 MB 8.9 MB/s eta 0:00:00
Collecting PyQt6-sip<14,>=13.4
Downloading PyQt6_sip-13.4.0-cp311-cp311-win_amd64.whl (72 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.6/72.6 kB 4.2 MB/s eta 0:00:00
Collecting PyQt6-Qt6>=6.4.0
Downloading PyQt6_Qt6-6.4.1-py3-none-win_amd64.whl (50.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.5/50.5 MB 9.2 MB/s eta 0:00:00
Installing collected packages: PyQt6-Qt6, PyQt6-sip, pyqt6
Successfully installed PyQt6-Qt6-6.4.1 PyQt6-sip-13.4.0 pyqt6-6.4.0
C:\Users\Liu.D.H>pip install D:\Downloads\pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
Processing d:\downloads\pyqt6_plugins-6.1.0.2.2-py3-none-win_amd64.whl
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-plugins==6.1.0.2.2) (7.1.2)
Requirement already satisfied: pyqt6 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-plugins==6.1.0.2.2) (6.4.0)
Collecting qt6-tools
Downloading qt6_tools-6.1.0.1.2-py3-none-any.whl (13 kB)
Requirement already satisfied: PyQt6-sip<14,>=13.4 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-plugins==6.1.0.2.2) (13.4.0)
Requirement already satisfied: PyQt6-Qt6>=6.4.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-plugins==6.1.0.2.2) (6.4.1)
Collecting qt6-applications<6.1.0.3,>=6.1.0.2.2
Downloading qt6_applications-6.1.0.2.2-py3-none-win_amd64.whl (60.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.4/60.4 MB 9.1 MB/s eta 0:00:00
Installing collected packages: qt6-applications, qt6-tools, pyqt6-plugins
Successfully installed pyqt6-plugins-6.1.0.2.2 qt6-applications-6.1.0.2.2 qt6-tools-6.1.0.1.2
C:\Users\Liu.D.H>pip install pyqt6-tools
Collecting pyqt6-tools
Downloading pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB)
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools) (7.1.2)
Collecting pyqt6==6.1.0
Downloading PyQt6-6.1.0.tar.gz (946 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 946.9/946.9 kB 2.9 MB/s eta 0:00:00
Installing build dependencies ... canceled
ERROR: Operation cancelled by user
C:\Users\Liu.D.H>pip install D:\Downloads\pyqt6_tools-6.1.0.3.2-py3-none-any.whl
Processing d:\downloads\pyqt6_tools-6.1.0.3.2-py3-none-any.whl
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (7.1.2)
Requirement already satisfied: pyqt6 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (6.4.0)
Requirement already satisfied: pyqt6-plugins in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (6.1.0.2.2)
Requirement already satisfied: python-dotenv in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-tools==6.1.0.3.2) (0.21.0)
Requirement already satisfied: PyQt6-sip<14,>=13.4 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-tools==6.1.0.3.2) (13.4.0)
Requirement already satisfied: PyQt6-Qt6>=6.4.0 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6->pyqt6-tools==6.1.0.3.2) (6.4.1)
Requirement already satisfied: qt6-tools in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from pyqt6-plugins->pyqt6-tools==6.1.0.3.2) (6.1.0.1.2)
Requirement already satisfied: qt6-applications<6.1.0.3,>=6.1.0.2.2 in c:\users\liu.d.h\appdata\local\programs\python\python311\lib\site-packages (from qt6-tools->pyqt6-plugins->pyqt6-tools==6.1.0.3.2) (6.1.0.2.2)
Installing collected packages: pyqt6-tools
Successfully installed pyqt6-tools-6.1.0.3.2
C:\Users\Liu.D.H>python -c "import PyQt6"
C:\Users\Liu.D.H> |
Same issue here! |
|
Thank you, it works well! I regret that current developer doesn't use this library. It doesn't make update properly. |
I'm trying to make it to a new release. #110 But yes, libraries maintained by people that don't use them aren't great. At least not when they tend to hit all sorts of goofy corner cases when new versions of three major dependencies come out. (Python, PyQt, and Qt) Having other people step up and add CI coverage for new dependency releases and then debug and fix them would be a great help. Anyways, sorry for the hassle all. Hopefully this time I actually manage to get all the way to a release. Also, if you don't need the plugins and just want the qt applications, consider the |
Though yes, even those are behind and not providing the latest Qt application versions. |
Hey all, this is a common note I'm adding to several issues. I apologize for the hassle you have all dealt with around this project. I don't work with Qt anymore and every time I've come back to this I have run into various problems trying to get it going again. This time I made it through the five days of work to get the release out (fingers crossed that it actually works). It would be great to get some community involvement around updating and debugging whatever issues come up. Maybe the next Python, Qt, or PyQt release will provide an opportunity for someone to offer that. Maybe I'll find time to continue cleaning this up so it's a bit more maintainable. If interested, there's been some discussion about the project at #110. In an effort to make it easier to monitor issues around the latest release I am closing this issue. Discussion can continue if still applicable, but I want to make it easier to move forward. If there are issues with the new releases, please open new issues. Things to be aware of that may ease some cases:
|
I update my python to 3.11 recently, now I try to install
pyqt5
andpyqt5-tools
. Thepyqt5
installation is success, butpyqt5-tools
is failed with the the similar errors when I install on python 3.10.So I tried the same workaround I commented on #98 (comment) which I used on python 3.10.
But it failed with the following errors.
pip install D:\Downloads\pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl
I have to overwrite
Requires-Dist: pyqt5
section fromRequires-Dist: pyqt5 (==5.15.4)
toRequires-Dist: pyqt5
in pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl/pyqt5_plugins-5.15.4.2.2.dist-info/METADATA.Then install again, I can install
pyqt5-tools
successfully now.pip install D:\Downloads\pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl
pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.zip
The text was updated successfully, but these errors were encountered: