# pact-python


04/26/2022, 9:07 PM
Hi There- I am trying to follow the steps listed here - . 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/", line 212, in <module>
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/", line 87, in setup
        return distutils.core.setup(**attrs)
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/_distutils/", line 148, in setup
        return run_commands(dist)
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/_distutils/", line 163, in run_commands
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/_distutils/", line 967, in run_commands
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/", line 1214, in run_command
      File "/Users/ashishgoyal/gitrepos/pact-python/venv_pact/lib/python3.9/site-packages/setuptools/_distutils/", line 986, in run_command
      File "/Users/ashishgoyal/gitrepos/pact-python/", line 64, in run
        install_ruby_app(package_bin_path, download_bin_path=None)
      File "/Users/ashishgoyal/gitrepos/pact-python/", 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.

Yousaf Nabi (

04/26/2022, 10:08 PM
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

Matt ( / pact-js / pact-go)

05/20/2022, 12:38 AM
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