Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
DisplayCal, python2 et python3
#91
Ben, c'est pas une machine qui va avoir le dessus sur moi. Smile
Bon, j'ai essayé de m'inscrire sur le forum d'OpenSuse français et impossible, les lettres de vérification que je lis sur l'image ne correspondent jamais et le captcha me demande de vérifier 10 jeux d'images pour finir de me dire qu'il est impossible de joindre le serveur du captcha.
Ignace.

Bonne nouvelle la version 3.9.4 de DisplayCAL vient de sortir.
Ignace.
Répondre
#92
Version 3.9.4 de quoi ?
Je viens de mettre les numéro de version de wxgtk3 ; wxpython ; ibSDL2-2.0 sur ton post sur developpez.net.
Répondre
#93
Pardon, la version 3.9.4 de DisplayCAL vient de sortir.
Je me demande si ton système ne se mélange pas les pinceaux avec les 3 versions de Python installé.
Ignace.
Répondre
#94
En y regardant, je vois que wxgtk3 et wxpython ne sont pas activés.
Répondre
#95
Comme DisplayCAL utilise wxPython, le problème vient peut-être de là.
Ignace.
Répondre
#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
#97
Ignace, je viens d'essayer d'activer : pas d'installation pour wxpython faites et wxgtk3 me sais pas installé. Comme c'est présent, je suppose qu'ils sont appelés sans directement.

Je viens de recompiler avec la commande :
Code :
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

j'ai toujours la même erreur, je sais pas si ça a fait la mise à jour.
Répondre
#98
Ben moi, plutôt que faire des bêtises, je joue la sécurité.
avant la mise à jour, j'ai supprimé les répertoires displaycal-py3  displaycal_venv, mais j'ai gardé le script displaycal.sh.
J'ai une installation dans le répertoire /opt/, mais j'aurai fait pareil si ça avait été dans mon répertoire Téléchargements.

jpg54.
La commande python3 -m venv ./displaycal_venv ne peut pas fonctionner puisque le module Python venv n'est pas disponible sur OpenSuse Tumbleweed (à moins que la dernière mise à jour l'ai ajouté).

Bon, j'ai installé la dernière version d'OpenSuse Tumbleweed dans une machine virtuelle avec la dernière iso et ça plante toujours au démarrage du service « locale » et comme par hasard il n'y a pas de journal d'activé (j'ai essayé de l'activer, mais ça ne fonctionne pas).

Ignace.

Bonjour, manu.
En premier, il faut voir si installer le module Python wheel ne règle pas le problème puisque tu as une commande introuvable concernant ce module.
Les autres erreurs peuvent découler de ça.
Donc tu supprimes le répertoire displaycal_venv
plutôt que faire :

Code :
sudo git clone https://github.com/eoyilmaz/displaycal-py3
sudo python -m venv ./displaycal_venv && source ./displaycal_venv/bin/activate && cd ./displaycal-py3/ && sudo pip install -r requirements.txt && sudo python -m build && sudo pip install dist/DisplayCAL-3.9.*.whl

Tu fais :

Code :
sudo git clone https://github.com/eoyilmaz/displaycal-py3
sudo pip install wheel
sudo python -m venv ./displaycal_venv && source ./displaycal_venv/bin/activate && cd ./displaycal-py3/ && sudo pip install -r requirements.txt && sudo python -m build && sudo pip install dist/DisplayCAL-3.9.*.whl

Peux-tu préciser quelle est la distribution que tu utilises ?
Merci.

Ignace.
Répondre
#99
@ignace72, j'utilise Ubuntu 20.04 et wheel est déjà installé.
Code :
root@8570w:/opt/displaycal# pip3 install wheel
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2)
dt stable / Ubuntu 22.04
Répondre
Je crois avoir trouvé la solution.
Il faut installer le paquet python3-wheel_0.34.2-1_all.deb.
Il contient la commande bdist_wheel.py.
Si ça ne fonctionne pas, désinstalle wheel avec sudo pip3 uninstall wheel et réinstalle-le avec sudo pip3 install wheel.
Ça devrait fonctionner.

Ignace.
Répondre


Atteindre :


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