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

[Bug]: Installing opencv-python (4.10.0.84): Failed #6045

Closed
1 task done
chunhualiao opened this issue Jan 5, 2025 · 3 comments
Closed
1 task done

[Bug]: Installing opencv-python (4.10.0.84): Failed #6045

chunhualiao opened this issue Jan 5, 2025 · 3 comments
Labels
bug Something isn't working severity:medium Affecting multiple users

Comments

@chunhualiao
Copy link

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

I was using mamba on a MacBook Air 15-inch M3, 2024. I got the following error:

make build
Building project...
Checking dependencies...
Checking system...
macOS detected.
Checking Python installation...
Python 3.12.8 is already installed.
Checking npm installation...
npm 10.9.0 is already installed.
Checking Node.js installation...
Node.js 22.12.0 is already installed.
Checking Docker installation...
Docker version 27.3.1, build ce12230 is already installed.
Checking Poetry installation...
Poetry (version 1.8.5) is already installed.
Dependencies checked successfully.
Installing Python dependencies...
Defaulting TZ (timezone) to UTC
Using virtualenv: /Users/liao6/Library/Caches/pypoetry/virtualenvs/openhands-ai-O1UGlCDt-py3.12
Installing chroma-hnswlib...
Requirement already satisfied: chroma-hnswlib in /Users/liao6/Library/Caches/pypoetry/virtualenvs/openhands-ai-O1UGlCDt-py3.12/lib/python3.12/site-packages (0.7.6)
Requirement already satisfied: numpy in /Users/liao6/Library/Caches/pypoetry/virtualenvs/openhands-ai-O1UGlCDt-py3.12/lib/python3.12/site-packages (from chroma-hnswlib) (2.2.1)
Installing dependencies from lock file

Package operations: 1 install, 0 updates, 0 removals

  - Installing opencv-python (4.10.0.84): Failed

  ChefBuildError

  Backend 'setuptools.build_meta:__legacy__' is not available.
  
  Cannot import 'setuptools.build_meta'

  at ~/miniforge3/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with opencv-python (4.10.0.84) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "opencv-python (==4.10.0.84)"'.

make[1]: *** [install-python-dependencies] Error 1
make: *** [build] Error 2

OpenHands Installation

Development workflow

OpenHands Version

main d2790c8

Operating System

MacOS

Logs, Errors, Screenshots, and Additional Context

I was following instructions from https://github.com/All-Hands-AI/OpenHands/blob/main/Development.md

The error happens at Step 2. "make build".

@mamoodi
Copy link
Collaborator

mamoodi commented Jan 5, 2025

Looks like manually installing it got through the error?

poetry run pip install "opencv-python==4.10.0.84"

@mamoodi mamoodi added the severity:low Minor issues or affecting single user label Jan 5, 2025
@chunhualiao
Copy link
Author

Yes.

@mamoodi mamoodi added severity:medium Affecting multiple users and removed severity:low Minor issues or affecting single user labels Jan 6, 2025
@neubig
Copy link
Contributor

neubig commented Jan 7, 2025

Fixed by #6064

@neubig neubig closed this as completed Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working severity:medium Affecting multiple users
Projects
None yet
Development

No branches or pull requests

3 participants