-
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.10 support? #98
Comments
Nothing yet, sorry. I need to make time to take a pass through all four layers adding 3.10 and latest Qt 6. Of course, macOS now has two architectures that they package together so I need a PyPI file size limit increase. Also, the build matrix got too big for GitHub Actions' 256 job limit so I need to drop builds for some older versions. Thanks for your interest and my apologies for the wait. |
Thanks for the reply, i'll be waiting for new releases soon and keep working with python 3.9. Closed |
I'd leave this open for others to see. The question was answered but the support isn't here yet. |
Additionally, PyPi version requires PyQt5 5.15.4 while only 5.15.5 is compatible with Python 3.10. Pyqt5-plugins also need to be updated. Workaround: Remove all PyQt5 software. Download from PyPi file PyQt5-5.15.4-cp36.cp37.cp38.cp39-none-win_amd64.whl. Download from PyPi file pyqt5_plugins-5.15.4.2.2-cp39-cp39-win_amd64.whl. Install pyqt5-tools by pip form PyPi. |
Thanks, I tried your hacks. It seems installed successfully now. D:\Downloads>pip install PyQt5-5.15.4-py3-none-win_amd64.whl
Processing d:\downloads\pyqt5-5.15.4-py3-none-win_amd64.whl
Requirement already satisfied: PyQt5-sip<13,>=12.8 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from PyQt5==5.15.4) (12.9.1)
Requirement already satisfied: PyQt5-Qt5>=5.15 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from PyQt5==5.15.4) (5.15.2)
Installing collected packages: PyQt5
Successfully installed PyQt5-5.15.4
D:\Downloads>pip install pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl
Processing d:\downloads\pyqt5_plugins-5.15.4.2.2-py3-none-win_amd64.whl
Collecting click
Using cached click-8.0.4-py3-none-any.whl (97 kB)
Collecting qt5-tools<5.15.2.2,>=5.15.2.1.2
Downloading qt5_tools-5.15.2.1.2-py3-none-any.whl (13 kB)
Requirement already satisfied: pyqt5==5.15.4 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt5-plugins==5.15.4.2.2) (5.15.4)
Requirement already satisfied: PyQt5-sip<13,>=12.8 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt5==5.15.4->pyqt5-plugins==5.15.4.2.2) (12.9.1)
Requirement already satisfied: PyQt5-Qt5>=5.15 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt5==5.15.4->pyqt5-plugins==5.15.4.2.2) (5.15.2)
Collecting click
Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.8/82.8 KB 665.5 kB/s eta 0:00:00
Collecting qt5-applications<5.15.2.3,>=5.15.2.2.2
Downloading qt5_applications-5.15.2.2.2-py3-none-win_amd64.whl (60.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 MB 6.4 MB/s eta 0:00:00
Installing collected packages: qt5-applications, click, qt5-tools, pyqt5-plugins
Successfully installed click-7.1.2 pyqt5-plugins-5.15.4.2.2 qt5-applications-5.15.2.2.2 qt5-tools-5.15.2.1.2
D:\Downloads>pip install pyqt5-tools
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl (29 kB)
Requirement already satisfied: pyqt5==5.15.4 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt5-tools) (5.15.4)
Collecting python-dotenv
Using cached python_dotenv-0.19.2-py2.py3-none-any.whl (17 kB)
Requirement already satisfied: pyqt5-plugins<5.15.4.3,>=5.15.4.2.2 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt5-tools) (5.15.4.2.2)
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt5-tools) (7.1.2)
Requirement already satisfied: PyQt5-sip<13,>=12.8 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt5==5.15.4->pyqt5-tools) (12.9.1)
Requirement already satisfied: PyQt5-Qt5>=5.15 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt5==5.15.4->pyqt5-tools) (5.15.2)
Requirement already satisfied: qt5-tools<5.15.2.2,>=5.15.2.1.2 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt5-plugins<5.15.4.3,>=5.15.4.2.2->pyqt5-tools) (5.15.2.1.2)
Requirement already satisfied: qt5-applications<5.15.2.3,>=5.15.2.2.2 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from qt5-tools<5.15.2.2,>=5.15.2.1.2->pyqt5-plugins<5.15.4.3,>=5.15.4.2.2->pyqt5-tools) (5.15.2.2.2)
Installing collected packages: python-dotenv, pyqt5-tools
Successfully installed pyqt5-tools-5.15.4.3.2 python-dotenv-0.19.2
D:\Downloads> |
In such way, I can remove C:\Users\Liu.D.H>pip uninstall PyQt5Designer
Found existing installation: PyQt5Designer 5.14.1
Uninstalling PyQt5Designer-5.14.1:
Would remove:
c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages\pyqt5designer-5.14.1.dist-info\*
c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages\qtdesigner\*
c:\users\liu.d.h\appdata\local\programs\python\python310\scripts\designer.exe
c:\users\liu.d.h\appdata\local\programs\python\python310\scripts\linguist.exe
c:\users\liu.d.h\appdata\local\programs\python\python310\scripts\qmlview.exe
Proceed (Y/n)?
Successfully uninstalled PyQt5Designer-5.14.1
C:\Users\Liu.D.H> |
I also tried this method for install pyqt6 and pyqt6-tools. D:\Downloads>pip install pyqt6
Collecting pyqt6
Downloading PyQt6-6.2.3-cp36-abi3-win_amd64.whl (6.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 8.8 MB/s eta 0:00:00
Collecting PyQt6-Qt6>=6.2.3
Downloading PyQt6_Qt6-6.2.3-py3-none-win_amd64.whl (44.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.3/44.3 MB 7.8 MB/s eta 0:00:00
Collecting PyQt6-sip<14,>=13.2
Downloading PyQt6_sip-13.2.1-cp310-cp310-win_amd64.whl (71 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 71.5/71.5 KB 972.6 kB/s eta 0:00:00
Installing collected packages: PyQt6-Qt6, PyQt6-sip, pyqt6
Successfully installed PyQt6-Qt6-6.2.3 PyQt6-sip-13.2.1 pyqt6-6.2.3
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)
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 ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-1ob6si3l\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-1ob6si3l\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-1ob6si3l\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
self.apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-ae7pa7a1\pyqt6_eb834344bcbf42b79bfb789f44b16f69\project.py", line 60, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-1ob6si3l\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-1ob6si3l\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-1ob6si3l\overlay\Lib\site-packages\pyqtbuild\builder.py", line 67, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
D:\Downloads>pip install PyQt6==6.1.0
Collecting PyQt6==6.1.0
Using cached PyQt6-6.1.0.tar.gz (946 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [29 lines of output]
Traceback (most recent call last):
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\Liu.D.H\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-jqfgw2xj\overlay\Lib\site-packages\sipbuild\api.py", line 51, in build_wheel
project = AbstractProject.bootstrap('pep517')
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-jqfgw2xj\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 83, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-jqfgw2xj\overlay\Lib\site-packages\sipbuild\project.py", line 594, in setup
self.apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-luh6vdjm\pyqt6_cae5baf00ec5444eaa2150fa96004ea7\project.py", line 60, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-jqfgw2xj\overlay\Lib\site-packages\pyqtbuild\project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-jqfgw2xj\overlay\Lib\site-packages\sipbuild\project.py", line 241, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\Liu.D.H\AppData\Local\Temp\pip-build-env-jqfgw2xj\overlay\Lib\site-packages\pyqtbuild\builder.py", line 67, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
D:\Downloads>
D:\Downloads>pip uninstall PyQt6
......
c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages\pyqt6\Qt6\translations\qtwebsockets_pl.qm
c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages\pyqt6\Qt6\translations\qtwebsockets_ru.qm
c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages\pyqt6\Qt6\translations\qtwebsockets_uk.qm
c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages\pyqt6\sip.cp310-win_amd64.pyd
Proceed (Y/n)? y
Successfully uninstalled PyQt6-6.2.3
D:\Downloads># wget https://files.pythonhosted.org/packages/ec/a6/f7807ca2d41b99a451fab83eee4f2f8afab3272cdbc82a17a2a093c12426/PyQt6-6.1.0-cp36.cp37.cp38.cp39-none-win_amd64.whl
D:\Downloads># wget https://files.pythonhosted.org/packages/59/42/c5d942af97f9792a32029aca02055bce00d3b454be30a432bfb38a647a95/pyqt6_plugins-6.1.0.2.2-cp39-cp39-win_amd64.whl
D:\Downloads>mv PyQt6-6.1.0-cp36.cp37.cp38.cp39-none-win_amd64.whl PyQt6-6.1.0-py3-none-win_amd64.whl
D:\Downloads>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
D:\Downloads>pip install PyQt6-6.1.0-py3-none-win_amd64.whl
Processing d:\downloads\pyqt6-6.1.0-py3-none-win_amd64.whl
Requirement already satisfied: PyQt6-Qt6>=6.1.0 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from PyQt6==6.1.0) (6.2.3)
Requirement already satisfied: PyQt6-sip<14,>=13.1 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from PyQt6==6.1.0) (13.2.1)
Installing collected packages: PyQt6
Successfully installed PyQt6-6.1.0
D:\Downloads>pip install 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: pyqt6==6.1.0 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt6-plugins==6.1.0.2.2) (6.1.0)
Collecting qt6-tools<6.1.0.2,>=6.1.0.1.2
Downloading qt6_tools-6.1.0.1.2-py3-none-any.whl (13 kB)
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt6-plugins==6.1.0.2.2) (7.1.2)
Requirement already satisfied: PyQt6-sip<14,>=13.1 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt6==6.1.0->pyqt6-plugins==6.1.0.2.2) (13.2.1)
Requirement already satisfied: PyQt6-Qt6>=6.1.0 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt6==6.1.0->pyqt6-plugins==6.1.0.2.2) (6.2.3)
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 5.7 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
D:\Downloads>pip install PyQt6-tools
Collecting PyQt6-tools
Using cached pyqt6_tools-6.1.0.3.2-py3-none-any.whl (29 kB)
Requirement already satisfied: pyqt6==6.1.0 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from PyQt6-tools) (6.1.0)
Requirement already satisfied: click in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from PyQt6-tools) (7.1.2)
Requirement already satisfied: python-dotenv in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from PyQt6-tools) (0.19.2)
Requirement already satisfied: pyqt6-plugins<6.1.0.3,>=6.1.0.2.2 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from PyQt6-tools) (6.1.0.2.2)
Requirement already satisfied: PyQt6-Qt6>=6.1.0 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt6==6.1.0->PyQt6-tools) (6.2.3)
Requirement already satisfied: PyQt6-sip<14,>=13.1 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt6==6.1.0->PyQt6-tools) (13.2.1)
Requirement already satisfied: qt6-tools<6.1.0.2,>=6.1.0.1.2 in c:\users\liu.d.h\appdata\local\programs\python\python310\lib\site-packages (from pyqt6-plugins<6.1.0.3,>=6.1.0.2.2->PyQt6-tools) (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\python310\lib\site-packages (from qt6-tools<6.1.0.2,>=6.1.0.1.2->pyqt6-plugins<6.1.0.3,>=6.1.0.2.2->PyQt6-tools) (6.1.0.2.2)
Installing collected packages: PyQt6-tools
Successfully installed PyQt6-tools-6.1.0.3.2
D:\Downloads> |
its not working |
This rename method did not work for me. I'm using: Any help to get this working will be appreciated. |
Well, seems like I have crashed into another wall trying to install pyqt6-tools this way after these months. ''' CZ@DarkTitan MINGW64 / |
Please were you able to solve it cus I'm facing the same problem sir |
I'm also facing the same issues 💔💔💔😭😭 |
Everytime I start the method to trouble shoot my errors regarding pyQT I get C:\Users\admin>pip install PyQt5-5.15.4-py3-none-win_amd64.whl |
I was able to solve why I'm getting the warning error above. |
Now I'm only getting this error ERROR: PyQt5-5.15.4-py3-none-win_amd64.whl is not a supported wheel on this platform. |
Ok so I found a pretty decent work around. Downloading PySide2. It has everything that pyqt5-tools has from what I read and
Ok so I found a pretty decent work around. Downloading PySide2. It has everything that pyqt5-tools has from what I read and if you're looking for the Qt designer app specifically it is found in the PySide2 folder once it is downloaded. Also If you create a GUI from the designer app and then try to export it as python code and it throws an error, you have to create a "bin" folder and then move the "uic" executable, that is already in the PySide2 folder, to the "bin" folder. Then you should be able to export the UI as python or c++ code. |
Yes, finally fixed! You just need to do what he said in another post: Steps:
I was having the same problem and this worked for me, installed pyqt6 on python 3.11. |
Its working for me now! You just need to do what he said in another post for pyqt5, but addapted to pyqt6: Steps:
I was having the same problem and this worked for me, installed pyqt6 on python 3.11. |
On python 3.10.6 this worked for me with only PATH related warnings in the end
|
I'm trying to get an updated release... #110 Also, if you don't need the plugins and just want the Qt applications, consider the |
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:
|
Worked for me, TYSM ! |
Hello!
Is there any support for python 3.10?
I tried to install pyqt5-tools with python 3.10 but it throw me an error, but when i tried with python 3.9.7 it worked.
The text was updated successfully, but these errors were encountered: