eoyilmaz / displaycal-py3

DisplayCAL Modernization Project
https://eoyilmaz.github.io/displaycal-py3/
GNU General Public License v3.0
698 stars 55 forks source link

Error installing with pip using Python 3.12 #358

Open AndreiVernon opened 2 months ago

AndreiVernon commented 2 months ago

Hi, I'm getting the following error when installing with pip using python 3.12:

C:\Users\USER>pip install displaycal
Collecting displaycal
  Using cached DisplayCAL-3.9.12.tar.gz (10.7 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      <string>:20: DeprecationWarning: 'msilib' is deprecated and slated for removal in Python 3.13
      ['egg_info']
      *** C:\Program Files\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py egg_info
      using distutils
      desktopfile: C:\Users\USER\AppData\Local\Temp\pip-install-j1kbqwbl\displaycal_49b9134325e84b8786d8aea9986d6d08\DisplayCAL\..\misc\displaycal.desktop
      desktopfile: C:\Users\USER\AppData\Local\Temp\pip-install-j1kbqwbl\displaycal_49b9134325e84b8786d8aea9986d6d08\DisplayCAL\..\misc\displaycal-3dlut-maker.desktop
      desktopfile: C:\Users\USER\AppData\Local\Temp\pip-install-j1kbqwbl\displaycal_49b9134325e84b8786d8aea9986d6d08\DisplayCAL\..\misc\displaycal-apply-profiles.desktop
      desktopfile: C:\Users\USER\AppData\Local\Temp\pip-install-j1kbqwbl\displaycal_49b9134325e84b8786d8aea9986d6d08\DisplayCAL\..\misc\displaycal-curve-viewer.desktop
      desktopfile: C:\Users\USER\AppData\Local\Temp\pip-install-j1kbqwbl\displaycal_49b9134325e84b8786d8aea9986d6d08\DisplayCAL\..\misc\displaycal-profile-info.desktop
      desktopfile: C:\Users\USER\AppData\Local\Temp\pip-install-j1kbqwbl\displaycal_49b9134325e84b8786d8aea9986d6d08\DisplayCAL\..\misc\displaycal-scripting-client.desktop
      desktopfile: C:\Users\USER\AppData\Local\Temp\pip-install-j1kbqwbl\displaycal_49b9134325e84b8786d8aea9986d6d08\DisplayCAL\..\misc\displaycal-synthprofile.desktop
      desktopfile: C:\Users\USER\AppData\Local\Temp\pip-install-j1kbqwbl\displaycal_49b9134325e84b8786d8aea9986d6d08\DisplayCAL\..\misc\displaycal-testchart-editor.desktop
      desktopfile: C:\Users\USER\AppData\Local\Temp\pip-install-j1kbqwbl\displaycal_49b9134325e84b8786d8aea9986d6d08\DisplayCAL\..\misc\displaycal-vrml-to-x3d-converter.desktop
      error: package directory 'DisplayCAL\lib64\python312' does not exist
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Is python 3.12 not supported by the program yet? If this is the case, are there any plans to support it in the future? Thank you.

ColorfanXP commented 1 month ago

Im getting the same error and I'm using python 3.10

p5k369 commented 1 month ago

Hey @AndreiVernon, indeed the package provided by pypi does not support python 3.12 atm, that is because wxPython (the gui framework, displaycal heavily relies on, does not support python-3.12 properly atm). However you can just use the "develop" branch and should be able to run displaycal with python-3.12 if you don't mind displaycal not exiting properly. You can read about it here: https://github.com/wxWidgets/Phoenix/issues/2455 @ColorfanXP are you sure you getting the exact same error?

eoyilmaz commented 3 weeks ago

@AndreiVernon DisplayCAL + Python 3.12 under Windows will not install at all. Try using Python 3.11, but I fixed Windows version just recently, you need to build from source, you can follow the Menual Setup (Windows) section...

or just wait until I release 3.9.13 around one or two weeks...