Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
DisplayCal, python2 et python3
#96
(16-05-22, 11:10)ignace72 a écrit : Pardon, la version 3.9.4 de DisplayCAL vient de sortir.

Une procédure de mise à jour (/opt notamment) ?

En reinstallant cette nouvelle version (à côté de la précédente) :
Code :
root@8570w:/opt/displaycal# python3 -m venv ./displaycal_venv && source ./displaycal_venv/bin/activate && cd ./displaycal-py3/ && pip3 install -r requirements.txt && python3 -m build &&  pip3 install dist/DisplayCAL-3.9.*.whl
Collecting build
  Using cached build-0.7.0-py3-none-any.whl (16 kB)
Collecting certifi
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
     |████████████████████████████████| 149 kB 1.5 MB/s
Collecting dbus-python
  Downloading dbus-python-1.2.18.tar.gz (578 kB)
     |████████████████████████████████| 578 kB 874 kB/s
Collecting distro
  Downloading distro-1.7.0-py3-none-any.whl (20 kB)
Collecting numpy
  Downloading numpy-1.22.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB)
     |████████████████████████████████| 16.8 MB 3.5 MB/s
Collecting Pillow
  Downloading Pillow-9.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB)
     |████████████████████████████████| 4.3 MB 3.2 MB/s
Collecting PyChromecast
  Downloading PyChromecast-12.1.2-py2.py3-none-any.whl (62 kB)
     |████████████████████████████████| 62 kB 502 kB/s
Collecting Send2Trash
  Using cached Send2Trash-1.8.0-py3-none-any.whl (18 kB)
Collecting wxPython
  Using cached wxPython-4.1.1.tar.gz (66.0 MB)
Collecting zeroconf
  Downloading zeroconf-0.38.6-py3-none-any.whl (106 kB)
     |████████████████████████████████| 106 kB 3.6 MB/s
Collecting packaging>=19.0
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 2.5 MB/s
Collecting tomli>=1.0.0
  Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting pep517>=0.9.1
  Using cached pep517-0.12.0-py2.py3-none-any.whl (19 kB)
Collecting casttube>=0.2.0
  Using cached casttube-0.2.1-py3-none-any.whl (6.5 kB)
Collecting protobuf>=3.19.1
  Using cached protobuf-3.20.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
Collecting six
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting ifaddr>=0.1.7
  Downloading ifaddr-0.1.7-py2.py3-none-any.whl (10 kB)
Collecting pyparsing!=3.0.5,>=2.0.2
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
     |████████████████████████████████| 98 kB 2.5 MB/s
Collecting requests
  Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
     |████████████████████████████████| 63 kB 1.2 MB/s
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
     |████████████████████████████████| 138 kB 3.3 MB/s
Collecting charset-normalizer~=2.0.0; python_version >= "3"
  Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5; python_version >= "3"
  Downloading idna-3.3-py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 2.3 MB/s
Building wheels for collected packages: dbus-python, wxPython
  Building wheel for dbus-python (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/displaycal/displaycal_venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9au2cct/dbus-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_9au2cct/dbus-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-fjcjat2l
       cwd: /tmp/pip-install-_9au2cct/dbus-python/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
 
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for dbus-python
  Running setup.py clean for dbus-python
  Building wheel for wxPython (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/displaycal/displaycal_venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9au2cct/wxPython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_9au2cct/wxPython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-qiickxbh
       cwd: /tmp/pip-install-_9au2cct/wxPython/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
 
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for wxPython
  Running setup.py clean for wxPython
Failed to build dbus-python wxPython
Installing collected packages: pyparsing, packaging, tomli, pep517, build, certifi, dbus-python, distro, numpy, Pillow, ifaddr, zeroconf, urllib3, charset-normalizer, idna, requests, casttube, protobuf, PyChromecast, Send2Trash, six, wxPython
    Running setup.py install for dbus-python ... done
    Running setup.py install for wxPython ... done
Successfully installed Pillow-9.1.0 PyChromecast-12.1.2 Send2Trash-1.8.0 build-0.7.0 casttube-0.2.1 certifi-2021.10.8 charset-normalizer-2.0.12 dbus-python-1.2.18 distro-1.7.0 idna-3.3 ifaddr-0.1.7 numpy-1.22.3 packaging-21.3 pep517-0.12.0 protobuf-3.20.1 pyparsing-3.0.9 requests-2.27.1 six-1.16.0 tomli-2.0.1 urllib3-1.26.9 wxPython-4.1.1 zeroconf-0.38.6
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools)
* Getting dependencies for sdist...
Trying to get git version information...
Trying to get git information...
Generating __version__.py
Version 3.9.4


[Nombreuses lignes puis...]

Installing collected packages: DisplayCAL
Successfully installed DisplayCAL-3.9.4
Comme on le voit, après les downloads, deux erreurs :
Code :
Building wheels for collected packages: dbus-python, wxPython
  Building wheel for dbus-python (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/displaycal/displaycal_venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9au2cct/dbus-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_9au2cct/dbus-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-fjcjat2l
       cwd: /tmp/pip-install-_9au2cct/dbus-python/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
 
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for dbus-python
  Running setup.py clean for dbus-python
  Building wheel for wxPython (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /opt/displaycal/displaycal_venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9au2cct/wxPython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_9au2cct/wxPython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-qiickxbh
       cwd: /tmp/pip-install-_9au2cct/wxPython/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
 
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for wxPython
  Running setup.py clean for wxPython

Beaucoup plus loin d'autres erreurs, à retrouver dans ce log complet...

Au final, displaycal se lance, pas certain que toutes les fonctionnalités soient bien là. Big Grin
dt stable / Ubuntu 22.04
Répondre


Messages dans ce sujet
DisplayCal, python2 et python3 - par chloma - 25-01-22, 23:13
RE: DisplayCal, python2 et python3 - par manu - 16-05-22, 12:07

Atteindre :


Utilisateur(s) parcourant ce sujet : 7 visiteur(s)