Fischerfredl/get-docker-secret

pypi issue with 1.0.2

Closed this issue · 4 comments

Hi Alfred,

I have issues to install version 1.0.2 via pip:

/tmp/get-docker-secrets-test [.venv3.8] ᐅ pip install get-docker-secret==1.0.2      
ERROR: Could not find a version that satisfies the requirement get-docker-secret==1.0.2 (from versions: 1.0.0, 1.0.1)
ERROR: No matching distribution found for get-docker-secret==1.0.2

Could you please check if the wheel for 1.0.2 is really on pypi. Thanks.

Hi Jürgen,
thank you for the report. I could reproduce the issue on python 3.9.7. I have rebuilt the package and uploaded new files for the 1.0.2 release (files). It should work now.

Hi @Fischerfredl,

Thank you very much. The installation via pip works now but poetry has still some issues:

jloehel@work:~$ python --version
Python 3.9.8
jloehel@work:~$ poetry --version
Poetry version 1.1.13
jloehel@work:~$ pip --version
pip 21.2.4 from /tmp/get-docker-secrets-test/.venv3.9/lib/python3.9/site-packages/pip (python 3.9)
jloehel@work:~$ poetry add get-docker-secret
Using version ^1.0.2 for get-docker-secret

Updating dependencies
Resolving dependencies... (6.0s)

Writing lock file

Package operations: 7 installs, 1 update, 0 removals

  • Installing attrs (21.4.0)
  • Installing more-itertools (8.12.0)
  • Updating packaging (20.9 -> 21.3)
  • Installing pluggy (0.13.1)
  • Installing py (1.11.0)
  • Installing wcwidth (0.2.5)
  • Installing get-docker-secret (1.0.2): Failed

  RuntimeError

  Unable to find installation candidates for get-docker-secret (1.0.2)

  at /tmp/get-docker-secrets-test/.venv3.9/lib/python3.9/site-packages/poetry/installation/chooser.py:72 in choose_for
       68│ 
       69│             links.append(link)
       70│ 
       71│         if not links:
    →  72│             raise RuntimeError(
       73│                 "Unable to find installation candidates for {}".format(package)
       74│             )
       75│ 
       76│         # Get the best link

  • Installing pytest (5.4.3)

Failed to add packages, reverting the pyproject.toml file to its original content.
jloehel@work:~$ pip install get-docker-secret==1.0.2
Collecting get-docker-secret==1.0.2
  Using cached get_docker_secret-1.0.2-py3-none-any.whl
Installing collected packages: get-docker-secret
Successfully installed get-docker-secret-1.0.2

Poetry works for 1.0.1:

jloehel@work:~$ poetry add "get-docker-secret==1.0.1"

Updating dependencies
Resolving dependencies... (0.1s)

Writing lock file

Package operations: 0 installs, 1 update, 0 removals

  • Updating get-docker-secret (1.0.2 -> 1.0.1)

edit: https://pypi.org/project/docker-secret-getter in example works fine with poetry.

HI Jürgen,
sorry for the late reply. I do not use poetry but I just tried it with a demo project and it worked.

amelch@work-laptop:~/tmp/project$ python3 --version
Python 3.9.7
amelch@work-laptop:~/tmp/project$ poetry --version
Poetry version 1.1.13
amelch@work-laptop:~/tmp/project$ pip --version
pip 22.0.4 from /home/amelch/.local/lib/python3.9/site-packages/pip (python 3.9)
amelch@work-laptop:~/tmp/project$ poetry init
    ... (truncated)
amelch@work-laptop:~/tmp/project$ tree
.
└── pyproject.toml

0 directories, 1 file
amelch@work-laptop:~/tmp/project$ poetry add get-docker-secret
Creating virtualenv project-9Rv_hNeJ-py3.9 in /home/amelch/.cache/pypoetry/virtualenvs
Using version ^1.0.2 for get-docker-secret

Updating dependencies
Resolving dependencies... (8.5s)

Writing lock file

Package operations: 1 install, 0 updates, 0 removals

  • Installing get-docker-secret (1.0.2)

Could it be a caching issue? Other than that your pip is a major version behind (pip install --upgrade pip).

Hi Alfred,

you are right. It was a caching issue. After clearing the cache, it was gone. I was not really aware of it that poetry stores the cache in ~/.cache/pypoetry and the cache persists after removing the venv. Sorry. You can close the issue. 👍

cheers
jl