Code Monkey home page Code Monkey logo

Comments (1)

melroy89 avatar melroy89 commented on June 1, 2024 1

I think your Docker image is missing pkg-config: RUN apt-get update && apt-get install -y pkg-config

It's actually saying:

Processing triggers for libc-bin (2.31-0ubuntu9.9) ...', 'Removing intermediate container f888e18c8de7', ' ---> 4831587376f2', 'Step 5/11 : RUN pip3 install flask flask-sqlalchemy mysqlclient', '', ' ---> Running in 1a76c1360c0e', 'Collecting flask', '  Downloading Flask-2.3.2-py3-none-any.whl (96 kB)', 'Collecting flask-sqlalchemy', '  Downloading flask_sqlalchemy-3.0.5-py3-none-any.whl (24 kB)', 'Collecting mysqlclient', '  Downloading mysqlclient-2.2.0.tar.gz (89 kB)', '  Installing build dependencies: started', \"  Installing build dependencies: finished with status 'done'\", '  Getting requirements to build wheel: started', \"  Getting requirements to build wheel: finished with status 'error'\", '\\x1b[91m  ERROR: Command errored out with exit status 1:', '   command: /usr/bin/python3 /tmp/tmpii9tb_rv get_requires_for_build_wheel /tmp/tmpzxzyq3qq', '       cwd: /tmp/pip-install-d_w8211m/mysqlclient', '  Complete output (24 lines):', '  /bin/sh: 1: pkg-config: not found', '  /bin/sh: 1: pkg-config: not found', '  Trying pkg-config --exists mysqlclient', \"  Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.\", '  Trying pkg-config --exists mariadb', \"  Command 'pkg-config --exists mariadb' returned non-zero exit status 127.\", '  Traceback (most recent call last):', '    File \"/tmp/tmpii9tb_rv\", line 280, in <module>', '      main()', '    File \"/tmp/tmpii9tb_rv\", line 263, in main', \"      json_out['return_val'] = hook(**hook_input['kwargs'])\", '    File \"/tmp/tmpii9tb_rv\", line 114, in get_requires_for_build_wheel', '      return hook(config_settings)', '    File \"/tmp/pip-build-env-i1f59vry/overlay/lib/python3.8/site-packages/setuptools/build_meta.py\", line 341, in get_requires_for_build_wheel', \"      return self._get_build_requires(config_settings, requirements=['wheel'])\", '    File \"/tmp/pip-build-env-i1f59vry/overlay/lib/python3.8/site-packages/setuptools/build_meta.py\", line 323, in _get_build_requires', '      self.run_setup()', '    File \"/tmp/pip-build-env-i1f59vry/overlay/lib/python3.8/site-packages/setuptools/build_meta.py\", line 338, in run_setup', '      exec(code, locals())', '    File \"<string>\", line 154, in <module>', '    File \"<string>\", line 48, in get_config_posix', '    File \"<string>\", line 27, in find_package_name', '  Exception: Can not find valid pkg-config name.', '  Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually', '  ----------------------------------------', '\\x1b[0m', '\\x1b[91mERROR: Command errored out with exit status 1: /usr/bin/python3 /tmp/tmpii9tb_rv get_requires_for_build_wheel /tmp/tmpzxzyq3qq Check the logs for full command output.', '\\x1b[0m', 'Removing intermediate container 1a76c1360c0e']"}

https://github.com/geerlingguy/ansible-for-devops/actions/runs/5703795432/job/15456777719#logs

from ansible-for-devops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.