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

Bug: scanoss-py error "endswith first arg must be str" #60

Open
lucasgonze opened this issue Oct 17, 2024 · 1 comment
Open

Bug: scanoss-py error "endswith first arg must be str" #60

lucasgonze opened this issue Oct 17, 2024 · 1 comment
Assignees

Comments

@lucasgonze
Copy link
Contributor

lucasgonze commented Oct 17, 2024

Summary

Error in ScanOSS causing message to be dumped to console

Steps to Reproduce

  1. git clone https://github.com/modal-labs/pytest-markdown-docs

  2. Run scanoss-py via Docker

docker run -it --rm -v
"/private/tmp/t/pytest-markdown-docs":"/scanoss"
ghcr.io/scanoss/scanoss-py@sha256:9a9e955c0f822635690de293ec6ee7426ac946a6f10d5ac76c95af58c7e42748
scan -D . --quiet --dependencies

  1. Get error message

ERROR: Problem encountered running dependency scan: endswith first arg must be str or a tuple of str, not list
Warning: Dependency analysis ran into some trouble.

  1. Get correct SBOM

Detailed Comments

  1. The code appears to have a bug
  2. The bug is causing an error message on stdout not stderr, so it is incorporated with any SBOM output

Regardless of the error, the correct SBOM seems to be getting generated.

@lucasgonze lucasgonze changed the title Error message "endswith first arg must be str" Bug: scanoss-py error "endswith first arg must be str" Oct 17, 2024
@agustingroh
Copy link
Contributor

Hi Lucas,

Thank you for reaching out to us.

We followed your steps but were unable to replicate the issue on our end.

Could you please run the following command to help us get a clearer view of the problem?

docker run -it --rm -v "/private/tmp/t/pytest-markdown-docs":"/scanoss" ghcr.io/scanoss/scanoss-py@sha256:9a9e955c0f822635690de293ec6ee7426ac946a6f10d5ac76c95af58c7e42748 scan --dependencies-only . --debug --trace

Regards,

Agustin

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

3 participants