anthonyharrison / lib4sbom

Library to ingest and generate SBOMs
Apache License 2.0
16 stars 11 forks source link

ModuleNotFoundError: No module named 'lib4sbom.data.service' #53

Closed nedsouza closed 3 weeks ago

nedsouza commented 3 weeks ago

Hi Anthony,

I ran the lib4sbom/examples/summary.py file and I get the following error :

desktop:~/sbom$ python3 summary.py Traceback (most recent call last): File "summary.py", line 11, in from lib4sbom.data.service import SBOMService ModuleNotFoundError: No module named 'lib4sbom.data.service'

anthonyharrison commented 3 weeks ago

What version of lib4sbom are you using? Running summary.py with the latest version (0.7.5) works for me.

nedsouza commented 3 weeks ago

Can you please share the command to get the version for lib4sbom -

anthonyharrison commented 3 weeks ago

Can you please share the command to get the version for lib4sbom -

The quickest way is

pip list | grep lib4sbom

If you don't have the latest version (0.7.5), pip install lib4sbom --upgrade

nedsouza commented 3 weeks ago

I was on lib4sbom 0.4.3. I upgraded to 0.7.5 and it works.