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] Jake crashes on ddt scan "TypeError: 'int' object is not callable" #100

Closed
arichtman opened this issue Feb 6, 2022 · 2 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@arichtman
Copy link
Contributor

arichtman commented Feb 6, 2022

Describe the bug
When running a Jake scan it crashes out attempting to call an int object somewhere in TinyDB.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repository https://github.com/arichtman/foxOps
  2. Enter the virtual environment and run Jake poetry run jake ddt
  3. See error

Expected behavior
Normal execution of Jake OSS Index-backed scan

Screenshots
image

Desktop (please complete the following information):

  • OS: WSL2 Ubuntu 20.04 LTS
  • Uname -a: Linux bruce-banner 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • Python Version: 3.10.1
  • Version 1.4.3

Additional context
os-release:

NAME="Ubuntu"
VERSION="20.04.3 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.3 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
@arichtman arichtman added the bug Something isn't working label Feb 6, 2022
@madpah
Copy link
Collaborator

madpah commented Feb 8, 2022

Hi @arichtman - thanks for the bug ticket.

This is a known issue with a downstream dependency sonatype-nexus-community/ossindex-python#2.

Whilst we get that resolved in the downstream dependency, you can add the flag --clear-cache to you jake command which will circumvent the caching of responses from OSS Index.

@arichtman
Copy link
Contributor Author

Many thanks for your response. Have a great day!

madpah added a commit that referenced this issue Feb 17, 2022
…y resolve caching issues #100

Signed-off-by: Paul Horton <phorton@sonatype.com>
madpah added a commit that referenced this issue Feb 21, 2022
* feat: typing of `jake` WIP

Signed-off-by: Paul Horton <phorton@sonatype.com>

* port of fix for #112

Signed-off-by: Paul Horton <phorton@sonatype.com>

* resolved a bunch of typing issues

Signed-off-by: Paul Horton <phorton@sonatype.com>

* ci: fixed parameter references

Signed-off-by: Paul Horton <phorton@sonatype.com>

* ci: fixed parameter references

Signed-off-by: Paul Horton <phorton@sonatype.com>

* ci: fixed mypy

Signed-off-by: Paul Horton <phorton@sonatype.com>

* fix: updated `ossindex-lib` to latest RC which now appears to properly resolve caching issues #100

Signed-off-by: Paul Horton <phorton@sonatype.com>

* defined lowest dependencies and aligned

Signed-off-by: Paul Horton <phorton@sonatype.com>

* defined lowest dependencies and aligned

Signed-off-by: Paul Horton <phorton@sonatype.com>

* defined lowest dependencies and aligned

Signed-off-by: Paul Horton <phorton@sonatype.com>

* defined lowest dependencies and aligned

Signed-off-by: Paul Horton <phorton@sonatype.com>

* WIP: JSON output updated to use JSON serialisation
- All tests passing locally

Signed-off-by: Paul Horton <phorton@sonatype.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants