Clinical-Genomics / chanjo2

Persistent coverage analysis tool using the d4 format
https://clinical-genomics.github.io/chanjo2/
2 stars 0 forks source link

Can't install mysqlclient on macOS #300

Closed northwestwitch closed 4 months ago

northwestwitch commented 4 months ago

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