Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not fail when scanning rootfs #1462

Closed
pombredanne opened this issue Dec 9, 2024 · 1 comment
Closed

Do not fail when scanning rootfs #1462

pombredanne opened this issue Dec 9, 2024 · 1 comment

Comments

@pombredanne
Copy link
Member

When scanning this QCOW2 image https://cloud-images.ubuntu.com/minimal/releases/noble/release/ubuntu-24.04-minimal-cloudimg-amd64.img using the analyze_root_filesystem_or_vm_image pipline we get this error:

2024-12-09 09:06:09.384 Step [collect_and_create_system_packages] starting
2024-12-09 09:15:04.434 Pipeline failed

Task output

'>' not supported between instances of 'str' and 'NoneType'

Traceback:
  File "/opt/scancodeio/aboutcode/pipeline/__init__.py", line 199, in execute
    step(self)
  File "/opt/scancodeio/scanpipe/pipelines/root_filesystem.py", line 88, in collect_and_create_system_packages
    rootfs.scan_rootfs_for_system_packages(self.project, rfs)
  File "/opt/scancodeio/scanpipe/pipes/rootfs.py", line 283, in scan_rootfs_for_system_packages
    most_seen_namespace = max(namespace_counts)
                          ^^^^^^^^^^^^^^^^^^^^^
tdruez added a commit that referenced this issue Dec 10, 2024
tdruez added a commit that referenced this issue Dec 10, 2024
@tdruez
Copy link
Contributor

tdruez commented Dec 10, 2024

Fixed in #1464

@tdruez tdruez closed this as completed Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants