Error creating package

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
avondra
Messages: 35
Registration: Nov 9, 2016 - 12:02

March 31, 2017 - 6:35 PM

Hello,
I'm using PyScripter and when creating a new package, I consistently get this error:

Command Line: -ldebug install C:\Program Files (x86)\wapt\waptdev\tis-interactivesoftphone-64-wapt\WAPT
installing WAPT packages C:\Program,Files,(x86)\wapt\waptdev\tis-interactivesoftphone-64-wapt\WAPT
FATAL ERROR: AttributeError: 'NoneType' object has no attribute 'groupdict'
Traceback (most recent call last):
File "c:\Program Files (x86)\wapt\wapt-get.py", line 1145, in
main()
File "c:\Program Files (x86)\wapt\wapt-get.py", line 389, in main
usecache = not (action == 'download' and options.force)
File "c:\Program Files (x86)\wapt\common.py", line 3960, in install
actions = self.check_depends(apackages,force=force or download_only,forceupgrade=True)
File "c:\Program Files (x86)\wapt\common.py", line 3773, in check_depends
old_matches = self.waptdb.installed_matching(request)
File "c:\Program Files (x86)\wapt\common.py", line 1715, in installed_matching
package = REGEX_PACKAGE_CONDITION.match(package_cond).groupdict()['package']
AttributeError: 'NoneType' object has no attribute 'groupdict'.


Do you have any suggestions for resolving this?
Thank you in advance.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

April 3, 2017 - 10:18

I suspect a problem with the Wapt installation path containing spaces, which may be mishandled in the Pyscripter project commands.

To correct:

Right-click on the "install" item in the "Run configurations"
Select Edit execution configuration
In the Settings area, replace

Code: Select all

-ldebug install $[ActiveDoc-Dir]
by

Code: Select all

-ldebug install "$[ActiveDoc-Dir]"
PS:
The path to the waptdev directory might be incorrect... It seems to be a subdirectory of the directory where the wapt agent itself is installed. It would be better if it were outside of that directory.
Tranquil IT
avondra
Messages: 35
Registration: Nov 9, 2016 - 12:02

April 3, 2017 - 12:54

Hello,
thank you for your reply. I think we're on the right track, because my Wapt installation is in Program Files (x86)\. I modified the line and now I have the following response in the console. Is this normal?

>>>
Command Line: -ldebug install c:\Program Files (x86)\wapt


I also modified the parameter in -i build upload, but I don't get any login/password prompt, the upload doesn't complete, and I get a similar message:

>>>
Command Line: -ldebug -i build-upload "c:\Program Files (x86)\wapt"


What do you think?
avondra
Messages: 35
Registration: Nov 9, 2016 - 12:02

April 3, 2017 - 6:19 PM

By "playing" with the quotation marks, I now arrive at a different error:
2017-04-03 18_15_05-PyScripter - c__Program Files (x86)_wapt_common.py.png
2017-04-03 18_15_05-PyScripter - c__Program Files (x86)_wapt_common.py.png (18.21 KB) Viewed 4974 times
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 4, 2017 - 9:48 AM

Hello,

if I search for the error code 1625 for an MSI file (

https://msdn.microsoft.com/en-us/librar ... 85%29.aspx),

Microsoft indicates: "
This installation is forbidden by system policy. Contact your system administrator."

Simon Fonteneau
Locked