Page 2 of 2

Re: Console crash

Published: May 2, 2018 - 10:08 AM
by renaud.counhaye
The most amazing thing is that if I type a search into the console, it works.
2018-05-02 10_07_31-WAPT console.png
2018-05-02 10_07_31-WAPT console.png (9.71 KB) Viewed 6340 times
This only happens if I leave the search field empty.
2018-05-02 10_08_02-WAPT console.png
2018-05-02 10_08_02-WAPT console.png (14.91 KB) Viewed 6340 times

Re: Console crash

Published: May 2, 2018 - 10:17
by htouvet
Can you enable debug mode (View / Preferences / Show debug information, and also check "Show debug information" at the bottom of the window, which increases the log level to DEBUG)?

Then refresh the packages in the Private Repository tab.

And retrieve the trace at the bottom of the window.

Re: Console crash

Published: May 2, 2018 - 10:31
by renaud.counhaye
Here's what happens next:

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 1895, in search
    for package in sorted(result,reverse=True,cmp=sort_no_version):
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 1890, in sort_no_version
    return cmp((package1.package,package1.architecture,package1.locale,package1.maturity,PackageVersion(package1.version)),(package2.package,package2.architecture,package2.locale,package2.maturity,PackageVersion(package2.version)))
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 231, in PackageVersion
    return (Version(version_build[0],4),int(version_build[1]))
ValueError: invalid literal for int() with base 10: '0.1'
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 1895, in search
    for package in sorted(result,reverse=True,cmp=sort_no_version):
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 1890, in sort_no_version
    return cmp((package1.package,package1.architecture,package1.locale,package1.maturity,PackageVersion(package1.version)),(package2.package,package2.architecture,package2.locale,package2.maturity,PackageVersion(package2.version)))
  File "C:\Program Files (x86)\wapt\waptpackage.py", line 231, in PackageVersion
    return (Version(version_build[0],4),int(version_build[1]))
ValueError: invalid literal for int() with base 10: '0.1'

Re: Console crash

Published: May 2, 2018 - 10:37
by htouvet
OK...
The version number decoding doesn't like versions in the form !
1.2.3-0.1
(the second part after the hyphen must be an integer).
One of the culprits is:
/var/www/wapt/ymg-ms-teams_1.1.0.2253-0.1_all.wapt

. It needs to be edited and the ".1" removed.

I'll add a test to make sure the version has the correct format in the package build.

The version must be either
pure integer: 1 (
version only), 1.2.3.4
(version-packaging), or 1.2.3.4-1
(packaging is an integer)

[SOLVED] Re: Console crash

Published: May 2, 2018 - 11:17
by renaud.counhaye
Ah, that's interesting!

I'm correcting it....
uploads...

Code: Select all

[ /var/www/wapt ]
rcounhaye@wapt $ sudo rm ymg-ms-teams_1.1.0.2253-0.1_all.wapt
rcounhaye@wapt $ sudo wapt-scanpackages -f -ldebug /var/www/wapt
....
console relaunch + refresh software inventory...

Done.

And it looks like it's working! GG :)