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

Can't install mysqlclient on macOS #300

Closed
northwestwitch opened this issue May 15, 2024 · 0 comments
Closed

Can't install mysqlclient on macOS #300

northwestwitch opened this issue May 15, 2024 · 0 comments
Labels
question Further information is requested

Comments

@northwestwitch
Copy link
Member

I've recently reinstalled conda and created a new environment for this project. When instaling it via poetry I get this error:

t /opt/homebrew/Caskroom/miniconda/base/envs/chanjo2/lib/python3.8/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 mysqlclient (2.2.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "mysqlclient (==2.2.0) ; python_version >= "3.8""'.

I solved it like this:

pip install --upgrade poetry

Possibly I've also runned this command: brew install mysql pkg-config

@northwestwitch northwestwitch added the question Further information is requested label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant