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

Does not install via requirements.txt but on command line #5315

Open
imperator-maximus opened this issue Jun 23, 2024 · 0 comments
Open

Does not install via requirements.txt but on command line #5315

imperator-maximus opened this issue Jun 23, 2024 · 0 comments

Comments

@imperator-maximus
Copy link

imperator-maximus commented Jun 23, 2024

Instructions To Reproduce the 🐛 Bug:

  1. Full runnable code or full changes you made:
    using a small requirements.txt
segment-anything @ git+https://github.com/facebookresearch/segment-anything.git
detectron2 @ git+https://github.com/facebookresearch/detectron2.git
groundingdino-py

  1. What exact command you run:
    pip install -r requirements.txt
  2. Full logs or other relevant observations:
          objects = self.compiler.compile(
                    ^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\mausz\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\utils\cpp_extension.py", line 842, in win_wrap_ninja_compile
          _write_ninja_file_and_compile_objects(
        File "C:\Users\mausz\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\utils\cpp_extension.py", line 1783, in _write_ninja_file_and_compile_objects
          _run_ninja_build(
        File "C:\Users\mausz\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\utils\cpp_extension.py", line 2123, in _run_ninja_build
          raise RuntimeError(message) from e
      RuntimeError: Error compiling objects for extension
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for detectron2
  Running setup.py clean for detectron2
Failed to build detectron2

ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (detectron2)

I added full logs via attachment: logs.txt

But if I install it via command line:
python -m pip install git+https://github.com/facebookresearch/detectron2.git

it works fine without any issue.

Environment:

I am using Windows and so I do not have wget here - any alternative?

If your issue looks like an installation issue / environment issue,
please first try to solve it yourself with the instructions in
https://detectron2.readthedocs.io/tutorials/install.html#common-installation-issues

I have checked that list already.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant