SpectoLabs / hoverpy

Python library for Hoverfly (now obsolete)
Apache License 2.0
79 stars 9 forks source link

Error: DOWNLOADING HOVERFLY FROM #18

Closed mjlabe closed 1 year ago

mjlabe commented 1 year ago

I have Hoverfly installed and I am trying to run the example test, but I get:

DOWNLOADING HOVERFLY FROM https://github.com/SpectoLabs/hoverfly/releases/download/v0.10.1/hoverfly_bundle_OSX_arm64.zip TO /tmp/tmpha1omii0

Same thing with docker:

DOWNLOADING HOVERFLY FROM https://github.com/SpectoLabs/hoverfly/releases/download/v0.10.1/hoverfly_bundle_linux_aarch64.zip TO /tmp/tmphd3cg4ph

hoverfly --version v1.5.2

Why is it trying to download an older version when it is installed?

I am trying to run this script: https://docs.hoverfly.io/en/latest/pages/bindings/python.html

The pip package is installed: hoverpy 0.2.2 hoverpy-0.2.2-py3.10.egg-info

Python 3.10 (Mac), 3.11 (Docker), M1 Mac

mjlabe commented 1 year ago

I just tried following the installation instructions here: https://github.com/SpectoLabs/hoverpy/blob/master/docs/pages/installation.rst

And received essentially the same error when running python setup.py test:

DOWNLOADING HOVERFLY FROM https://github.com/SpectoLabs/hoverfly/releases/download/v0.10.1/hoverfly_bundle_OSX_arm64.zip TO /var/folders/fp/v5mqcc0x1d92j597l1qgw7hr0000gp/T/tmp0o7l12f3

Same with the hoverpy docs

mjlabe commented 1 year ago

Same with Python 3.9 (Docker).

mjlabe commented 1 year ago

It successfully downloaded with --platform linux/amd64, but why is it downloading https://github.com/SpectoLabs/hoverfly/releases/download/v0.10.1/hoverfly_bundle_linux_amd64.zip?

The example also raises an error:

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

but that I can work through.

I'll create 2 tickets based on this and close this one.