Skip to content

在apiserver目录下执行make init-py-dep报错 #1511

Description

@forever-study

环境说明:
python3.8.13

(venv) ubuntu$ git branch -vv
  main        83b2d28f [origin/main] refactor: remove I18N binary file django.mo and compile the file before starting processes (#1505)
* release-1.5 7ac4800c [origin/release-1.5] feat: support set custom domain ingress class separately (#1468)
# 目前已安装成功的包
Package                                  Version
---------------------------------------- ---------------
amqp                                     2.6.1
arrow                                    0.12.1
asgiref                                  3.8.1
attrs                                    21.4.0
backports.zoneinfo                       0.2.1
billiard                                 3.6.4.0
binaryornot                              0.4.4
bk-crypto-python-sdk                     1.1.1
bkapi-client-core                        1.2.0
boto3                                    1.33.13
botocore                                 1.33.13
CacheControl                             0.12.14
cachetools                               3.1.1
certifi                                  2024.2.2
cffi                                     1.16.0
cfgv                                     3.4.0
chardet                                  3.0.4
charset-normalizer                       3.3.2
cleo                                     2.1.0
click                                    8.1.7
coverage                                 7.4.4
crashtest                                0.4.1
cryptography                             42.0.5
curlify                                  2.2.1
dacite                                   1.8.1
decorator                                5.1.1
Deprecated                               1.2.14
distlib                                  0.3.8
Django                                   3.2.25
django-appconf                           1.0.6
django-environ                           0.8.1
djangorestframework                      3.15.1
dnspython                                2.6.1
dulwich                                  0.20.50
elasticsearch                            7.5.1
execnet                                  2.1.1
filelock                                 3.15.4
future                                   1.0.0
google-auth                              2.29.0
googleapis-common-protos                 1.59.1
greenlet                                 3.0.3
grimp                                    3.2
grpcio                                   1.55.3
html5lib                                 1.1
identify                                 2.6.0
idna                                     3.7
importlib-metadata                       7.0.0
importlib_resources                      6.4.0
inflection                               0.5.1
iniconfig                                2.0.0
jaraco.classes                           3.4.0
jeepney                                  0.8.0
Jinja2                                   3.1.3
jmespath                                 1.0.1
jsonschema                               4.23.0
jsonschema-specifications                2023.12.1
keyring                                  23.13.1
kombu                                    4.6.11
lockfile                                 0.12.2
markdown-it-py                           3.0.0
MarkupSafe                               2.1.5
mdurl                                    0.1.2
more-itertools                           10.3.0
msgpack                                  1.0.8
mypy-extensions                          0.4.3
nodeenv                                  1.9.1
nose                                     1.3.7
oauthlib                                 2.1.0
opentelemetry-api                        1.24.0
opentelemetry-exporter-otlp-proto-common 1.24.0
opentelemetry-exporter-otlp-proto-grpc   1.24.0
opentelemetry-exporter-otlp-proto-http   1.24.0
opentelemetry-instrumentation            0.45b0
opentelemetry-instrumentation-wsgi       0.45b0
opentelemetry-proto                      1.24.0
opentelemetry-sdk                        1.24.0
opentelemetry-semantic-conventions       0.45b0
opentelemetry-util-http                  0.45b0
packaging                                24.0
pbr                                      6.0.0
pexpect                                  4.9.0
pilkit                                   3.0
pillow                                   10.3.0
pip                                      24.2
pkginfo                                  1.11.1
pkgutil_resolve_name                     1.3.10
platformdirs                             2.6.2
pluggy                                   1.4.0
poetry                                   1.3.2
poetry-core                              1.4.0
poetry-plugin-export                     1.3.1
portalocker                              2.8.2
pre-commit                               3.5.0
prometheus-client                        0.9.0
protobuf                                 3.20.3
ptyprocess                               0.7.0
py                                       1.11.0
py-libtrust                              2.1.1
pyasn1                                   0.6.0
pyasn1_modules                           0.4.0
pycparser                                2.22
pycryptodomex                            3.20.0
pydantic                                 1.10.15
Pygments                                 2.17.2
PyJWT                                    2.4.0
PySocks                                  1.7.1
pytest                                   6.2.5
python-dateutil                          2.9.0.post0
python-editor                            1.0.4
python-slugify                           8.0.4
pytz                                     2024.1
PyYAML                                   6.0.1
rapidfuzz                                3.9.5
redis                                    3.5.3
referencing                              0.35.1
requests                                 2.31.0
requests-oauthlib                        1.0.0
requests-toolbelt                        0.10.1
rich                                     13.7.1
rpds-py                                  0.19.1
rsa                                      4.9
s3transfer                               0.8.2
SecretStorage                            3.3.3
setuptools                               69.5.1
shellingham                              1.5.4
six                                      1.16.0
sqlparse                                 0.4.4
static3                                  0.7.0
stevedore                                5.2.0
text-unidecode                           1.3
toml                                     0.10.2
tomli                                    2.0.1
tomlkit                                  0.13.0
tongsuopy-crayon                         1.0.2b6
trove-classifiers                        2024.7.2
types-cffi                               1.16.0.20240331
types-pyOpenSSL                          24.0.0.20240417
types-setuptools                         69.5.0.20240415
types-urllib3                            1.26.25.14
typing_extensions                        4.11.0
tzlocal                                  2.1
uritemplate                              4.1.1
urllib3                                  1.26.18
vine                                     1.3.0
virtualenv                               20.21.1
watchdog                                 1.0.2
webencodings                             0.5.1
websocket-client                         1.7.0
wrapt                                    1.15.0
www-authenticate                         0.9.2
zipp                                     3.18.1
zope.event                               5.0
zope.interface                           6.3
# 执行make init-py-dep报错信息
Installing collected packages: importlib-metadata, attrs
  Attempting uninstall: importlib-metadata
    Found existing installation: importlib-metadata 7.0.0
    Uninstalling importlib-metadata-7.0.0:
      Successfully uninstalled importlib-metadata-7.0.0
  Attempting uninstall: attrs
    Found existing installation: attrs 21.4.0
    Uninstalling attrs-21.4.0:
      Successfully uninstalled attrs-21.4.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
opentelemetry-api 1.24.0 requires importlib-metadata<=7.0,>=6.0, but you have importlib-metadata 4.13.0 which is incompatible.
Successfully installed attrs-23.2.0 importlib-metadata-4.13.0
poetry install
Installing dependencies from lock file

Package operations: 74 installs, 4 updates, 0 removals

  • Updating importlib-metadata (4.13.0 -> 7.0.0)
  • Updating attrs (23.2.0 -> 21.4.0)
  • Installing bkapi-bk-apigateway (1.0.11): Failed

  RuntimeError

  Retrieved digest for link bkapi-bk-apigateway-1.0.11.tar.gz(sha256:fcdbc4eca8bfd3310995cec532ae127ee0533ea858c82916d9782e4df3df4c49) not in poetry.lock metadata ['sha256:45a193b978b692af8faceee7768a6da2f4ac5a319cc893ccea3ffeb2f5f0ab21']

  at ~/python-project/django_project/blueking-paas/venv/lib/python3.8/site-packages/poetry/installation/chooser.py:146 in _get_links
      142│ 
      143│             selected_links.append(link)
      144│ 
      145│         if links and not selected_links:
    → 146│             raise RuntimeError(
      147│                 f"Retrieved digest for link {link.filename}({h}) not in poetry.lock"
      148│                 f" metadata {hashes}"
      149│             )
      150│ 

make: *** [Makefile:12: init-py-dep] Error 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