Wapt 1.5 post-configuration script problem

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
ybrossard
Messages: 4
Registration: February 23, 2018 - 10:46

February 23, 2018 - 10:56

I followed all the WAPT 1.5 installation documentation.
I had to add several Python libraries and now I'm stuck.

When I run the script: `/opt/wapt/bin/python /opt/wapt/waptserver/scripts/postconf.py --force-https`, I get the following error: `

Traceback (most recent call last):
File "/opt/wapt/waptserver/scripts/postconf.py", line 57, in`
from waptpackage import WaptLocalRepo
ImportError: No module named waptpackage

Thank you for your help.
Regards.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

February 23, 2018 - 5:19 PM

This is a problem with the path to the Wapt Python libraries.
The documentation needs to be modified.

In the latest builds, the script to run is

Code: Select all

/opt/wapt/waptserver/scripts/postconf.sh
or you can also launch (in a single line)

Code: Select all

PYTHONHOME=/opt/wapt PYTHONPATH=/opt/wapt /opt/wapt/bin/python /opt/wapt/waptserver/scripts/postconf.py
(nighttime build of the 1.5 documentation:) https://wapt.tranquil.it/wapt/nightly/d ... figuration )
Tranquil IT
Locked