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

Make install - Pip subprocess error #23

Open
rapcmia opened this issue Dec 17, 2024 · 4 comments
Open

Make install - Pip subprocess error #23

rapcmia opened this issue Dec 17, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@rapcmia
Copy link

rapcmia commented Dec 17, 2024

Describe the bug

When trying to install quants-lab on macOs (m1), im getting an error after running make install

 ~/github/hummingbot/quants-lab/main-ql > make install                                                                                                                                                                                                               ✔
conda env create -f environment.yml
Channels:
 - defaults
 - conda-forge
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: done

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
Installing pip dependencies: / Ran pip subprocess with arguments:
['/Users/rapcomia/miniconda3/envs/quants-lab/bin/python', '-m', 'pip', 'install', '-U', '-r', '/Users/rapcomia/github/hummingbot/quants-lab/main-ql/condaenv.o6vxfe4k.requirements.txt', '--exists-action=b']
Pip subprocess output:
Collecting hummingbot (from -r /Users/rapcomia/github/hummingbot/quants-lab/main-ql/condaenv.o6vxfe4k.requirements.txt (line 1))
  Using cached hummingbot-20241125.tar.gz (6.7 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'

Pip subprocess error:
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      Warning: passing language='c++' to cythonize() is deprecated. Instead, put "# distutils: language=c++" in your .pyx or .pxd file(s)
      Traceback (most recent call last):
        File "/Users/rapcomia/miniconda3/envs/quants-lab/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/rapcomia/miniconda3/envs/quants-lab/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/rapcomia/miniconda3/envs/quants-lab/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/7d/kmb517_17k5d_t08kzp9x4lm0000gn/T/pip-build-env-aq8eo4ps/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "/private/var/folders/7d/kmb517_17k5d_t08kzp9x4lm0000gn/T/pip-build-env-aq8eo4ps/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/7d/kmb517_17k5d_t08kzp9x4lm0000gn/T/pip-build-env-aq8eo4ps/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/private/var/folders/7d/kmb517_17k5d_t08kzp9x4lm0000gn/T/pip-build-env-aq8eo4ps/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 169, in <module>
        File "<string>", line 157, in main
        File "/private/var/folders/7d/kmb517_17k5d_t08kzp9x4lm0000gn/T/pip-build-env-aq8eo4ps/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 979, in cythonize
          module_list, module_metadata = create_extension_list(
        File "/private/var/folders/7d/kmb517_17k5d_t08kzp9x4lm0000gn/T/pip-build-env-aq8eo4ps/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 821, in create_extension_list
          for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't match any files" % filepattern):
        File "/private/var/folders/7d/kmb517_17k5d_t08kzp9x4lm0000gn/T/pip-build-env-aq8eo4ps/overlay/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 116, in nonempty
          raise ValueError(error_msg)
      ValueError: 'hummingbot/**/*.pyx' doesn't match any files
      [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.

failed

CondaEnvException: Pip failed

make: *** [install] Error 1
  • Used latest commit e19f9f4cb0c4324c17cbd8e405c6bc26de5a6d3c

Steps to reproduce bug

  1. Clone quants-lab on a macOs (m1)
  2. Run make install
@rapcmia rapcmia added the bug Something isn't working label Dec 17, 2024
@aloddo
Copy link

aloddo commented Dec 20, 2024

same happening to me- I had a different issue I tried re-installing the repo and now I get this same error

@Gabangxa
Copy link

same error trying to install quants-lab on windows, using windows command prompt

@0xmsu
Copy link

0xmsu commented Dec 23, 2024

Same error.

@aloddo
Copy link

aloddo commented Dec 24, 2024

Hey it was related to hummingbot installation via pip. I fixed it by changing the environment.yml (line 11) to

  • hummingbot=20241124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants