Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local deployment of SecGPT-mini failed #69

Open
dannyxu2015 opened this issue Feb 8, 2025 · 1 comment
Open

local deployment of SecGPT-mini failed #69

dannyxu2015 opened this issue Feb 8, 2025 · 1 comment

Comments

@dannyxu2015
Copy link

According to deployment documents,not worked on Mac Pro(macos 15.3 24D60)

  • Download Dockerfile & requirements.txt
  • docker build -t xxx/secgpt .

build logs:

[+] Building 276.9s (9/9) FINISHED                                           docker:desktop-linux
 => [internal] load build definition from Dockerfile                                         0.0s
 => => transferring dockerfile: 265B                                                         0.0s
 => [internal] load metadata for docker.io/library/python:slim                               3.1s
 => [auth] library/python:pull token for registry-1.docker.io                                0.0s
 => [internal] load .dockerignore                                                            0.0s
 => => transferring context: 2B                                                              0.0s
 => [1/4] FROM docker.io/library/python:slim@sha256:ae9f9ac89467077ed1efefb6d9042132d28134b  0.0s
 => [internal] load build context                                                            0.0s
 => => transferring context: 1.05kB                                                          0.0s
 => CACHED [2/4] WORKDIR /secgpt-mini                                                        0.0s
 => [3/4] COPY . /secgpt-mini                                                                0.0s
 => ERROR [4/4] RUN pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple -r require  273.5s
------
 > [4/4] RUN pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple -r requirements.txt:
