0

I've been using docker-compose to containerise my Django web app, every time I try to run docker-compose, it comes up that python setup.py egg_info did not run successfully within the mysqlclient package. Here is the full error output:

#0 14.79   × python setup.py egg_info did not run successfully.
#0 14.79   │ exit code: 1
#0 14.79   ╰─> [16 lines of output]
#0 14.79       mysql_config --version
#0 14.79       /bin/sh: mysql_config: not found
#0 14.79       mariadb_config --version
#0 14.79       /bin/sh: mariadb_config: not found
#0 14.79       mysql_config --libs
#0 14.79       /bin/sh: mysql_config: not found
#0 14.79       Traceback (most recent call last):
#0 14.79         File "<string>", line 2, in <module>
#0 14.79         File "<pip-setuptools-caller>", line 34, in <module>
#0 14.79         File "/tmp/pip-install-pmudu0sw/mysqlclient_47f69dea011449a8a2de262e86e628d2/setup.py", line 15, in <module>
#0 14.79           metadata, options = get_config()
#0 14.79         File "/tmp/pip-install-pmudu0sw/mysqlclient_47f69dea011449a8a2de262e86e628d2/setup_posix.py", line 70, in get_config
#0 14.79           libs = mysql_config("libs")
#0 14.79         File "/tmp/pip-install-pmudu0sw/mysqlclient_47f69dea011449a8a2de262e86e628d2/setup_posix.py", line 31, in mysql_config
#0 14.79           raise OSError("{} not found".format(_mysql_config_path))
#0 14.79       OSError: mysql_config not found
#0 14.79       [end of output]
#0 14.79
#0 14.79   note: This error originates from a subprocess, and is likely not a problem with pip.  
#0 14.80 error: metadata-generation-failed
#0 14.80
#0 14.80 × Encountered error while generating package metadata.
#0 14.80 ╰─> See above for output.
#0 14.80
#0 14.80 note: This is an issue with the package mentioned above, not pip.
#0 14.80 hint: See above for details.

Any help would be great, if anymore details are needed, let me know. Thanks

Morgan
  • 71
  • 1
  • 2
  • 8

0 Answers0