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]Cannot run tool bandit as support was not installed. #618

Closed
ucakmak02 opened this issue May 23, 2023 · 4 comments
Closed

[BUG]Cannot run tool bandit as support was not installed. #618

ucakmak02 opened this issue May 23, 2023 · 4 comments

Comments

@ucakmak02
Copy link

Describe the bug
Cannot run tool bandit as support was not installed.

To Reproduce

  1. Added this line to bitbucket-pipelines.yml :
    python -m pip install "prospector[with_bandit,with_vulture]"

  2. Pipeline running on Bitbucket returned this error:
    Cannot run tool bandit as support was not installed.
    Please install by running 'pip install prospector[with_bandit]'

  3. Then I used it by giving a fixed version(previous version) and I didn't get any errors and it worked.
    python -m pip install "prospector[with_bandit,with_vulture]==1.10.0"

Screenshots

Screenshot 2023-05-23 at 11 04 53

Environment (please complete the following information):

  • Tool [bitbucket pipeline]
  • Prospector version [1.10.1]
  • Python version [3.9]
@volans-
Copy link
Contributor

volans- commented May 24, 2023

I have the same issue but I get the error about pyroma:

Cannot run tool pyroma as support was not installed.
Please install by running 'pip install prospector[with_pyroma]'

My setup.py has:

"prospector[with_everything]>=1.1.7"

The installed prospector is:

prospector==1.10.1

Version 1.10.1 is not an official release, nor mentioned in the CHANGELOG, but is present in PyPI.

If I limit the upper version to 1.10.0 it works fine. Only version 1.10.1 seems broken.

@carlio
Copy link
Member

carlio commented May 24, 2023

I suspect this is because I created the packages using poetry 1.5 which seems to have issues.

It is an official prospector release, it's just broken. I'll look into it soon and release a 1.10.2 version.

For now, pin to 1.10.0 - 1.10.1 was just fixing another poetry 1.5 problem where it was putting files in the wrong place when installed ... (see pylint-dev/pylint-plugin-utils#29 for more context)

wmfgerrit pushed a commit to wikimedia/operations-software-spicerack that referenced this issue May 24, 2023
* See prospector-dev/prospector#618

Change-Id: I51c64377995d31c416e3763eabd0450b1f82fc29
@carlio
Copy link
Member

carlio commented May 25, 2023

Nevermind I found the problem - see a similar issue here: nix-community/poetry2nix#702

It was already fixed - see #559 and #545

I made the 1.10.1 release from my laptop instead of using the release action so I used the newer poetry on my local machine.

Lesson learned ; I will release a new bugfix once the CI testing completes

@carlio
Copy link
Member

carlio commented May 25, 2023

1.10.2 is released now with the fix, with_bandit and similar will work again. Sorry about that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants