Posts Python Error 2024 - 001
Post
Cancel

Python Error 2024 - 001

ERROR 2024-04-08-001

pip’s dependency 에러 발생. dependency conflicts.

Error content

1
2
3
4
5
6
7
8
9
10
11
12
pip install -e . -c http://rgw-store.oslcm2.sdscloudbiz.com/swift/v1/AUTH_0d268bf1d6074d16913a3035cfe8e628/LCM-REQUIREMENTS/upper/osscp/stable/2023.1

...
...
  Attempting uninstall: oslo.metrics
    Found existing installation: oslo.metrics 0.8.0
    Uninstalling oslo.metrics-0.8.0:
      Successfully uninstalled oslo.metrics-0.8.0
  Running setup.py develop for scp-notification
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.
referencing 0.34.0 requires attrs>=22.2.0, but you have attrs 22.1.0 which is incompatible.
Successfully installed Jinja2-3.1.2 Mako-1.2.3 MarkupSafe-2.1.1 PrettyTable-3.4.1 PyYAML-6.0 Yappi-1.4.0 amqp-5.1.1 appdirs-1.4.4 attrs-22.1.0 autopage-0.5.1 bcrypt-4.0.0 cachetools-5.2.0 cffi-1.15.1 charset-normalizer-2.1.1 click-8.1.3 cliff-4.2.0 cmd2-2.4.2 cryptography-38.0.2 debtcollector-2.5.0 dogpile.cache-1.1.8 extras-1.0.0 fasteners-0.18 fixtures-4.0.1 futurist-2.4.1 greenlet-1.1.3 idna-3.4 importlib-metadata-5.0.0 iso8601-1.1.0 jsonpatch-1.32 jsonpointer-2.3 jsonschema-4.16.0 keystoneauth1-5.1.2 kombu-5.2.4 msgpack-1.0.4 netaddr-0.8.0 openstacksdk-1.0.1 osc-lib-2.7.0 oslo.metrics-0.6.0 oslo.utils-6.2.0 packaging-21.3 prometheus-client-0.14.1 pycparser-2.21 pyparsing-3.0.9 pyrsistent-0.18.1 python-dateutil-2.8.2 pytz-2022.4 requests-2.28.1 rfc3986-1.5.0 scp-notification-0.0.0 simplejson-3.17.6 sqlparse-0.4.3 statsd-3.3.0 stevedore-5.0.0 testtools-2.5.0 typing-extensions-4.6.1 tzdata-2022.4 urllib3-1.26.12 vine-5.0.0 wcwidth-0.2.5 wrapt-1.14.1 zipp-3.8.1

Solve

pip install 커맨드의 옵션 추가. –use-deprecated=legacy-resolver

1
2
3
4
5
6
7
8
9
10
11
pip install -e . -c http://rgw-store.oslcm2.sdscloudbiz.com/swift/v1/AUTH_0d268bf1d6074d16913a3035cfe8e628/LCM-REQUIREMENTS/upper/osscp/stable/2023.1 --use-deprecated=legacy-resolver

...
Requirement already satisfied: pycparser===2.21 in ./.venv/lib/python3.10/site-packages (from -c http://rgw-store.oslcm2.sdscloudbiz.com/swift/v1/AUTH_0d268bf1d6074d16913a3035cfe8e628/LCM-REQUIREMENTS/upper/osscp/stable/2023.1 (line 180)) (2.21)
Installing collected packages: scp-notification
  Attempting uninstall: scp-notification
    Found existing installation: scp-notification 0.0.0
    Uninstalling scp-notification-0.0.0:
      Successfully uninstalled scp-notification-0.0.0
  Running setup.py develop for scp-notification
Successfully installed scp-notification-0.0.0
This post is licensed under CC BY 4.0 by the author.