GithubHelp home page GithubHelp logo

Comments (4)

jspeed-meyers avatar jspeed-meyers commented on September 28, 2024

Thanks, @vargenau, for the bug report. We'll investigate!

from ntia-conformance-checker.

jspeed-meyers avatar jspeed-meyers commented on September 28, 2024

The --file argument was required. Oops. PR #151 fixes this. Thank you again, @vargenau, for reporting this bug.

from ntia-conformance-checker.

vargenau avatar vargenau commented on September 28, 2024

Hello @jspeed-meyers

This fixes the issue, but creates another one.

You should test the presence of the --file argument if another argument is present.

If I do

ntia-checker --verbose

I now have:

Traceback (most recent call last):
  File "/opt/homebrew/bin/ntia-checker", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/ntia_conformance_checker/main.py", line 58, in main
    sbom = SbomChecker(args.file, validate=not args.skip_validation)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/ntia_conformance_checker/sbom_checker.py", line 22, in __init__
    self.doc = self.parse_file()
               ^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/ntia_conformance_checker/sbom_checker.py", line 47, in parse_file
    if not os.path.exists(self.file):
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen genericpath>", line 19, in exists
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Same with just

ntia-checker

from ntia-conformance-checker.

jspeed-meyers avatar jspeed-meyers commented on September 28, 2024

@vargenau, does PR #154 accomplish what you expect?

from ntia-conformance-checker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.