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

Tern report fails with error: 'Origins' object has no attribute 'add_notice_origins' #142

Closed
ganeshmaharaj opened this issue Dec 13, 2018 · 0 comments
Assignees
Labels
bug Something went wrong

Comments

@ganeshmaharaj
Copy link

Describe the bug
Running tern report on a clearlinux based docker image fails.

To Reproduce
Steps to reproduce the behavior:

  1. docker pull clearlinux/stacks-dlrs-mkl
  2. tern report clearlinux/stacks-dlrs-mkl

Error in terminal

2018-12-12 17:09:39,537 - DEBUG - tern - Starting...
2018-12-12 17:09:39,538 - DEBUG - container - Running command: docker ps
2018-12-12 17:09:39,574 - DEBUG - report - Setting up...
2018-12-12 17:09:39,575 - DEBUG - container - Running command: docker images clearlinux/stacks-dlrs-mkl:latest
2018-12-12 17:09:39,630 - DEBUG - container - Running command: docker save clearlinux/stacks-dlrs-mkl:latest
[sudo] password for MYUSER:
2018-12-12 17:13:08,395 - DEBUG - rootfs - Running command: sudo mount -o bind temp/141e37d52b424cc0b1e59202bf981a3d4
4d834374903bc2b91258c4b2b4f8bd9/contents temp/mergedir
2018-12-12 17:13:08,418 - WARNING - command_lib - No listing for key . Consider adding this listing to command_lib/ba
se.yml.

2018-12-12 17:13:08,418 - WARNING - report - No shell listing in command library. Using default shell
Traceback (most recent call last):
  File "./tern", line 93, in <module>
    main(args)
  File "./tern", line 47, in main
    report.execute_docker_image(args)
  File "/data/workspace/tern/report/report.py", line 407, in execute_docker_image
    analyze_docker_image(full_image, args.redo)
  File "/data/workspace/tern/report/report.py", line 191, in analyze_docker_image
    image_obj.layers[0].origins.add_notice_origins(
AttributeError: 'Origins' object has no attribute 'add_notice_origins'

Expected behavior
tern should complete report successfully.

Environment you are running Tern on
Enter all that apply

  • Operating System - Ubuntu 16.04
  • Vagrant file NA
  • Container OS - ClearLinux
  • Python version - Python 3.5.2
  • Cloud environment NA

Please attach files if they exist

@nishakm nishakm added the bug Something went wrong label Dec 14, 2018
@nishakm nishakm self-assigned this Dec 14, 2018
nishakm pushed a commit to nishakm/tern that referenced this issue Dec 15, 2018
Fixes tern-tools#142

Signed-off-by: Nisha K <nishak@vmware.com>
nishakm pushed a commit that referenced this issue Dec 15, 2018
Fixes #142

Signed-off-by: Nisha K <nishak@vmware.com>
rnjudge pushed a commit to rnjudge/tern that referenced this issue Jun 5, 2020
Fixes tern-tools#142

Signed-off-by: Nisha K <nishak@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something went wrong
Projects
None yet
Development

No branches or pull requests

2 participants