Error installing aicrowd library

Hi guys,
I’m facing an installation issue when entering the command pip install -U aicrowd-cli
Here is the message :

Collecting aicrowd-cli
  Using cached aicrowd_cli-0.1.15-py3-none-any.whl (51 kB)
Collecting requests-toolbelt<1,>=0.9.1
  Using cached requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
Requirement already satisfied: tqdm<5,>=4.56.0 in c:\users\t.cosyn\appdata\local\programs\python\python310\lib\site-packages (from aicrowd-cli) (4.64.1)
Collecting pyzmq==22.1.0
  Using cached pyzmq-22.1.0.tar.gz (1.2 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      Traceback (most recent call last):
        File "C:\Users\t.cosyn\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
          main()
        File "C:\Users\t.cosyn\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\t.cosyn\AppData\Local\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 130, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\t.cosyn\AppData\Local\Temp\pip-build-env-b2lse_4j\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "C:\Users\t.cosyn\AppData\Local\Temp\pip-build-env-b2lse_4j\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "C:\Users\t.cosyn\AppData\Local\Temp\pip-build-env-b2lse_4j\overlay\Lib\site-packages\setuptools\build_meta.py", line 482, in run_setup
          super(_BuildMetaLegacyBackend,
        File "C:\Users\t.cosyn\AppData\Local\Temp\pip-build-env-b2lse_4j\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 140, in <module>
        File "C:\Users\t.cosyn\AppData\Local\Temp\pip-install-kl4y9145\pyzmq_532db7e73af443a4bb7556bbbd0ccc45\buildutils\misc.py", line 83, in locate_vcredist_dir
          vcvars = msvc.msvc14_get_vc_env(get_platform())
        File "C:\Users\t.cosyn\AppData\Local\Temp\pip-build-env-b2lse_4j\overlay\Lib\site-packages\setuptools\msvc.py", line 214, in msvc14_get_vc_env
          return _msvc14_get_vc_env(plat_spec)
        File "C:\Users\t.cosyn\AppData\Local\Temp\pip-build-env-b2lse_4j\overlay\Lib\site-packages\setuptools\msvc.py", line 168, in _msvc14_get_vc_env
          raise distutils.errors.DistutilsPlatformError(
      distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I have no idea of what goes wrong and I can’t make submissions.

Thanks for your help

@thomascosyn : As mentioned in the error logs, please install Microsoft Build Tools by following the instructions in the error message :

Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools”: Microsoft C++ Build Tools - Visual Studio

Best,

Thank you very much ! This worked and I could install the aicrowd package.
However I am now facing another issue :

PS C:\...\CityLearn\challenge-city-learn-repo\challenge-city-learn> py -3.9 -m aicrowd login
Please login here: https://api.aicrowd.com/auth/qL_LvhUcZtfHPlntfo5zz8PbjaEVHxe2dAgFkHrKEUM
API Key valid
Gitlab access token valid
Saved details successfully!
PS C:\...\CityLearn\challenge-city-learn-repo\challenge-city-learn> ./submit.sh "test"   

It seems I can successfully log, but nothing happens when I run the submission script and I can’t find any log.

Thanks again

@thomascosyn : I suspect it is because the submit.sh script assumes a *nix environment. Given you are on Windows, please follow the instructions here.

Best

1 Like