aboutcode-org / aboutcode-org/scancode-toolkit

Failure to collect RPM from RPM db in scancode.io

未關閉
#2,500 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug package scan package-formats
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

This is a problem that came from running the toolkit on a Docker image https://hub.docker.com/r/ansible/awx_web/tags
docker.io/ansible/awx_web:1.0.6 :
```
stat: path should be string, bytes, os.PathLike or integer, not NoneType

Traceback:
File "/opt/scancodeio/scanpipe/pipelines/__init__.py", line 95, in execute
step(self)
File "/opt/scancodeio/scanpipe/pipelines/docker.py", line 79, in collect_and_create_system_packages
docker.scan_image_for_system_packages(self.project, image)
File "/opt/scancodeio/scanpipe/pipes/docker.py", line 123, in scan_image_for_system_packages
for i, (purl, package, layer) in enumerate(installed_packages):
File "/usr/local/lib/python3.9/site-packages/container_inspector/image.py", line 329, in get_installed_packages
for purl, package in layer.get_installed_packages(packages_getter):
File "/opt/scancodeio/scanpipe/pipes/rpm.py", line 31, in package_getter
for package in packages:
File "/usr/local/lib/python3.9/site-packages/packagedcode/rpm_installed.py", line 43, in parse_rpm_xmlish
if not os.path.exists(location):
File "/usr/local/lib/python3.9/genericpath.py", line 19, in exists
os.stat(path)
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。