Hi There- I am trying to follow the steps listed h...
# pact-python
a
Hi There- I am trying to follow the steps listed here - https://github.com/pact-foundation/pact-python/tree/master/examples . I was able to do successful publishing for pacts to the broker from the consumer end. However while running provider tests, i am seeing the below errors-
Copy code
Creating /Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/pact-python.egg-link (link to .)
    Adding pact-python 1.5.2 to easy-install.pth file
    Installing pact-verifier script to /Users/ashishgoyal/gitrepos/pact-python/venv_pact/bin
    
    Installed /Users/ashishgoyal/gitrepos/pact-python
    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/Users/ashishgoyal/gitrepos/pact-python/setup.py", line 212, in <module>
        setup(
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
        return distutils.core.setup(**attrs)
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
        return run_commands(dist)
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
        dist.run_commands()
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
        self.run_command(cmd)
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
        super().run_command(command)
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
        cmd_obj.run()
      File "/Users/ashishgoyal/gitrepos/pact-python/setup.py", line 64, in run
        install_ruby_app(package_bin_path, download_bin_path=None)
      File "/Users/ashishgoyal/gitrepos/pact-python/setup.py", line 118, in install_ruby_app
        raise RuntimeError('Could not find {} binary.'.format(path))
    RuntimeError: Could not find /Users/ashishgoyal/gitrepos/pact-python/pact/bin/pact-1.88.83-osx.tar.gz binary.
y
you can install them via homebrew but it shouldn't be necessary, Simple stuff, mac wise, what are you running? intel/m1/darwin? python version are you running 3.9?
I think it only supports up to py 3.5 just from a quick scan of the readmes development guide a PR where we are skipping the 3.6 py . hmm maybe thats out of date, looking at the PR, we test against 3.7/3.8 and 3.9
we have some docker containers if you are just stuck locally https://github.com/pact-foundation/pact-python/tree/master/docker
m
If it works on the consumer I’d be suprrised it doesn’t work on the provider - the install process is the same as Yousaf said