Open qingfengfenga opened 10 months ago
Would you fetch all submodules first by running git submodule update --init --recursive
and retry?
Would you fetch all submodules first by running
git submodule update --init --recursive
and retry?
New error
#16 27.40 CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
#16 27.40 CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
#16 27.40 -- Configuring incomplete, errors occurred!
> git submodule update --init --recursive
Cloning into 'E:/Me/chatglm.cpp/third_party/sentencepiece'...
Submodule path 'third_party/ggml': checked out '6549d12f2e3176050040a86334f17c001e170f13'
Submodule path 'third_party/pybind11': checked out '8b03ffa7c06cd9c8a38297b1c8923695d1ff1b07'
Submodule path 'third_party/sentencepiece': checked out '635fe8423a249b6e081aacd290d8aef7476c6a28'
> docker build . --network=host -t chatglm.cpp
[+] Building 332.2s (17/17) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 35B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:20.04 4.7s
=> [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s
=> [internal] load build context 4.1s
=> => transferring context: 67.24MB 4.1s
=> [build 1/7] FROM docker.io/library/ubuntu:20.04@sha256:ed4a42283d9943135ed87d4ee34e542f7f5ad9ecf2f244870e23122f703f91c2 0.0s
=> CACHED [build 2/7] WORKDIR /chatglm.cpp 0.0s
=> CACHED [stage-1 3/7] RUN sed -e "s/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g" -e "s/security.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g" -i /etc/apt 0.0s
=> CACHED [build 3/7] RUN sed -e "s/archive.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g" -e "s/security.ubuntu.com/mirrors.tuna.tsinghua.edu.cn/g" -i /etc/apt/s 0.0s
=> CACHED [build 4/7] RUN python3 -m pip install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple pip && python3 -m pip config set global.index-url https://p 0.0s
=> [build 5/7] ADD . . 4.1s
=> [build 6/7] RUN cmake -B build -DGGML_CUBLAS=OFF && cmake --build build -j --config Release 177.9s
=> [build 7/7] RUN CMAKE_ARGS=-DGGML_CUBLAS=OFF python3 -m build --wheel 111.2s
=> [stage-1 4/7] COPY --from=build /chatglm.cpp/build/bin/main /chatglm.cpp/build/bin/main 0.3s
=> [stage-1 5/7] COPY --from=build /chatglm.cpp/dist/ /chatglm.cpp/dist/ 0.1s
=> [stage-1 6/7] ADD examples examples 0.2s
=> ERROR [stage-1 7/7] RUN python3 -m pip install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple pip && python3 -m pip config set global.index-url https:/ 28.1s
------
> [stage-1 7/7] RUN python3 -m pip install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple pip && python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && python3 -m pip install --no-cache-dir -f dist 'chatglm-cpp[api]' && rm -rf dist:
#16 6.269 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
#16 7.138 Collecting pip
#16 7.176 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/47/6a/453160888fab7c6a432a6e25f8afe6256d0d9f2cbd25971021da6491d899/pip-23.3.1-py3-none-any.whl (2.1 MB)
#16 8.075 Installing collected packages: pip
#16 8.075 Attempting uninstall: pip
#16 8.076 Found existing installation: pip 20.0.2
#16 8.076 Not uninstalling pip at /usr/lib/python3/dist-packages, outside environment /usr
#16 8.076 Can't uninstall 'pip'. No files were found to uninstall.
#16 10.36 Successfully installed pip-23.3.1
#16 10.73 Writing to /root/.config/pip/pip.conf
#16 11.16 Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
#16 11.16 Looking in links: dist
#16 11.30 Collecting chatglm-cpp[api]
#16 11.34 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6b/f9/bd93efd74498231e03f00150948d297cfb19172d9232be21a704f2a259b7/chatglm-cpp-0.2.10.tar.gz (2.6 MB)
#16 11.75 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 6.4 MB/s eta 0:00:00
#16 12.18 Installing build dependencies: started
#16 19.57 Installing build dependencies: finished with status 'done'
#16 19.58 Getting requirements to build wheel: started
#16 19.86 Getting requirements to build wheel: finished with status 'done'
#16 19.87 Installing backend dependencies: started
#16 20.74 Installing backend dependencies: finished with status 'done'
#16 20.74 Preparing metadata (pyproject.toml): started
#16 21.03 Preparing metadata (pyproject.toml): finished with status 'done'
#16 21.16 Collecting fastapi[all] (from chatglm-cpp[api])
#16 21.19 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/db/30/b8d323119c37e15b7fa639e65e0eb7d81eb675ba166ac83e695aad3bd321/fastapi-0.104.0-py3-none-any.whl (92 kB)
#16 21.20 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 92.9/92.9 kB 19.6 MB/s eta 0:00:00
#16 21.25 Collecting sse-starlette (from chatglm-cpp[api])
#16 21.29 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e9/83/5825dd7be255bbd3587a45651804092817eadf7070db757331d0e9c2ee47/sse_starlette-1.6.5-py3-none-any.whl (9.6 kB)
#16 21.37 Collecting anyio<4.0.0,>=3.7.1 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 21.41 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/19/24/44299477fe7dcc9cb58d0a57d5a7588d6af2ff403fdd2d47a246c91a3246/anyio-3.7.1-py3-none-any.whl (80 kB)
#16 21.41 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.9/80.9 kB 32.6 MB/s eta 0:00:00
#16 21.67 Collecting pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 21.70 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/73/66/0a72c9fcde42e5650c8d8d5c5c1873b9a3893018020c77ca8eb62708b923/pydantic-2.4.2-py3-none-any.whl (395 kB)
#16 21.74 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 395.8/395.8 kB 11.9 MB/s eta 0:00:00
#16 21.81 Collecting starlette<0.28.0,>=0.27.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 21.85 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/58/f8/e2cca22387965584a409795913b774235752be4176d276714e15e1a58884/starlette-0.27.0-py3-none-any.whl (66 kB)
#16 21.85 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 67.0/67.0 kB 20.2 MB/s eta 0:00:00
#16 21.90 Collecting typing-extensions>=4.8.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 21.93 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/24/21/7d397a4b7934ff4028987914ac1044d3b7d52712f30e2ac7a2ae5bc86dd0/typing_extensions-4.8.0-py3-none-any.whl (31 kB)
#16 21.99 Collecting email-validator>=2.0.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 22.02 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/09/68/d237a603d524ba052e292d71c89939bfa70e3ec7963b255cc3ef7a8770a0/email_validator-2.1.0.post1-py3-none-any.whl (32 kB)
#16 22.08 Collecting httpx>=0.23.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 22.12 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/33/0d/d9ce469af019741c8999711d36b270ff992ceb1a0293f73f9f34fdf131e9/httpx-0.25.0-py3-none-any.whl (75 kB)
#16 22.12 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 75.7/75.7 kB 20.4 MB/s eta 0:00:00
#16 22.17 Collecting itsdangerous>=1.1.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 22.20 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/68/5f/447e04e828f47465eeab35b5d408b7ebaaaee207f48b7136c5a7267a30ae/itsdangerous-2.1.2-py3-none-any.whl (15 kB)
#16 22.25 Collecting jinja2>=2.11.2 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 22.29 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl (133 kB)
#16 22.30 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 15.5 MB/s eta 0:00:00
#16 22.69 Collecting orjson>=3.2.1 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 22.72 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/73/af/eed54ce0ca853b6c1c481fe2713362f44ad0827cfed4f444f006b737ef4d/orjson-3.9.10-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (138 kB)
#16 22.74 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 138.5/138.5 kB 11.5 MB/s eta 0:00:00
#16 22.78 Collecting pydantic-extra-types>=2.0.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 22.81 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/cc/a8/ec9c44384336c6b1b4c2c59a486fdd9204db8a3115a8d9021a8929fdfe3c/pydantic_extra_types-2.1.0-py3-none-any.whl (16 kB)
#16 22.86 Collecting pydantic-settings>=2.0.0 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 22.89 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/46/92/918ef6b14d54c6a4fccdecd65b3ee15360ca2b4aa52d5c9c4f39f99b4c56/pydantic_settings-2.0.3-py3-none-any.whl (11 kB)
#16 22.93 Collecting python-multipart>=0.0.5 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 22.97 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b4/ff/b1e11d8bffb5e0e1b6d27f402eeedbeb9be6df2cdbc09356a1ae49806dbf/python_multipart-0.0.6-py3-none-any.whl (45 kB)
#16 22.97 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.7/45.7 kB 81.9 MB/s eta 0:00:00
#16 23.06 Collecting pyyaml>=5.3.1 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 23.09 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c8/6b/6600ac24725c7388255b2f5add93f91e58a5d7efaf4af244fdbcc11a541b/PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (736 kB)
#16 23.16 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 736.6/736.6 kB 12.3 MB/s eta 0:00:00
#16 23.31 Collecting ujson!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,>=4.0.1 (from fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 23.34 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/02/54/a5dd810a93612da244869c3ebf46d1bb7b389af396f982d5f4d0b821b466/ujson-5.8.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (53 kB)
#16 23.34 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.0/54.0 kB 35.0 MB/s eta 0:00:00
#16 23.45 Collecting uvicorn>=0.12.0 (from uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 23.48 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/79/96/b0882a1c3f7ef3dd86879e041212ae5b62b4bd352320889231cc735a8e8f/uvicorn-0.23.2-py3-none-any.whl (59 kB)
#16 23.48 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.5/59.5 kB 60.0 MB/s eta 0:00:00
#16 23.55 Collecting idna>=2.8 (from anyio<4.0.0,>=3.7.1->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 23.59 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/fc/34/3030de6f1370931b9dbb4dad48f6ab1015ab1d32447850b9fc94e60097be/idna-3.4-py3-none-any.whl (61 kB)
#16 23.59 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 36.4 MB/s eta 0:00:00
#16 23.63 Collecting sniffio>=1.1 (from anyio<4.0.0,>=3.7.1->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 23.66 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c3/a0/5dba8ed157b0136607c7f2151db695885606968d1fae123dc3391e0cfdbf/sniffio-1.3.0-py3-none-any.whl (10 kB)
#16 23.71 Collecting exceptiongroup (from anyio<4.0.0,>=3.7.1->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 23.74 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ad/83/b71e58666f156a39fb29417e4c8ca4bc7400c0dd4ed9e8842ab54dc8c344/exceptiongroup-1.1.3-py3-none-any.whl (14 kB)
#16 23.79 Collecting dnspython>=2.0.0 (from email-validator>=2.0.0->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 23.83 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f6/b4/0a9bee52c50f226a3cbfb54263d02bb421c7f2adc136520729c2c689c1e5/dnspython-2.4.2-py3-none-any.whl (300 kB)
#16 23.87 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 300.4/300.4 kB 7.2 MB/s eta 0:00:00
#16 23.94 Collecting certifi (from httpx>=0.23.0->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 23.97 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4c/dd/2234eab22353ffc7d94e8d13177aaa050113286e93e7b40eae01fbf7c3d9/certifi-2023.7.22-py3-none-any.whl (158 kB)
#16 23.98 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.3/158.3 kB 12.1 MB/s eta 0:00:00
#16 24.05 Collecting httpcore<0.19.0,>=0.18.0 (from httpx>=0.23.0->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 24.08 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ac/97/724afbb7925339f6214bf1fdb5714d1a462690466832bf8fb3fd497649f1/httpcore-0.18.0-py3-none-any.whl (76 kB)
#16 24.09 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 76.0/76.0 kB 14.9 MB/s eta 0:00:00
#16 24.21 Collecting MarkupSafe>=2.0 (from jinja2>=2.11.2->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 24.26 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/de/e2/32c14301bb023986dff527a49325b6259cab4ebb4633f69de54af312fc45/MarkupSafe-2.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
#16 24.31 Collecting annotated-types>=0.4.0 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 24.34 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/28/78/d31230046e58c207284c6b2c4e8d96e6d3cb4e52354721b944d3e1ee4aa5/annotated_types-0.6.0-py3-none-any.whl (12 kB)
#16 25.11 Collecting pydantic-core==2.10.1 (from pydantic!=1.8,!=1.8.1,!=2.0.0,!=2.0.1,!=2.1.0,<3.0.0,>=1.7.4->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 25.15 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/da/82/4139ea7aebec9e22be42d8a5342df5022b7b6b6deb10126dc3ff80b4d6fd/pydantic_core-2.10.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB)
#16 25.34 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 10.8 MB/s eta 0:00:00
#16 25.45 Collecting python-dotenv>=0.21.0 (from pydantic-settings>=2.0.0->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 25.50 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/44/2f/62ea1c8b593f4e093cc1a7768f0d46112107e790c3e478532329e434f00b/python_dotenv-1.0.0-py3-none-any.whl (19 kB)
#16 25.64 Collecting click>=7.0 (from uvicorn>=0.12.0->uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 25.68 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl (97 kB)
#16 25.68 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 kB 16.3 MB/s eta 0:00:00
#16 25.73 Collecting h11>=0.8 (from uvicorn>=0.12.0->uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 25.76 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/95/04/ff642e65ad6b90db43e668d70ffb6736436c7ce41fcc549f4e9472234127/h11-0.14.0-py3-none-any.whl (58 kB)
#16 25.77 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 27.7 MB/s eta 0:00:00
#16 25.85 Collecting httptools>=0.5.0 (from uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 25.88 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c8/4d/1e14e818a086ce800a57c5025707ecbc66083921754b77f5e41879e132cd/httptools-0.6.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (354 kB)
#16 25.91 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 354.4/354.4 kB 12.7 MB/s eta 0:00:00
#16 26.01 Collecting uvloop!=0.15.0,!=0.15.1,>=0.14.0 (from uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 26.05 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/13/b6/a5cb14acb1417c1660d722c554757e134462f09eb917e6c49907d990d63a/uvloop-0.19.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB)
#16 26.45 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 9.8 MB/s eta 0:00:00
#16 26.55 Collecting watchfiles>=0.13 (from uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 26.59 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/da/42/90669adbc6293b6543a77ea104c84d8db56a0021cdd51274c8404f10e7d0/watchfiles-0.21.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
#16 26.70 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 12.0 MB/s eta 0:00:00
#16 26.85 Collecting websockets>=10.4 (from uvicorn[standard]>=0.12.0; extra == "all"->fastapi[all]; extra == "api"->chatglm-cpp[api])
#16 26.88 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e9/bc/646bfbd9badbf59efb48db7265b097e9f626c3530c9d1329a826ef4db6a0/websockets-12.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (130 kB)
#16 26.89 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 130.5/130.5 kB 16.1 MB/s eta 0:00:00
#16 27.05 Building wheels for collected packages: chatglm-cpp
#16 27.05 Building wheel for chatglm-cpp (pyproject.toml): started
#16 27.38 Building wheel for chatglm-cpp (pyproject.toml): finished with status 'error'
#16 27.40 error: subprocess-exited-with-error
#16 27.40
#16 27.40 × Building wheel for chatglm-cpp (pyproject.toml) did not run successfully.
#16 27.40 │ exit code: 1
#16 27.40 ╰─> [77 lines of output]
#16 27.40 running bdist_wheel
#16 27.40 running build
#16 27.40 running build_py
#16 27.40 creating build
#16 27.40 creating build/lib.linux-x86_64-cpython-38
#16 27.40 creating build/lib.linux-x86_64-cpython-38/chatglm_cpp
#16 27.40 copying chatglm_cpp/__init__.py -> build/lib.linux-x86_64-cpython-38/chatglm_cpp
#16 27.40 copying chatglm_cpp/convert.py -> build/lib.linux-x86_64-cpython-38/chatglm_cpp
#16 27.40 copying chatglm_cpp/langchain_api.py -> build/lib.linux-x86_64-cpython-38/chatglm_cpp
#16 27.40 copying chatglm_cpp/openai_api.py -> build/lib.linux-x86_64-cpython-38/chatglm_cpp
#16 27.40 running egg_info
#16 27.40 writing chatglm_cpp.egg-info/PKG-INFO
#16 27.40 writing dependency_links to chatglm_cpp.egg-info/dependency_links.txt
#16 27.40 writing requirements to chatglm_cpp.egg-info/requires.txt
#16 27.40 writing top-level names to chatglm_cpp.egg-info/top_level.txt
#16 27.40 reading manifest file 'chatglm_cpp.egg-info/SOURCES.txt'
#16 27.40 reading manifest template 'MANIFEST.in'
#16 27.40 adding license file 'LICENSE'
#16 27.40 writing manifest file 'chatglm_cpp.egg-info/SOURCES.txt'
#16 27.40 running build_ext
#16 27.40 CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
#16 27.40 CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
#16 27.40 -- Configuring incomplete, errors occurred!
#16 27.40 Traceback (most recent call last):
#16 27.40 File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
#16 27.40 main()
#16 27.40 File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
#16 27.40 json_out['return_val'] = hook(**hook_input['kwargs'])
#16 27.40 File "/usr/local/lib/python3.8/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
#16 27.40 return _build_backend().build_wheel(wheel_directory, config_settings,
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 434, in build_wheel
#16 27.40 return self._build_with_temp_dir(
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 419, in _build_with_temp_dir
#16 27.40 self.run_setup()
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 341, in run_setup
#16 27.40 exec(code, locals())
#16 27.40 File "<string>", line 127, in <module>
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
#16 27.40 return distutils.core.setup(**attrs)
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
#16 27.40 return run_commands(dist)
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
#16 27.40 dist.run_commands()
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
#16 27.40 self.run_command(cmd)
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
#16 27.40 super().run_command(command)
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
#16 27.40 cmd_obj.run()
#16 27.40 File "/tmp/pip-build-env-4ifapmak/normal/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 364, in run
#16 27.40 self.run_command("build")
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
#16 27.40 self.distribution.run_command(command)
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
#16 27.40 super().run_command(command)
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
#16 27.40 cmd_obj.run()
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
#16 27.40 self.run_command(cmd_name)
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
#16 27.40 self.distribution.run_command(command)
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
#16 27.40 super().run_command(command)
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
#16 27.40 cmd_obj.run()
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 88, in run
#16 27.40 _build_ext.run(self)
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
#16 27.40 self.build_extensions()
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
#16 27.40 self._build_extensions_serial()
#16 27.40 self._build_extensions_serial()
#16 27.40 File "/tmp/pip-build-env-4ifapmak/overlay/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
#16 27.40 self.build_extension(ext)
#16 27.40 File "<string>", line 120, in build_extension
#16 27.40 File "/usr/lib/python3.8/subprocess.py", line 516, in run
#16 27.40 raise CalledProcessError(retcode, process.args,
#16 27.40 subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-z_viizo4/chatglm-cpp_2d68383502e74759b0820f58569ff1d1', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-z_viizo4/chatglm-cpp_2d68383502e74759b0820f58569ff1d1/build/lib.linux-x86_64-cpython-38/chatglm_cpp/', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DCMAKE_BUILD_TYPE=Release', '-DCHATGLM_ENABLE_PYBIND=ON', '-DBUILD_SHARED_LIBS=OFF']' returned non-zero exit status 1.
#16 27.40 [end of output]
#16 27.40
#16 27.40 note: This error originates from a subprocess, and is likely not a problem with pip.
#16 27.40 ERROR: Failed building wheel for chatglm-cpp
#16 27.40 Failed to build chatglm-cpp
#16 27.40 ERROR: Could not build wheels for chatglm-cpp, which is required to install pyproject.toml-based projects
------
executor failed running [/bin/sh -c python3 -m pip install --upgrade -i https://pypi.tuna.tsinghua.edu.cn/simple pip && python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && python3 -m pip install --no-cache-dir -f dist 'chatglm-cpp[api]' && rm -rf dist]: exit code: 1
I meet the same question.How to solve it at last?
我认为根本原因是 Dockerfile 中的这一行是有问题的:
python3 -m pip install --no-cache-dir -f dist 'chatglm-cpp[api]' && \
因为build的错误日志中提示了,这一行并没有从build镜像的 /chatglm.cpp/dist 目录新生成的 chatglm_cpp-*.whl 文件中安装 'chatglm-cpp[api]',而是从 pypi 中重新下载和编译的。
#16 11.34 Downloading <= 这是在重新下载 chatglm-cpp-0.2.10.tar.gz
https://pypi.tuna.tsinghua.edu.cn/packages/6b/f9/bd93efd74498231e03f00150948d297cfb19172d9232be21a704f2a259b7/chatglm-cpp-0.2.10.tar.gz (2.6 MB)