TeamViewer package
Published: July 12, 2021 - 11:48 AM
Good morning,
There is a problem with the TeamViewer package in the update_package() function.
The version check causes an error and therefore does not update the package.
Personally, for version checking I use `parse_version` from the `pkg_resources` module.
Solution :
Sincerely,
Étienne
There is a problem with the TeamViewer package in the update_package() function.
The version check causes an error and therefore does not update the package.
Code: Select all
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: Select all
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