Skip to content

Building MCP container fails when pulling aiohttp-sse #2

@nv-wcannady

Description

@nv-wcannady

When running the docker compose -f docker-compose.ngc.yaml up kit-mcp --build command, it failes to build successfully and exists with the error code:

OS: Ubuntu via Windows WLS2

#13 97.70   Downloading aiohttp_sse-0.1.0-py3-none-any.whl.metadata (691 bytes)
#13 97.70 INFO: pip is looking at multiple versions of aiohttp-sse to determine which version is compatible with other requirements. This could take a while.
#13 97.72   Downloading aiohttp_sse-0.0.3a0-py3-none-any.whl.metadata (693 bytes)
#13 97.75   Downloading aiohttp_sse-0.0.2-py3-none-any.whl.metadata (686 bytes)
#13 97.81   Downloading aiohttp-sse-0.0.1.tar.gz (4.4 kB)
#13 97.81   Installing build dependencies: started
#13 98.22   Installing build dependencies: finished with status 'done'
#13 98.22   Getting requirements to build wheel: started
#13 98.36   Getting requirements to build wheel: finished with status 'error'
#13 98.37   error: subprocess-exited-with-error
#13 98.37
#13 98.37   × Getting requirements to build wheel did not run successfully.
#13 98.37   │ exit code: 1
#13 98.37   ╰─> [24 lines of output]
#13 98.37       Traceback (most recent call last):
#13 98.37         File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
#13 98.37           main()
#13 98.37           ~~~~^^
#13 98.37         File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
#13 98.37           json_out["return_val"] = hook(**hook_input["kwargs"])
#13 98.37                                    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
#13 98.37         File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
#13 98.37           return hook(config_settings)
#13 98.37         File "/tmp/pip-build-env-xzwks6p6/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
#13 98.37           return self._get_build_requires(config_settings, requirements=[])
#13 98.37                  ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#13 98.37         File "/tmp/pip-build-env-xzwks6p6/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
#13 98.37           self.run_setup()
#13 98.37           ~~~~~~~~~~~~~~^^
#13 98.37         File "/tmp/pip-build-env-xzwks6p6/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 518, in run_setup
#13 98.37           super().run_setup(setup_script=setup_script)
#13 98.37           ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
#13 98.37         File "/tmp/pip-build-env-xzwks6p6/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
#13 98.37           exec(code, locals())
#13 98.37           ~~~~^^^^^^^^^^^^^^^^
#13 98.37         File "<string>", line 37, in <module>
#13 98.37         File "<string>", line 14, in read
#13 98.37       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-mp10k5rw/aiohttp-sse_20ac513b71cb47de9a2602e5a937a117/CHANGES.txt'
#13 98.37       [end of output]
#13 98.37
#13 98.37   note: This error originates from a subprocess, and is likely not a problem with pip.
#13 98.51 ERROR: Failed to build 'aiohttp-sse' when getting requirements to build wheel
#13 ERROR: process "/bin/sh -c pip install --no-cache-dir --no-deps kit_fns-*.whl kit_mcp-*.whl &&     pip install --no-cache-dir --pre     \"nvidia-nat>=1.4.0a0,<2.0.0\"     \"nvidia-nat-langchain>=1.4.0a0,<2.0.0\"     \"nvidia-nat-mcp>=1.3.1\"     \"langchain>=1.2.4\"     \"langchain-core>=1.2.7\"     \"langchain-community>=0.4.1\"     \"langchain-text-splitters>=0.3.9\"     \"langchain-nvidia-ai-endpoints>=0.3.17\"     \"urllib3>=2.6.3\"     \"langgraph>=0.6.7\"     \"mcp>=1.25.0\"     \"fastapi>=0.119.0\"     \"faiss-cpu>=1.9.0.post1\"     \"pyyaml>=6.0\"     \"httpx>=0.24.0\"     \"requests>=2.25.0\"     \"redis[hiredis]>=4.5.0\"     \"aiohttp-sse\" &&     pip install --no-cache-dir --force-reinstall --no-deps \"starlette==0.51.0\"" did not complete successfully: exit code: 1
------
 > [ 8/12] RUN pip install --no-cache-dir --no-deps kit_fns-*.whl kit_mcp-*.whl &&     pip install --no-cache-dir --pre     "nvidia-nat>=1.4.0a0,<2.0.0"     "nvidia-nat-langchain>=1.4.0a0,<2.0.0"     "nvidia-nat-mcp>=1.3.1"     "langchain>=1.2.4"     "langchain-core>=1.2.7"     "langchain-community>=0.4.1"     "langchain-text-splitters>=0.3.9"     "langchain-nvidia-ai-endpoints>=0.3.17"     "urllib3>=2.6.3"     "langgraph>=0.6.7"     "mcp>=1.25.0"     "fastapi>=0.119.0"     "faiss-cpu>=1.9.0.post1"     "pyyaml>=6.0"     "httpx>=0.24.0"     "requests>=2.25.0"     "redis[hiredis]>=4.5.0"     "aiohttp-sse" &&     pip install --no-cache-dir --force-reinstall --no-deps "starlette==0.51.0":
