Cannot install because Python header files are missing
- Dominant language
- C++
- Stars
- 13.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Hi! When I run `arch -x86_64 /usr/local/homebrew/bin/brew reinstall watchman` , I see
```
Warning: Building watchman from source:
The bottle needs to be installed into /usr/local.
==> Downloading https://github.com/google/googletest/archive/release-1.10.0.tar.gz
Already downloaded: /Users/kevin/Library/Caches/Homebrew/downloads/da44d988e96f6b92d58714b799f573289491c0fd541ef2edf95f9573d463fe95--googletest-release-1.10.0.tar.gz
==> Downloading https://github.com/facebook/watchman/archive/v2021.11.15.00.tar.gz
Already downloaded: /Users/kevin/Library/Caches/Homebrew/downloads/485f7ce4e606c63efdc6283cb19f7f1699d1e9834d9b7d964a37cc876f6f5128--watchman-2021.11.15.00.tar.gz
==> Reinstalling watchman
==> cmake . -DCMAKE_INSTALL_PREFIX=/private/tmp/watchman-20211126-41505-1jno4e7/watch
bre==> make install
w reinstall watchman
==> cmake -S . -B build -DBUILD_SHARED_LIBS=ON -DENABLE_EDEN_SUPPORT=OFF -DWATCHMAN_V
==> cmake --build build
Last 15 lines from /Users/kevin/Library/Logs/Homebrew/watchman/04.cmake:
creating build/temp.macosx-12-x86_64-3.10/tmp
creating build/temp.macosx-12-x86_64-3.10/tmp/watchman-20211126-41505-1jno4e7
creating build/temp.macosx-12-x86_64-3.10/tmp/watchman-20211126-41505-1jno4e7/watchman-2021.11.15.00
creating build/temp.macosx-12-x86_64-3.10/tmp/watchman-20211126-41505-1jno4e7/watchman-2021.11.15.00/watchman
creating build/temp.macosx-12-x86_64-3.10/tmp/watchman-20211126-41505-1jno4e7/watchman-2021.11.15.00/watchman/python
creating build/temp.macosx-12-x86_64-3.10/tmp/watchman-20211126-41505-1jno4e7/watchman-2021.11.15.00/watchman/python/pywatchman
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -I/usr/local/homebrew/include -I/usr/local/homebrew/opt/openssl@1.1/include -I/usr/local/homebrew/opt/sqlite/include -I/usr/local/Homebrew/Cellar/python@3.10/3.10.0_2/Frameworks/Python.framework/Versions/3.10/include/python3.10 -c /tmp/watchman-20211126-41505-1jno4e7/watchman-2021.11.15.00/watchman/python/pywatchman/bser.c -o build/temp.macosx-12-x86_64-3.10/tmp/watchman-20211126-41505-1jno4e7/watchman-2021.11.15.00/watchman/python/pywatchman/bser.o
/tmp/watchman-20211126-41505-1jno4e7/watchman-2021.11.15.00/watchman/python/pywatchman/bser.c:9:10: fatal error: 'Python.h' file not found
#include
^~~~~~~~~~
1 error generated.
error: command '/usr/local/homebrew/Library/Homebrew/shims/mac/super/clang' failed with exit code 1
make[2]: *** [build/pytimestamp] Error 1
make[1]: *** [CMakeFiles/pybuild.dir/all] Error 2
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
versioned_dependencies_conflicts_allowlist: remove watchman https://github.com/Homebrew/homebrew-core/pull/89269
```
I have python installed
Contributor guide
Assessment
This issue has not been assessed yet.