-
Notifications
You must be signed in to change notification settings - Fork 182
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
Support Python 3.10 #161
Support Python 3.10 #161
Conversation
This is also blocking support for ubuntu 22.04. |
I was being blocked by a broken shiboken2 depedency on an m1 mac. Were you stuck on that as well and is that the reason why you decided to #164? @gmarmstrong |
Yep, that's right @deeplow. |
@gmarmstrong not sure what was the reason for pinning the python micro version (e.g. python 3.9.9). I should not that my testing was performed on python 3.10.6 and not on the 3.10.4. Furthermore, I tested this on an Intel mac and it works fine but on windows it has a dependency issues on windows. I have opened PRs on your branch for this. New dependency issue on Windows
The solution is explained in the error message: install Microsoft Visual C++ 14.0 or greater by downloading the "Microsoft C++ Build Tools" and checking the following option: Note: This is exclusively a dev dependency issue as is builds a |
I agree with not pinning the patch version, and I'll take your word for the Windows fix. Looks good to me, merged on my end. |
@gmarmstrong when you have a chance can you rebase from the main branch so we can see if the CI passes? edit: wait. I think this is something I can do. |
The CI passes (it just needed a rebase). |
58aee46
to
4ec0b76
Compare
I have rebased this now |
Just testing this again on a Windows and MacOS before merging. |
Update: turns out this was an issue with poetry and not python3.10 PS C:\Users\user\dangerzone> poetry run .\install\windows\build-image.py
OSError
[WinError 193] %1 is not a valid Win32 application
at ~\AppData\Local\Programs\Python\Python310\lib\subprocess.py:1438 in _execute_child
1434│ sys.audit("subprocess.Popen", executable, args, cwd, env)
1435│
1436│ # Start the process
1437│ try:
→ 1438│ hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
1439│ # no special security
1440│ None, None,
1441│ int(not close_fds),
1442│ creationflags, |
Ready to be merged @apyrgio do you have your OK? |
The changes look good to me. I haven't tested it on Windows though. If you haven't, I can check it out on Monday. |
PySide2 5.15.2.1 added support for Python 3.10
On a windows system when running `pip install` it fails to install `cx_Logging-3.0` with the error: error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ Installing this dependency solves the issue.
We might have moved too soon with this. Apparently some machines in the CI don't yet have python 3.10. https://app.circleci.com/pipelines/github/freedomofpress/dangerzone/508/workflows/babd9a00-4a5e-47c7-b820-97b1f2270c87/jobs/2276 |
Bump PySide2 to 5.15.2.1, which added support for Python 3.10.