codecov / codecov-cli

Codecov's Command Line Interface. Used for uploading to Codecov in your CI, Test Labelling, Local Upload, and more
Apache License 2.0
49 stars 34 forks source link

Win X64: ModuleNotFoundError: No module named 'staticcodecov_languages' #404

Open Josverl opened 3 months ago

Josverl commented 3 months ago

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
thomasrockhu-codecov commented 2 months ago

Note that this seemed to be broken for https://github.com/codecov/codecov-cli/issues/413 but using python3.11

Josverl commented 2 months ago

413 was closed as a Dup of itself ?

thomasrockhu-codecov commented 2 months ago

@Josverl gah, thanks