import-images fails under Python 3 when there are multiple images and at least one lacks a base
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu system image |
New
|
Undecided
|
Unassigned |
Bug Description
https:/
Traceback (most recent call last):
File "/srv/system-
pub.
File "/srv/system-
self.
File "/srv/system-
for image in sorted(
TypeError: unorderable types: int() < NoneType()
This is due to this change in Python 3:
https:/
I've temporarily cowboyed a server change to revert import-images to Python 2 since presumably the images containing non-ASCII files have been processed by now (I hope), but this should be fixed properly. I don't know whether the best answer is to temporarily map None onto some int value, or to create a new class with custom comparator methods, or something else.