BLD: Clang error while installing snappy in requirements-dev.txt
See original GitHub issueProblem description
I was going through the instructions in setting up the dev environment on Mac here:
And while I was trying to execute the below code:
# Install the build dependencies
python -m pip install -r requirements-dev.txt
I got the below clang error (redacted):
Running setup.py install for python-snappy ... error
ERROR: Command errored out with exit status 1:
…
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -I/usr/local/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/sqlite/include -I/Users/xxx/virtualenvs/pandas-dev/include -I/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/include/python3.7m -c snappy/snappymodule.cc -o build/temp.macosx-10.15-x86_64-3.7/snappy/snappymodule.o
snappy/snappymodule.cc:31:10: fatal error: 'snappy-c.h' file not found
#include <snappy-c.h>
^~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: …
I went through the rest of the virtual environment set up fine besides this issue.
Issue Analytics
- State:
- Created 4 years ago
- Comments:23 (21 by maintainers)
Top Results From Across the Web
Clang error when running pip i requirements.txt (psycopg2)
When running pip3 install -r requirements.txt for my project, I get the following error: ld: library not found for -lssl clang: error: ...
Read more >Errors while running pip install -r requirements.txt - MongoDB
I am getting these kinds of error while running pip install -r requirements.txt in virtualenv. Preparing wheel metadata … error ERROR: ...
Read more >Hacking on Qtile
Go into the docs/ directory and run pip install -r requirements.txt . Build the documentation with make ...
Read more >issue installing python-snappy - splunktool
brew install snappy # snappy library from Google $ CPPFLAGS ... and will cause pip users get errors when building the docs.
Read more >Dependency protection with Python and Github actions
If you're building an executable or executable-ish (e.g. a command ... run: pip install -r requirements-dev.txt - name: Test run: pytest.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Gotcha. Yea so if we don’t actually need it I would be OK to remove from the requirements files
@kendricng something you would be interested in submitting a PR for?
Looks like this was added in #26657 and has a comment on master that it is required for pyarrow - @datapythonista any chance you know what this is?