Skip to content

Commit

Permalink
Merge pull request #51 from sanger/update-readme-to-include-snappy-fix
Browse files Browse the repository at this point in the history
Updated readme to include snappy fix.
  • Loading branch information
stevieing authored Jan 16, 2024
2 parents 4b1d7d2 + ec56b63 commit ebc0c55
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,31 @@ This project uses a Docker image as the unit of deployment. Update `.release-ver
major/minor/patch. On merging a pull request into *develop* or *master*, a release will be created
along with the Docker image associated to that release.

## Snappy

```
If when you install the dependencies and you see the following error:
[pipenv.exceptions.InstallError]: src/snappy/snappymodule.cc:33:10: fatal error: 'snappy-c.h' file not found
[pipenv.exceptions.InstallError]: #include <snappy-c.h>
[pipenv.exceptions.InstallError]: ^~~~~~~~~~~~
[pipenv.exceptions.InstallError]: 1 error generated.
[pipenv.exceptions.InstallError]: error: command '/usr/bin/clang' failed with exit code 1
[pipenv.exceptions.InstallError]: [end of output]
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]: note: This error originates from a subprocess, and is likely not a problem with pip.
[pipenv.exceptions.InstallError]: ERROR: Failed building wheel for python-snappy
[pipenv.exceptions.InstallError]: ERROR: Could not build wheels for python-snappy, which is required to install pyproject.toml-based projects
ERROR: Couldn't install package: {}
Package installation failed...
```

You need to install snappy and set the path:

```
brew install snappy
```

```
pip install --global-option=build_ext --global-option='-I/opt/homebrew/include' --global-option='-L/opt/homebrew/lib' python-snappy
```

0 comments on commit ebc0c55

Please sign in to comment.