Paquet teamviewer
Publié : 12 juil. 2021 - 11:48
Bonjour,
Il y a un souci avec le paquet teamviewer au niveau de la fonction update_package()
Le check de version provoque une erreur et ne met donc pas à jour le paquet.
Personnellement, pour le check de version j'utilise parse_version du module pkg_resources
Solution :
Cordialement,
Étienne
Il y a un souci avec le paquet teamviewer au niveau de la fonction update_package()
Le check de version provoque une erreur et ne met donc pas à jour le paquet.
Code : Tout sélectionner
URL used is: https://www.teamviewer.com/en/download/windows/
2021-07-12 11:34:27,534 CRITICAL Fatal error in update_package function: EWaptSetupException: Fatal error : Version are not corresponding, please verify: 15.19.5 too different of: 15.19.3.0):
Traceback (most recent call last):
File "C:\Program Files (x86)\wapt\waptpackage.py", line 2928, in call_setup_hook
hookdata = hook_func()
File "D:\waptdev\sdis85-teamviewer_x64-wapt\setup.py", line 89, in update_package
error("Version are not corresponding, please verify: %s too different of: %s)" % (version, version_from_file))
File "C:\Program Files (x86)\wapt\waptutils.py", line 1841, in error
raise EWaptSetupException('Fatal error : %s' % reason)
waptutils.EWaptSetupException: Fatal error : Version are not corresponding, please verify: 15.19.5 too different of: 15.19.3.0)
Solution :
Code : Tout sélectionner
from pkg_resources import parse_version
# Checking version from file
version_from_file = get_version_from_binary(latest_bin)
if parse_version(version_from_file) < parse_version(version):
print(f'Found a more recent version {version} > {version_from_file}')
remove_file(latest_bin)
if not isfile(latest_bin):
print("Downloading: %s" % latest_bin)
wget(url_dl, latest_bin, proxies=proxies)
Étienne