Page 1 of 1

[SOLVED] Error installing watpdev dependency

Published: October 3, 2024 - 11:30 AM
by Tristan
Good morning,

Wanting to do package development, I followed the advice in the WAPT documentation which indicates installing the waptdev package. However, during the package installation on my PC (Windows 11), an error occurs stating..

Code: Select all

EWaptUnavailablePackage(\'Missing dependencies: %s\' % (\',\'.join(missing_depends,)))\nwaptpackage.EWaptUnavailablePackage: Missing dependencies: wapt-7zip\n']]
However, during the installation of 7-Zip, it indicates a problem with the Python `imp` module

Does anyone have any ideas?
THANKS

Re: Error installing watpdev dependency

Published: October 3, 2024 - 4:47 PM
by sfonteneau
Wouldn't wapt-7zip be an x86 version in your repository?

Re: Error installing watpdev dependency

Published: October 4, 2024 - 8:52 AM
by Tristan
Indeed, I had both in my repository. I just updated it, keeping only the x64 version. When I try to install it again, I still get the same error.

Here are the 7zip installation logs:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4142, in install_wapt
    setup = import_setup(setup_filename)
  File "C:\Program Files (x86)\wapt\waptutils.py", line 1589, in import_setup
    py_mod = imp.load_source(modulename, setupfilename)
NameError: name 'imp' is not defined

NameError: name 'imp' is not defined
THANKS

Re: Error installing watpdev dependency

Published: October 4, 2024 - 9:20 AM
by Tristan
UPDATE

Problem solved --> WAPT agent reinstalled on the affected machine

Re: Error installing watpdev dependency

Published: October 4, 2024 - 10:25 AM
by dcardon
Hi Tristan,

thanks for the feedback :-) . With the full stack trace, it's a bit clearer. The `imp` module is a core Python module, so if it's not present, it means the agent installation is indeed corrupted. This can happen with antivirus programs that block certain files during installation; in that case, you need to add an exception.

I'm marking the topic as RESOLVED.

Best regards,

Denis