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

Issue with 'poetry install' when installing required modules and dependencies #11

Open
Parzival244 opened this issue Apr 22, 2023 · 1 comment

Comments

@Parzival244
Copy link

Seemingly doesn't like opencv-python and pyqt5 versions:

Installing opencv-python (4.5.2.52): Failed

RuntimeError

Unable to find installation candidates for opencv-python (4.5.2.52)

at ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\installation\chooser.py:109 in choose_for
105│
106│ links.append(link)
107│
108│ if not links:
→ 109│ raise RuntimeError(f"Unable to find installation candidates for {package}")
110│
111│ # Get the best link
112│ chosen = max(links, key=lambda link: self._sort_key(package, link))
113│

• Installing pre-commit (2.17.0)
• Installing pyinstaller (4.5.1)
• Installing pyinstaller-versionfile (2.0.0)
• Installing pyqt5 (5.14.1): Failed

ChefBuildError

Backend 'sipbuild.api' is not available.

at ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\installation\chef.py:152 in _prepare
148│
149│ error = ChefBuildError("\n\n".join(message_parts))
150│
151│ if error is not None:
→ 152│ raise error from None
153│
154│ return path
155│
156│ 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 pyqt5 (5.14.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "pyqt5 (==5.14.1)"'.

• Installing pyqt5-stubs (5.15.2.0)
• Installing python-magic (0.4.24)
• Installing tomlkit (0.7.2)

@Danthewaann
Copy link
Owner

Hi thanks for raising this issue!

I'm not able to test this locally yet, however I do remember that using Python 3.8 should work (as that was the last Python version that I tested the project with).

You can try using Python 3.8 to see if that helps. I'm afraid if I want to support later Python versions I would need to update pyqt5, which might involve a bunch of breaking changes.

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

2 participants