TypeError: '<' not supported between instances of 'str' and 'int' when checking snapd version
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Layer |
New
|
Undecided
|
Unassigned |
Bug Description
Found during this test run: https:/
On the prometheus charm. Full logs can be found in the `juju-crashdump
From /var/log/
2020-07-15 00:56:55 ERROR juju-log Hook error:
Traceback (most recent call last):
File "/var/lib/
hookenv.
File "/var/lib/
callback(*args, **kwargs)
File "/var/lib/
ensure_
File "/var/lib/
if snapd_version < LooseVersion(
File "/usr/lib/
c = self._cmp(other)
File "/usr/lib/
if self.version < other.version:
TypeError: '<' not supported between instances of 'str' and 'int'
2020-07-15 00:56:55 DEBUG install Traceback (most recent call last):
2020-07-15 00:56:55 DEBUG install File "/var/lib/
2020-07-15 00:56:55 DEBUG install main()
2020-07-15 00:56:55 DEBUG install File "/var/lib/
2020-07-15 00:56:55 DEBUG install hookenv.
2020-07-15 00:56:55 DEBUG install File "/var/lib/
2020-07-15 00:56:55 DEBUG install callback(*args, **kwargs)
2020-07-15 00:56:55 DEBUG install File "/var/lib/
2020-07-15 00:56:55 DEBUG install ensure_
2020-07-15 00:56:55 DEBUG install File "/var/lib/
2020-07-15 00:56:55 DEBUG install if snapd_version < LooseVersion(
2020-07-15 00:56:55 DEBUG install File "/usr/lib/
2020-07-15 00:56:55 DEBUG install c = self._cmp(other)
2020-07-15 00:56:55 DEBUG install File "/usr/lib/
2020-07-15 00:56:55 DEBUG install if self.version < other.version:
2020-07-15 00:56:55 DEBUG install TypeError: '<' not supported between instances of 'str' and 'int'