Install `python-snappy` (fatal error: snappy-c.h: No such file or directory)

Hi there,

when installing python-snappy for snappy support in motor, this results in the following error:

fatal error: snappy-c.h: No such file or directory

According to web-research, this is because the development headers are missing; based on the Linux Distro in use, this missing package is named differently:

DEB-based: sudo apt-get install libsnappy-dev

RPM-based: sudo yum install csnappy-devel

Alpine (Docker) apk add --no-cache snappy-dev g++

openSUSE: sudo zypper in snappy-devel

(How) can this be done with Render?

Hi,

OS-level libraries can’t be installed on Render Native Runtimes, using package managers, e.g. apt-get.

You’d need to use Docker to set up the environment with the custom libraries your project requires.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.