MisterTea / homebrew-et

Homebrew formula for Eternal Terminal
6 stars 9 forks source link

Install fails on macOS 12.3 #19

Closed jaredmoody closed 2 years ago

jaredmoody commented 2 years ago

Homebrew has python installed at /opt/homebrew/bin/python3, but looks like it's not found when installing:

❯ brew install MisterTea/et/et
==> Downloading https://github.com/MisterTea/EternalTerminal/archive/et-v6.1.10.tar.gz
Already downloaded: /Users/jaredmoody/Library/Caches/Homebrew/downloads/e10f07feb13f5aa0ecd43813188dd3731bc2c4b104e1c4a48add9c8a38661301--EternalTerminal-et-v6.1.10.tar.gz
==> Installing et from mistertea/et
==> cmake . -DDISABLE_VCPKG:BOOL=ON
Last 15 lines from /Users/jaredmoody/Library/Logs/Homebrew/et/01.cmake:
-- Check size of long
-- Check size of long - done
-- Found CURL: /opt/homebrew/opt/curl/lib/libcurl.dylib (found version "7.82.0")
CMake Error at /opt/homebrew/Cellar/cmake/3.22.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at
  least version "2.7")
Call Stack (most recent call first):
  /opt/homebrew/Cellar/cmake/3.22.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /opt/homebrew/Cellar/cmake/3.22.3/share/cmake/Modules/FindPythonInterp.cmake:169 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  external_imported/sentry-native/external/crashpad/util/CMakeLists.txt:354 (find_package)

-- Configuring incomplete, errors occurred!
See also "/tmp/et-20220324-20766-n3kjap/EternalTerminal-et-v6.1.10/CMakeFiles/CMakeOutput.log".
See also "/tmp/et-20220324-20766-n3kjap/EternalTerminal-et-v6.1.10/CMakeFiles/CMakeError.log".

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/mistertea/homebrew-et/issues

macOS 12.3, M1 Pro

mattzago commented 2 years ago

Making a symlink via:

ln -nfs /opt/homebrew/bin/python3 /opt/homebrew/bin/python

Seems to work around this. Apple pulled /usr/bin/python in macOS 12.3 so I'm guessing PYTHON_EXECUTABLE is invoking python and finding it missing on most macOS 12.3 setups now.

jaredmoody commented 2 years ago

That worked for me too, thanks!

binchenhu commented 2 years ago

This doesn't work for me, i'm still getting this error:


==> Installing et from mistertea/et
==> cmake . -DDISABLE_VCPKG:BOOL=ON
Last 15 lines from /Users/binchenhu/Library/Logs/Homebrew/et/01.cmake:
-- Check size of long
-- Check size of long - done
-- Found CURL: /usr/local/opt/curl/lib/libcurl.dylib (found version "7.82.0")
CMake Error at /usr/local/Cellar/cmake/3.23.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) (Required is at
  least version "2.7")
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.23.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.23.0/share/cmake/Modules/FindPythonInterp.cmake:169 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  external_imported/sentry-native/external/crashpad/util/CMakeLists.txt:354 (find_package)

-- Configuring incomplete, errors occurred!
See also "/tmp/et-20220401-3129-1h33ez5/EternalTerminal-et-v6.1.10/CMakeFiles/CMakeOutput.log".
See also "/tmp/et-20220401-3129-1h33ez5/EternalTerminal-et-v6.1.10/CMakeFiles/CMakeError.log".

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/mistertea/homebrew-et/issues`
mattzago commented 2 years ago

Note that what I posted is Homebrew’s Apple Silicon path for python3. If you’re on an Intel Mac I believe you’ll need to swap for /usr/local/bin equivalents.

jsquyres commented 2 years ago

Also see https://github.com/MisterTea/EternalTerminal/issues/501.