Skip to content
Snippets Groups Projects
Commit b4d4f8bb authored by Rehab Hassanein's avatar Rehab Hassanein Committed by Andrew Newdigate
Browse files

docs: adds dev scenario for stuck module dependency

parent f6c15897
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -219,4 +219,41 @@ mise global golang $(mise current golang)
mise install
```
 
If this happens, please open an issue in the appropriate tracker, so that a better long-term solution can be applied.
If this doesn't work, you can try uninstalling then reinstalling the plugin producing the error, for example:
```shell
$ git commit -m "commit message"
Checkov AWS..............................................................Failed
- hook id: checkov
- exit code: 1
Traceback (most recent call last):
File "installs/checkov/2.5.8/bin/checkov", line 2, in <module>
from checkov.main import Checkov
File "installs/checkov/2.5.8/checkov/main.py", line 23, in <module>
from checkov.ansible.runner import Runner as ansible_runner
File "installs/checkov/2.5.8/checkov/ansible/runner.py", line 7, in <module>
from checkov.ansible.graph_builder.local_graph import AnsibleLocalGraph
File "installs/checkov/2.5.8/checkov/ansible/graph_builder/local_graph.py", line 14, in <module>
from checkov.ansible.utils import get_scannable_file_paths, TASK_RESERVED_KEYWORDS, parse_file
File "installs/checkov/2.5.8/checkov/ansible/utils.py", line 9, in <module>
from checkov.common.parsers.yaml.parser import parse
File "installs/checkov/2.5.8/checkov/common/parsers/yaml/parser.py", line 8, in <module>
import checkov.common.parsers.yaml.loader as loader
File "installs/checkov/2.5.8/checkov/common/parsers/yaml/loader.py", line 10, in <module>
from checkov.common.util.file_utils import read_file_with_any_encoding
File "installs/checkov/2.5.8/checkov/common/util/file_utils.py", line 12, in <module>
from charset_normalizer import from_path
ModuleNotFoundError: No module named 'charset_normalizer'
$ mise uninstall checkov --all
mise checkov@2.5.10 ✓ uninstalled
mise checkov@2.5.8 ✓ uninstalled
$ mise install
mise checkov@2.5.8 ✓ installed
```
**Note**: `mise` (formerly known as `rtx`). If you haven't [migrated yet](https://gitlab.com/gitlab-com/runbooks/-/issues/134), replace `mise` with `rtx` in the above commands.
Additionally, please consider opening an issue in the appropriate tracker, so that a better long-term solution can be applied.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment