question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BLD: Clang error while installing snappy in requirements-dev.txt

See original GitHub issue

Problem description

I was going through the instructions in setting up the dev environment on Mac here:

Contributing to pandas

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:open
  • Created 4 years ago
  • Comments:23 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
WillAydcommented, Mar 4, 2020

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?

1reaction
WillAydcommented, Mar 3, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found