netzbegruenung / passbolt-salt

Integrate Passbolt into Saltstack to manage secrets in the infrastructure of your organization
MIT License
13 stars 2 forks source link

Dependency issue (passbolt-salt -> passbolt-python-api) #7

Open sasha-simplyture opened 5 months ago

sasha-simplyture commented 5 months ago

Steps to reproduce:

Result:

# salt-pip install passbolt-salt
Collecting passbolt-salt
  Downloading passbolt_salt-1.0.3-py3-none-any.whl.metadata (3.8 kB)
Collecting passbolt-python-api (from passbolt-salt)
  Downloading passbolt_python_api-0.3.5-py3-none-any.whl.metadata (4.1 kB)
Requirement already satisfied: certifi>=2019.6.16 in /opt/saltstack/salt/lib/python3.10/site-packages (from passbolt-python-api->passbolt-salt) (2023.7.22)
Collecting chardet>=3.0.4 (from passbolt-python-api->passbolt-salt)
  Downloading chardet-5.2.0-py3-none-any.whl.metadata (3.4 kB)
Requirement already satisfied: charset-normalizer>=2.0.8 in /opt/saltstack/salt/lib/python3.10/site-packages (from passbolt-python-api->passbolt-salt) (3.2.0)
Requirement already satisfied: idna>=2.8 in /opt/saltstack/salt/lib/python3.10/site-packages (from passbolt-python-api->passbolt-salt) (3.7)
Requirement already satisfied: python-gnupg>=0.4.7 in /opt/saltstack/salt/lib/python3.10/site-packages (from passbolt-python-api->passbolt-salt) (0.5.2)
Collecting requests==2.26.0 (from passbolt-python-api->passbolt-salt)
  Downloading requests-2.26.0-py2.py3-none-any.whl.metadata (4.8 kB)
Collecting typing-extensions==4.0.0 (from passbolt-python-api->passbolt-salt)
  Downloading typing_extensions-4.0.0-py3-none-any.whl.metadata (1.7 kB)
Requirement already satisfied: urllib3>=1.25.3 in /opt/saltstack/salt/lib/python3.10/site-packages (from passbolt-python-api->passbolt-salt) (1.26.18)
Collecting charset-normalizer>=2.0.8 (from passbolt-python-api->passbolt-salt)
  Downloading charset_normalizer-2.0.12-py3-none-any.whl.metadata (11 kB)
Downloading passbolt_salt-1.0.3-py3-none-any.whl (4.4 kB)
Downloading passbolt_python_api-0.3.5-py3-none-any.whl (10.0 kB)
Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.3/62.3 kB 801.7 kB/s eta 0:00:00
Downloading typing_extensions-4.0.0-py3-none-any.whl (22 kB)
Downloading chardet-5.2.0-py3-none-any.whl (199 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.4/199.4 kB 2.7 MB/s eta 0:00:00
Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Installing collected packages: typing-extensions, charset-normalizer, chardet, requests, passbolt-python-api, passbolt-salt
  Attempting uninstall: typing-extensions
    Found existing installation: typing_extensions 4.8.0
    Uninstalling typing_extensions-4.8.0:
      Successfully uninstalled typing_extensions-4.8.0
  Attempting uninstall: charset-normalizer
    Found existing installation: charset-normalizer 3.2.0
    Uninstalling charset-normalizer-3.2.0:
      Successfully uninstalled charset-normalizer-3.2.0
  Attempting uninstall: requests
    Found existing installation: requests 2.31.0
    Uninstalling requests-2.31.0:
      Successfully uninstalled requests-2.31.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.
pydantic 2.6.4 requires typing-extensions>=4.6.1, but you have typing-extensions 4.0.0 which is incompatible.
pydantic-core 2.16.3 requires typing-extensions!=4.7.0,>=4.6.0, but you have typing-extensions 4.0.0 which is incompatible.
salt 3007.1 requires charset-normalizer==3.2.0, but you have charset-normalizer 2.0.12 which is incompatible.
salt 3007.1 requires requests==2.31.0, but you have requests 2.26.0 which is incompatible.
salt 3007.1 requires typing-extensions==4.8.0, but you have typing-extensions 4.0.0 which is incompatible.
Successfully installed chardet-5.2.0 charset-normalizer-2.0.12 passbolt-python-api-0.3.5 passbolt-salt-1.0.3 requests-2.26.0 typing-extensions-4.0.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

[notice] A new release of pip is available: 23.3.2 -> 24.0
[notice] To update, run: /opt/saltstack/salt/bin/python3.10 -m pip install --upgrade pip

Any ideas on how to fix salt breaking or avoid dependency issues?

bbenno commented 4 months ago

Now that the referenced issue with passbolt-python-api is fixed, using salt-pip install passbolt-python-api --upgrade solved this issue for me.

svenseeberg commented 4 months ago

Thank you for the info. I guess this issue can be closed then?