98.37         File "/tmp/pip-build-env-xzwks6p6/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 317, in run_setup
98.37           exec(code, locals())
98.37           ~~~~^^^^^^^^^^^^^^^^
98.37         File "<string>", line 37, in <module>
98.37         File "<string>", line 14, in read
98.37       FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-mp10k5rw/aiohttp-sse_20ac513b71cb47de9a2602e5a937a117/CHANGES.txt'
98.37       [end of output]
98.37
98.37   note: This error originates from a subprocess, and is likely not a problem with pip.
98.51 ERROR: Failed to build 'aiohttp-sse' when getting requirements to build wheel
------
Dockerfile:20

--------------------

  19 |     # This avoids pip resolution-too-deep errors from loose constraints in wheel metadata

  20 | >>> RUN pip install --no-cache-dir --no-deps kit_fns-*.whl kit_mcp-*.whl && \

  21 | >>>     pip install --no-cache-dir --pre \

  22 | >>>     "nvidia-nat>=1.4.0a0,<2.0.0" \

  23 | >>>     "nvidia-nat-langchain>=1.4.0a0,<2.0.0" \

  24 | >>>     "nvidia-nat-mcp>=1.3.1" \

  25 | >>>     "langchain>=1.2.4" \

  26 | >>>     "langchain-core>=1.2.7" \

  27 | >>>     "langchain-community>=0.4.1" \

  28 | >>>     "langchain-text-splitters>=0.3.9" \

  29 | >>>     "langchain-nvidia-ai-endpoints>=0.3.17" \

  30 | >>>     "urllib3>=2.6.3" \

  31 | >>>     "langgraph>=0.6.7" \

  32 | >>>     "mcp>=1.25.0" \

  33 | >>>     "fastapi>=0.119.0" \

  34 | >>>     "faiss-cpu>=1.9.0.post1" \

  35 | >>>     "pyyaml>=6.0" \

  36 | >>>     "httpx>=0.24.0" \

  37 | >>>     "requests>=2.25.0" \

  38 | >>>     "redis[hiredis]>=4.5.0" \

  39 | >>>     "aiohttp-sse" && \

  40 | >>>     pip install --no-cache-dir --force-reinstall --no-deps "starlette==0.51.0"

  41 |

--------------------

failed to solve: process "/bin/sh -c pip install --no-cache-dir --no-deps kit_fns-*.whl kit_mcp-*.whl &&     pip install --no-cache-dir --pre     \"nvidia-nat>=1.4.0a0,<2.0.0\"     \"nvidia-nat-langchain>=1.4.0a0,<2.0.0\"     \"nvidia-nat-mcp>=1.3.1\"     \"langchain>=1.2.4\"     \"langchain-core>=1.2.7\"     \"langchain-community>=0.4.1\"     \"langchain-text-splitters>=0.3.9\"     \"langchain-nvidia-ai-endpoints>=0.3.17\"     \"urllib3>=2.6.3\"     \"langgraph>=0.6.7\"     \"mcp>=1.25.0\"     \"fastapi>=0.119.0\"     \"faiss-cpu>=1.9.0.post1\"     \"pyyaml>=6.0\"     \"httpx>=0.24.0\"     \"requests>=2.25.0\"     \"redis[hiredis]>=4.5.0\"     \"aiohttp-sse\" &&     pip install --no-cache-dir --force-reinstall --no-deps \"starlette==0.51.0\"" did not complete successfully: exit code: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions