akarneliuk / pygnmi

The pure Python implementation of the gNMI client.
https://training.karneliuk.com
BSD 3-Clause "New" or "Revised" License
129 stars 44 forks source link

pygnmi no longer installable via pip since 0.8.0 #79

Closed sebageek closed 2 years ago

sebageek commented 2 years ago

The new requirements of 0.8.0 seem to break pip. 'protobuf --no-binary=protobuf' does not seem to be a valid dependency in setup.py.

quoth:/tmp$ python3 -m venv pygnmi-venv
quoth:/tmp$ . pygnmi-venv/bin/activate
(pygnmi-venv) quoth:/tmp$ pip install pip -U >/dev/null
(pygnmi-venv) quoth:/tmp$ pip --version
pip 22.2 from /tmp/pygnmi-venv/lib/python3.8/site-packages/pip (python 3.8)
(pygnmi-venv) quoth:/tmp$ pip install pygnmi
Collecting pygnmi
  Using cached pygnmi-0.8.0.tar.gz (21 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in pygnmi setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid requirement, parse error at "'--no-bin'"
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
akarneliuk commented 2 years ago

Hey @sebageek ,

it was indeed. It is fixed in the latest hotfix 0.8.1.1 published to pypi few minutes ago and will be also incorporated into the subsequent releases.

Best, Anton

akarneliuk commented 2 years ago

Working properly since 0.8.2 (fixed in #82 )

sebageek commented 2 years ago

Thanks, works again.