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

Error when running rootfs pipeline on rootfs tarball #196

Closed
cco3 opened this issue Jun 9, 2021 · 5 comments
Closed

Error when running rootfs pipeline on rootfs tarball #196

cco3 opened this issue Jun 9, 2021 · 5 comments
Milestone

Comments

@cco3
Copy link

cco3 commented Jun 9, 2021

This doesn't happen for me on all images, just some, so I don't know what the issue is. (I haven't really investigated the code here.)

'NoneType' object has no attribute 'merge'

Traceback:
  File "/opt/scancodeio/scanpipe/pipelines/__init__.py", line 96, in execute
    step(self)
  File "/opt/scancodeio/scanpipe/pipelines/root_filesystems.py", line 54, in find_root_filesystems
    self.root_filesystems = list(rootfs.RootFs.from_project_codebase(self.project))
  File "/opt/scancodeio/scanpipe/pipes/rootfs.py", line 101, in from_project_codebase
    yield RootFs(location=rootfs_location)
  File "<attrs generated init scanpipe.pipes.rootfs.RootFs>", line 4, in __init__
    self.__attrs_post_init__()
  File "/opt/scancodeio/scanpipe/pipes/rootfs.py", line 88, in __attrs_post_init__
    self.distro = Distro.from_rootfs(self.location)
  File "/usr/local/lib/python3.9/site-packages/container_inspector/distro.py", line 355, in from_rootfs
    return base_distro.merge(found)
@tdruez
Copy link
Contributor

tdruez commented Jun 9, 2021

@cco3 which version of the code are you running? A branch or the latest release?
For reference, we've been working on this issue in #132 (comment)

@cco3
Copy link
Author

cco3 commented Jun 9, 2021

latest release (v21.5.12). This doesn't fail with all qcow2 images, just some.

@tdruez
Copy link
Contributor

tdruez commented Jun 10, 2021

@cco3 thanks. We already have implemented a fix for this one. I'll prepare a new release and let you now when its ready.

@tdruez tdruez added this to the 2021-05 milestone Jun 10, 2021
@tdruez
Copy link
Contributor

tdruez commented Jun 10, 2021

@cco3 the fix is now available in the latest release https://github.com/nexB/scancode.io/releases/tag/v21.6.10

@cco3
Copy link
Author

cco3 commented Jun 10, 2021

Thanks!

@cco3 cco3 closed this as completed Jun 10, 2021
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