awslabs / awslabs/agentcore-samples
01-tutorials - [Bug]
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 30
Description
**In which component is this bug present?**
- [x] 06-AgentCore-observability
If you are reporting multiple bugs, please create a separate issue for each. For documentation improvements, use the documentation improvement issue type.
**Bug Description**
A clear and concise description of the bug.
```
Hi team,
The Docker image creation is failing with below error for "runtime_with_strands_and_bedrock_models.ipynb" example : https://github.com/awslabs/amazon-bedrock-agentcore-samples/blob/main/01-tutorials/06-AgentCore-observability/01-Agentcore-runtime-hosted/Strands%20Agents/runtime_with_strands_and_bedrock_models.ipynb
CodeBuild Logs:
8 4.235 × Failed to build `strands==0.1.0`
#8 4.235 ├─▶ The build backend returned an error
#8 4.235 ╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)
#8 4.235
#8 4.235 [stdout]
#8 4.235 running bdist_wheel
#8 4.235 running build
#8 4.235 running build_ext
#8 4.235
#8 4.235 ==> Configuring:
#8 4.235 $ cmake -S
#8 4.235 /root/.cache/uv/sdists-v9/pypi/strands/0.1.0/IZnztMNrtSkYAn1UBfIBw/src -B
#8 4.235 /root/.cache/uv/sdists-v9/pypi/strands/0.1.0/IZnztMNrtSkYAn1UBfIBw/src/build/temp.linux-aarch64-cpython-314_Strands
#8 4.235 -G Ninja
#8 4.235 -DCMAKE_MAKE_PROGRAM=/root/.cache/uv/builds-v0/.tmp0sPiBa/bin/ninja
#8 4.235 -DCMAKE_BUILD_TYPE=Release
#8 4.235 -DCMAKE_INSTALL_PREFIX:PATH=/root/.cache/uv/sdists-v9/pypi/strands/0.1.0/IZnztMNrtSkYAn1UBfIBw/src/build/lib.linux-aarch64-cpython-314/strands
#8 4.235 -DPYTHON_EXECUTABLE=/root/.cache/uv/builds-v0/.tmp0sPiBa/bin/python
#8 4.235 -DBUILD_SHARED_LIBS:BOOL=OFF -DSTRANDS_TESTS:BOOL=OFF
#8 4.235
#8 4.235 ==> Building:
#8 4.235 $ cmake --build
#8 4.235 /root/.cache/uv/sdists-v9/pypi/strands/0.1.0/IZnztMNrtSkYAn1UBfIBw/src/build/temp.linux-aarch64-cpython-314_Strands
#8 4.235 --config Release
#8 4.235
#8 4.235 ==> Installing:
#8 4.235 $ cmake --install
#8 4.235 /root/.cache/uv/sdists-v9/pypi/strands/0.1.0/IZnztMNrtSkYAn1UBfIBw/src/build/temp.linux-aarch64-cpython-314_Strands
#8 4.235 --config Release --component strands_py
#8 4.235
#8 4.235 -- The CXX compiler identification is unknown
#8 4.235 -- Configuring incomplete, errors occurred!
#8 4.235
#8 4.235 [stderr]
#8 4.235 toml section missing PosixPath('pyproject.toml') does not contain a
#8 4.235 tool.setuptools_scm section
#8 4.235 CMake Error at CMakeLists.txt:2 (project):
#8 4.235 No CMAKE_CXX_COMPILER could be found.
#8 4.235
#8 4.235 Tell CMake where to find the compiler by setting either the
#8 4.235 environment
#8 4.235 variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the
#8 4.235 full path
#8 4.235 to the compiler, or to the compiler name if it is in the PATH.
#8 4.235
#8 4.235
#8 4.235 Traceback (most recent call last):
#8 4.235 File "", line 11, in
#8 4.235 wheel_filename =
#8 4.235 backend.build_wheel("/root/.cache/uv/builds-v0/.tmpZe0mSR", {}, None)
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/build_meta.py",
#8 4.235 line 432, in build_wheel
#8 4.235 return _build(['bdist_wheel'])
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/build_meta.py",
#8 4.235 line 423, in _build
#8 4.235 return self._build_with_temp_dir(
#8 4.235 ~~~~~~~~~~~~~~~~~~~~~~~~~^
#8 4.235 cmd,
#8 4.235 ^^^^
#8 4.235 ...<3 lines>...
#8 4.235 self._arbitrary_args(config_settings),
#8 4.235 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#8 4.235 )
#8 4.235 ^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/build_meta.py",
#8 4.235 line 404, in _build_with_temp_dir
#8 4.235 self.run_setup()
#8 4.235 ~~~~~~~~~~~~~~^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/build_meta.py",
#8 4.235 line 317, in run_setup
#8 4.235 exec(code, locals())
#8 4.235 ~~~~^^^^^^^^^^^^^^^^
#8 4.235 File "", line 25, in
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/__init__.py",
#8 4.235 line 115, in setup
#8 4.235 return distutils.core.setup(**attrs)
#8 4.235 ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/_distutils/core.py",
#8 4.235 line 186, in setup
#8 4.235 return run_commands(dist)
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/_distutils/core.py",
#8 4.235 line 202, in run_commands
#8 4.235 dist.run_commands()
#8 4.235 ~~~~~~~~~~~~~~~~~^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
#8 4.235 line 1002, in run_commands
#8 4.235 self.run_command(cmd)
#8 4.235 ~~~~~~~~~~~~~~~~^^^^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/dist.py",
#8 4.235 line 1102, in run_command
#8 4.235 super().run_command(command)
#8 4.235 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
#8 4.235 line 1021, in run_command
#8 4.235 cmd_obj.run()
#8 4.235 ~~~~~~~~~~~^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/command/bdist_wheel.py",
#8 4.235 line 370, in run
#8 4.235 self.run_command("build")
#8 4.235 ~~~~~~~~~~~~~~~~^^^^^^^^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/_distutils/cmd.py",
#8 4.235 line 357, in run_command
#8 4.235 self.distribution.run_command(command)
#8 4.235 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/dist.py",
#8 4.235 line 1102, in run_command
#8 4.235 super().run_command(command)
#8 4.235 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
#8 4.235 line 1021, in run_command
#8 4.235 cmd_obj.run()
#8 4.235 ~~~~~~~~~~~^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/_distutils/command/build.py",
#8 4.235 line 135, in run
#8 4.235 self.run_command(cmd_name)
#8 4.235 ~~~~~~~~~~~~~~~~^^^^^^^^^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/_distutils/cmd.py",
#8 4.235 line 357, in run_command
#8 4.235 self.distribution.run_command(command)
#8 4.235 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/dist.py",
#8 4.235 line 1102, in run_command
#8 4.235 super().run_command(command)
#8 4.235 ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/setuptools/_distutils/dist.py",
#8 4.235 line 1021, in run_command
#8 4.235 cmd_obj.run()
#8 4.235 ~~~~~~~~~~~^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/cmake_build_extension/build_extension.py",
#8 4.235 line 114, in run
#8 4.235 self.build_extension(ext)
#8 4.235 ~~~~~~~~~~~~~~~~~~~~^^^^^
#8 4.235 File
#8 4.235 "/root/.cache/uv/builds-v0/.tmp0sPiBa/lib/python3.14/site-packages/cmake_build_extension/build_extension.py",
#8 4.235 line 241, in build_extension
#8 4.235 subprocess.check_call(configure_command)
#8 4.235 ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
#8 4.235 File "/usr/local/lib/python3.14/subprocess.py", line 419, in
#8 4.235 check_call
#8 4.235 raise CalledProcessError(retcode, cmd)
#8 4.235 subprocess.CalledProcessError: Command '['cmake', '-S',
#8 4.235 '/root/.cache/uv/sdists-v9/pypi/strands/0.1.0/IZnztMNrtSkYAn1UBfIBw/src',
#8 4.235 '-B',
#8 4.235 '/root/.cache/uv/sdists-v9/pypi/strands/0.1.0/IZnztMNrtSkYAn1UBfIBw/src/build/temp.linux-aarch64-cpython-314_Strands',
#8 4.235 '-G', 'Ninja',
#8 4.235 '-DCMAKE_MAKE_PROGRAM=/root/.cache/uv/builds-v0/.tmp0sPiBa/bin/ninja',
#8 4.235 '-DCMAKE_BUILD_TYPE=Release',
#8 4.235 '-DCMAKE_INSTALL_PREFIX:PATH=/root/.cache/uv/sdists-v9/pypi/strands/0.1.0/IZnztMNrtSkYAn1UBfIBw/src/build/lib.linux-aarch64-cpython-314/strands',
#8 4.235 '-DPYTHON_EXECUTABLE=/root/.cache/uv/builds-v0/.tmp0sPiBa/bin/python',
#8 4.235 '-DBUILD_SHARED_LIBS:BOOL=OFF', '-DSTRANDS_TESTS:BOOL=OFF']' returned
#8 4.235 non-zero exit status 1.
#8 4.235
#8 4.235 hint: This usually indicates a problem with the package or the build
#8 4.235 environment.
#8 ERROR: process "/bin/sh -c uv pip install -r requirements.txt" did not complete successfully: exit code: 1
```
Contributor guide
Assessment
This issue has not been assessed yet.