Public bug reported:

python-pyvista autopkgtests fail:
414s   return f"{type(self).__name__}: {retString}"
415s 2026-02-23 06:03:10.347 (   1.629s) [    
73790DBD3200]vtkXOpenGLRenderWindow.:1458  WARN| bad X server connection. 
DISPLAY=
416s Traceback (most recent call last):
416s   File "<string>", line 1, in <module>
416s     import pyvista; print(pyvista.Report())
416s                     ~~~~~^^^^^^^^^^^^^^^^^^
416s   File "/usr/lib/python3/dist-packages/scooby/report.py", line 376, in 
__repr__
416s     repr_dict = self.to_dict()
416s   File "/usr/lib/python3/dist-packages/scooby/report.py", line 537, in 
to_dict
416s     out['other'] = json.dumps(self.other_packages)
416s                               ^^^^^^^^^^^^^^^^^^^
416s   File "/usr/lib/python3/dist-packages/scooby/report.py", line 259, in 
other_packages
416s     installed: dict[str, str] = self.installed_packages
416s                                 ^^^^^^^^^^^^^^^^^^^^^^^
416s   File "/usr/lib/python3/dist-packages/scooby/report.py", line 240, in 
installed_packages
416s     installed = sorted(
416s         (dist.metadata['Name'] for dist in distributions()),
416s         key=str.lower,
416s     )
416s TypeError: descriptor 'lower' for 'str' objects doesn't apply to a 
'NoneType' object

The root cause is python-scooby distributiosn() call returning empty
dict in the distributions iterable:

> print([x.metadata.keys() for x in scooby.report.distributions()])
...
 'Classifier', 'Classifier', 'License-File', 'Project-URL', 'Project-URL', 
'Description'], []]

** Affects: python-scooby (Ubuntu)
     Importance: Undecided
         Status: New

** Summary changed:

- python-scoopy appends None in distributions() iterable
+ python-scoopy appends empty dictionary in distributions() iterable

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2143273

Title:
  python-scoopy appends empty dictionary in distributions() iterable

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-scooby/+bug/2143273/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to