-
Notifications
You must be signed in to change notification settings - Fork 60
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
Fix Windows build and runtime on Python 3.11.4 #312
Conversation
Fixes: - Runtime on Python 3.11 - Setuptools, tested with 3.11.4 - Missing pywin32 dependency - Lock file mishandling on Windows Not included yet: - Executable creation, needs bigger rework of either pyinstaller or py2exe
Hey @AstralStorm, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to submit...
…andling The support for 3.12 has not been validated yet, especially on Windows. Fix a mistake in version handling code in the same place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your PR. Note that validation for 3.12 is only half the reason, mainly it is because the environment has to be prepared to build the C-extensions otherwise building them will fail. See #16 if you are interested.
Thanks for your work on this, AstralStorm. I got the develop branch to at least run in development mode, but not completely. In the end I just went back to using the old 2.x install to actually calibrate this new system, but I thought I'd mention where I got to. The readme is (understandably) a little focused towards Linux, but I figured out that I needed the MS Build Tools with Visual C++ compiler and the Windows SDK (when io.h was not found). From a "trying to get this working without any python dev experience" perspective, it would've been useful to have I also encountered 'no module named' errors for comtypes and wmi (so it actually seems to need After installing comtypes I still got a warning about the lack of Failure to make HTTP requests might also be why when trying to install the id3 colorimeter correction failed, unless I downloaded manually and selected it from a file - the DisplayCAL dl directory mentioned did not appear to exist and running oeminst as admin gave Unfortunately spawning failed e.g. ambient reading with ArgyllCMS 3.1.0 x64 (x86 didn't seem better) with what looked like a Unicode/string conversion error.
I tried to add It seems that dealing with wexpect is on the roadmap. https://pypi.org/project/winpexpect/ seems to have a old commit geertj/winpexpect@126ba45 which claims Python 3 support. However trying to incorporate the changes proposed did not seem to help much with this issue. I guess https://pypi.org/project/wexpect/ / https://github.com/raczben/wexpect is the refactored option? |
I was able to get past this issue by ensuring everything passed into
As a result, I encounter this screen but it shortly closes Edit: Idk if this is making things worse or better but instead of converting everything to string from binary, I only converted self.cwd. This time when I launch Calibrate & Profile, I get these errors/messages and the window shown in the screenshot instantly closes:
|
If anyone else experiences this issue, can you try passing in self.cwd.decode("utf-8") instead of self.cwd to the |
Hi, I made you change and the dispread.exe is not closing
self.cwd --> cwd=self.cwd.decode("utf-8") line 1840 at wexpect.py but now i am stack at DisplayCal: checking subprocess status the new windows is not frozen i can mute and un mute, but i am stack at this message the calibration windows goes from white to gray, but to process from there |
also i am also having the bellow warning/ error No module named 'comtypes.gen' . but i have install comtypes
`Connecting to 15411... Connection to 127.0.0.1:15411 failed: [WinError 10061] No connection could be made because the target machine actively refused it No module named 'comtypes.gen' Starting up... Audio module: wx 4.2.1 Enumerating display devices and communication ports...` |
Fixes:
Not included yet: