mpkasp / django-bom

A simple bill of materials app built using the django web framework.
GNU General Public License v3.0
105 stars 40 forks source link

Notes about running from git with mysql #124

Open whatnick opened 11 months ago

whatnick commented 11 months ago

The pipenv install phase requires compiling mysql python integration from source. There should be a note around installing libmysqlclient-dev or similar from the OS. Produced this error on WSL.

[pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:   × Getting requirements to build wheel did not run successfully.
[pipenv.exceptions.InstallError]:   │ exit code: 1
[pipenv.exceptions.InstallError]:   ╰─> [27 lines of output]
[pipenv.exceptions.InstallError]:       /bin/sh: 1: mysql_config: not found
[pipenv.exceptions.InstallError]:       /bin/sh: 1: mariadb_config: not found
[pipenv.exceptions.InstallError]:       /bin/sh: 1: mysql_config: not found
[pipenv.exceptions.InstallError]:       mysql_config --version
[pipenv.exceptions.InstallError]:       mariadb_config --version
[pipenv.exceptions.InstallError]:       mysql_config --libs