Closed gcpdev closed 1 year ago
I also encountered the same error log and hope for a prompt resolution.
64.71 ChefBuildError
64.71
64.71 Backend subprocess exited when trying to invoke get_requires_for_build_wheel
64.71
64.71 /bin/sh: 1: pkg-config: not found
64.71 /bin/sh: 1: pkg-config: not found
64.71 Trying pkg-config --exists mysqlclient
64.71 Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.
64.71 Trying pkg-config --exists mariadb
64.71 Command 'pkg-config --exists mariadb' returned non-zero exit status 127.
64.71 Traceback (most recent call last):
64.71 File "/usr/local/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>64.71 main()
64.71 File "/usr/local/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
64.71 json_out['return_val'] = hook(**hook_input['kwargs'])
64.71 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64.71 File "/usr/local/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
64.71 return hook(config_settings)
64.71 ^^^^^^^^^^^^^^^^^^^^^
64.71 File "/tmp/tmprw5yisee/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
64.71 return self._get_build_requires(config_settings, requirements=['wheel'])
64.71 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64.71 File "/tmp/tmprw5yisee/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
64.71 self.run_setup()
64.71 File "/tmp/tmprw5yisee/.venv/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
64.71 exec(code, locals())
64.71 File "<string>", line 154, in <module>
64.71 File "<string>", line 48, in get_config_posix
64.71 File "<string>", line 27, in find_package_name
64.71 Exception: Can not find valid pkg-config name.
64.71 Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
64.71
64.71
64.71 at /usr/local/lib/python3.11/site-packages/poetry/installation/chef.py:152 in _prepare
64.82 148│
64.83 149│ error = ChefBuildError("\n\n".join(message_parts))
64.83 150│
64.83 151│ if error is not None:
64.83 → 152│ raise error from None
64.83 153│
64.84 154│ return path
64.84 155│
64.84 156│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
64.84
64.84 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)"'.
64.84
------
failed to solve: process "/bin/sh -c poetry install --only main" did not complete successfully: exit code: 1
Thanks @chennqqi! Are you folks still getting this @hutao562 @gcpdev ?
🤔 Your error message suggests that the command poetry install --only main failed to execute successfully, leading to a non-zero exit code (1). This typically indicates some form of error during the execution.
Possible causes could be:
Missing Dependencies: Your project may have dependencies that aren't installed or aren't being found.
Wrong Python Version: Your project might be using a Python version that's incompatible with one or more of your dependencies. You can check your current Python version with the following command:
python --version
Issues with Poetry: Sometimes, Poetry itself might run into problems. You can try updating it with the following command:
pip install --upgrade poetry
Thanks @chennqqi! Are you folks still getting this @hutao562 @gcpdev ?
@asim-shrestha yes, I confirmed in the PR that it fixed the issue, so just replicating here
Please check that this issue hasn't been reported before.
Expected Behavior
First of all, thanks for this great application, I used the web version and it seems to achieve my goals way better than other (more famous) agents.
When following the Readme instructions and running:
git clone https://github.com/reworkd/AgentGPT.git && cd AgentGPT ./setup.sh
should start the applicationCurrent behaviour
On my machine, it unfortunately fails. Full log as follows:
I have the following versions installed:
Let me know if you need any further information for your investigation.
Steps to reproduce
Simply running the start script, as described above.
Possible solution
Maybe
Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually
in the .env file, as suggested?Which Operating Systems are you using?
Acknowledgements