Page 1 of 1

Error creating package

Published: March 31, 2017 - 6:35 PM
by avondra
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.

Re: Error creating package

Published: April 3, 2017 - 10:18 AM
by htouvet
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.

Re: Error creating package

Published: April 3, 2017 - 12:54 PM
by avondra
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?

Re: Error creating package

Published: April 3, 2017 - 6:19 PM
by avondra
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 4975 times

Re: Error creating package

Published: April 4, 2017 - 9:48 AM
by sfonteneau
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