Page 1 of 1

[RESOLVED] Bug after migration

Published: Dec 21, 2023 - 12:05 PM
by rcharpeil
WAPT server 2.4 Debian 11
WAPT console Windows 10


Hello, after migrating my server, we're encountering several errors.
I upgraded four agents to version 2.4, and here are the errors:

- One agent isn't detecting it when I push packages.
The 'greenshot' software won't install; here's its error code:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4010, in install_wapt
    setup = import_setup(setup_filename)
  File "C:\Program Files (x86)\wapt\waptutils.py", line 1525, in import_setup
    py_mod = imp.load_source(modulename, setupfilename)
  File "imp.py", line 171, in load_source
  File "<frozen importlib._bootstrap>", line 702, in _load
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Windows\TEMP\wapt7tw1iqtt\setup.py", line 127, in <module>
NameError: name 'control' is not defined

NameError: name 'control' is not defined
Here is line 127 of Greenshot:

Code: Select all

def update_control_version(version=control.version.split('-')[0]):
    control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
Sincerely, and sorry for the inconvenience.

Re: Bug after migration

Published: Dec 21, 2023 - 12:40
by dcardon
Hello rcharpel,

the object control is no longer imported implicitly. The package is up to date on the store; if you re-download it, that will fix the problem.

For Wapt versions, please provide the full version with the commit count (e.g., 2.4.0.14143)

. Denis

Re: Bug after migration

Published: Dec 21, 2023 - 12:50
by rcharpeil
Thank you very much for your replies.

The Greenshot problem has been fixed.

Sorry, but the commit count doesn't tell me anything... :?:

Re: Bug after migration

Published: Dec 21, 2023 - 2:37 PM
by dcardon
Hello rcharpel,

to clarify :-) :

full version: 2.4.0.14143
major version: 2.4
minor version: 0
commit count: 14143


Regards,

Denis