3.390 Looking in indexes: https://mirrors.ustc.edu.cn/pypi/web/simple
3.779 Collecting datasets==2.12.0 (from -r requirements.txt (line 1))
3.896   Downloading https://mirrors.ustc.edu.cn/pypi/packages/fb/1c/85a22f3fa02dce5403094c5dbce494d62343b5a7e518bdf6e4200dda7337/datasets-2.12.0-py3-none-any.whl (474 kB)
5.416 Collecting gradio==3.37.0 (from -r requirements.txt (line 2))
5.585   Downloading https://mirrors.ustc.edu.cn/pypi/packages/41/b6/eb030aa054e51be202c8aee0a6b5fefb35527499c914019f1f2741537029/gradio-3.37.0-py3-none-any.whl (19.8 MB)
58.76      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.8/19.8 MB 373.3 kB/s eta 0:00:00
61.18 Collecting matplotlib==3.7.2 (from -r requirements.txt (line 3))
61.29   Downloading https://mirrors.ustc.edu.cn/pypi/packages/e5/59/b859fa2539b4121b016ea85758188203522fc12b0711de8b247cfec3cdac/matplotlib-3.7.2.tar.gz (38.1 MB)
166.1      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.1/38.1 MB 368.0 kB/s eta 0:00:00
169.1   Installing build dependencies: started
227.2   Installing build dependencies: finished with status 'done'
227.2   Getting requirements to build wheel: started
227.9   Getting requirements to build wheel: finished with status 'done'
227.9   Preparing metadata (pyproject.toml): started
228.6   Preparing metadata (pyproject.toml): finished with status 'done'
229.2 Collecting numpy==1.24.4 (from -r requirements.txt (line 4))
229.3   Downloading https://mirrors.ustc.edu.cn/pypi/packages/a4/9b/027bec52c633f6556dba6b722d9a0befb40498b9ceddd29cbe67a45a127c/numpy-1.24.4.tar.gz (10.9 MB)
257.9      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.9/10.9 MB 373.2 kB/s eta 0:00:00
260.1   Installing build dependencies: started
272.2   Installing build dependencies: finished with status 'done'
272.2   Getting requirements to build wheel: started
272.3   Getting requirements to build wheel: finished with status 'done'
273.1
273.1 [notice] A new release of pip is available: 24.3.1 -> 25.0
273.1 [notice] To update, run: pip install --upgrade pip
273.2 ERROR: Exception:
273.2 Traceback (most recent call last):
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
273.2     status = _inner_run()
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
273.2     return self.run(options, args)
273.2            ~~~~~~~~^^^^^^^^^^^^^^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
273.2     return func(self, options, args)
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/commands/install.py", line 379, in run
273.2     requirement_set = resolver.resolve(
273.2         reqs, check_supported_wheels=not options.target_dir
273.2     )
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 95, in resolve
273.2     result = self._result = resolver.resolve(
273.2                             ~~~~~~~~~~~~~~~~^
273.2         collected.requirements, max_rounds=limit_how_complex_resolution_can_be
273.2         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
273.2     )
273.2     ^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
273.2     state = resolution.resolve(requirements, max_rounds=max_rounds)
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolve
273.2     self._add_to_criteria(self.state.criteria, r, parent=None)
273.2     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
273.2     if not criterion.candidates:
273.2            ^^^^^^^^^^^^^^^^^^^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in __bool__
273.2     return bool(self._sequence)
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 174, in __bool__
273.2     return any(self)
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 162, in <genexpr>
273.2     return (c for c in iterator if id(c) not in self._incompatible_ids)
273.2                        ^^^^^^^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 53, in _iter_built
273.2     candidate = func()
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 187, in _make_candidate_from_link
273.2     base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
273.2                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
273.2         link, template, name, version
273.2         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
273.2     )
273.2     ^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 233, in _make_base_candidate_from_link
273.2     self._link_candidate_cache[link] = LinkCandidate(
273.2                                        ~~~~~~~~~~~~~^
273.2         link,
273.2         ^^^^^
273.2     ...<3 lines>...
273.2         version=version,
273.2         ^^^^^^^^^^^^^^^^
273.2     )
273.2     ^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 304, in __init__
273.2     super().__init__(
273.2     ~~~~~~~~~~~~~~~~^
273.2         link=link,
273.2         ^^^^^^^^^^
273.2     ...<4 lines>...
273.2         version=version,
273.2         ^^^^^^^^^^^^^^^^
273.2     )
273.2     ^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 159, in __init__
273.2     self.dist = self._prepare()
273.2                 ~~~~~~~~~~~~~^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 236, in _prepare
273.2     dist = self._prepare_distribution()
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 315, in _prepare_distribution
273.2     return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
273.2            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/operations/prepare.py", line 527, in prepare_linked_requirement
273.2     return self._prepare_linked_requirement(req, parallel_builds)
273.2            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/operations/prepare.py", line 642, in _prepare_linked_requirement
273.2     dist = _get_prepared_distribution(
273.2         req,
273.2     ...<3 lines>...
273.2         self.check_build_deps,
273.2     )
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/operations/prepare.py", line 72, in _get_prepared_distribution
273.2     abstract_dist.prepare_distribution_metadata(
273.2     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
273.2         finder, build_isolation, check_build_deps
273.2         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
273.2     )
273.2     ^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/distributions/sdist.py", line 56, in prepare_distribution_metadata
273.2     self._install_build_reqs(finder)
273.2     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/distributions/sdist.py", line 126, in _install_build_reqs
273.2     build_reqs = self._get_build_requires_wheel()
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/distributions/sdist.py", line 103, in _get_build_requires_wheel
273.2     return backend.get_requires_for_build_wheel()
273.2            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_internal/utils/misc.py", line 701, in get_requires_for_build_wheel
273.2     return super().get_requires_for_build_wheel(config_settings=cs)
273.2            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 166, in get_requires_for_build_wheel
273.2     return self._call_hook('get_requires_for_build_wheel', {
273.2            ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
273.2         'config_settings': config_settings
273.2         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
273.2     })
273.2     ^^
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_impl.py", line 321, in _call_hook
273.2     raise BackendUnavailable(data.get('traceback', ''))
273.2 pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
273.2   File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
273.2     obj = import_module(mod_path)
273.2   File "/usr/local/lib/python3.13/importlib/__init__.py", line 88, in import_module
273.2     return _bootstrap._gcd_import(name[level:], package, level)
273.2            ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
273.2   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
273.2   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
273.2   File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
273.2   File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
273.2   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
273.2   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
273.2   File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
273.2   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
273.2   File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
273.2   File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
273.2   File "/tmp/pip-build-env-gl6ct45d/overlay/lib/python3.13/site-packages/setuptools/__init__.py", line 10, in <module>
273.2     import distutils.core
273.2 ModuleNotFoundError: No module named 'distutils'
273.2
------
Dockerfile:7
--------------------
   5 |     COPY . /secgpt-mini
   6 |
   7 | >>> RUN pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple -r requirements.txt
   8 |
   9 |     EXPOSE 7860
--------------------
ERROR: failed to solve: process "/bin/sh -c pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple -r requirements.txt" did not complete successfully: exit code: 2

View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/nbv4b0ep9op5xam4f0xwfqyn8
@dannyxu2015
Copy link
Author

Environment:
Mac Pro(macos 15.3 24D60)
Docker version 27.5.1, build 9f9e405

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant