codecov / codecov/codecov-cli

Win X64: ModuleNotFoundError: No module named 'staticcodecov_languages'

Open
#404 4 comments 0 reactions 1 assignee View on GitHub

@thomasrockhu-codecov is already working on this.

Since Nov 5, 2024.

Area: Report Upload bug codecov/codecov-cli Medium
Dominant language
Python
Stars
89
Forks
64
PR merge metrics
No merged PRs in 30d

Description

not able to run codecovcli without below errors
no command codecov is available

install method: 'pip install codecov-cli'

Windows 11, x64
python 3.11.7
codecov-cli: 0.4.9

PS D:\MyPython\micropython-stubber> codecovcli --version       
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "D:\MyPython\micropython-stubber\.venv\Scripts\codecovcli.exe\__main__.py", line 4, in <module>
  File "D:\MyPython\micropython-stubber\.venv\Lib\site-packages\codecov_cli\main.py", line 16, in <module>
    from codecov_cli.commands.staticanalysis import static_analysis
  File "D:\MyPython\micropython-stubber\.venv\Lib\site-packages\codecov_cli\commands\staticanalysis.py", line 10, in <module>
    from codecov_cli.services.staticanalysis import run_analysis_entrypoint
  File "D:\MyPython\micropython-stubber\.venv\Lib\site-packages\codecov_cli\services\staticanalysis\__init__.py", line 15, in <module>
    from codecov_cli.services.staticanalysis.analyzers import get_best_analyzer
  File "D:\MyPython\micropython-stubber\.venv\Lib\site-packages\codecov_cli\services\staticanalysis\analyzers\__init__.py", line 2, in <module>
    from codecov_cli.services.staticanalysis.analyzers.javascript_es6 import ES6Analyzer
  File "D:\MyPython\micropython-stubber\.venv\Lib\site-packages\codecov_cli\services\staticanalysis\analyzers\javascript_es6\__init__.py", line 5, in <module>
    import staticcodecov_languages
ModuleNotFoundError: No module named 'staticcodecov_languages'

while removing, a part of the cause seems to be that someone assumed that the tool will only be used on *nix systems.

pip uninstall codecov-cli 
Found existing installation: codecov-cli 0.4.5
Uninstalling codecov-cli-0.4.5:
  Would remove:
  ....
d:\mypython\micropython-stubber\.venv\lib\site-packages\staticcodecov_languages.cpython-311-x86_64-linux-gnu.so
### Tasks
- [ ] Document supported OSes (and CPU architectures)
- [ ] Add support for Windows

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.