Can't install any ARM version of python #2878
Replies: 4 comments 2 replies
-
|
https://github.com/search?q=repo%3Apyenv%2Fpyenv+died+with+%3CSignals.SIGABRT%3A+6&type=issues , in particular, #2707 and #2815 (comment) |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the reply. I went through those carefully and went through the "Common Build Problems" wiki, in addition to reinstalling Xcode, Homebrew, pyenv, and all sorts of compiler and linker flag settings. Forgive my ignorance as I'm probably screwing up those settings in some way. I can't tell if I've made forward progress or reverse progress but I'm now getting these common two errors but can't seem to solve them after 3 days of working on this: Is the "Python ssl extension" separate from the one I'm referring to in my install command? I'm confused. Install command: The initial response from this is: So, it obviously sees those libraries. My environment looks like this: And my .zshrc file looks like this: I shouldn't put the CPPFLAGS and LDFLAGS in my zsh profile, I realize, but I'm grasping at straws at this point. Thanks. |
Beta Was this translation helpful? Give feedback.
-
|
Solution-- I realized that each library I added to Homebrew would then trigger a "missing module" error during the install process, counter-intuitively. I simply removed all those libraries from Homebrew, which forced the download of them during the install process and the install proceeded smoothly. The question remains: What is happening between Pyenv and Homebrew to cause this counterintuitive behavior? |
Beta Was this translation helpful? Give feedback.
-
This seems odd to me... 🤔 You say you're building an ARM version of Python, and using Homebrew... and there are instances of Yet it's somehow running the export LDFLAGS="-L/opt/homebrew/lib"
export LDFFLAGS="-L/opt/homebrew/opt/[email protected]/lib:$LDFLAGS"
^^^ Typo hereAlso, this setting for the
Something might be causing subprocess.CalledProcessError: Command '['/private/var/folders/xk/vp0pdf492tl589vtnykls31r0000gn/T/python-build.20240101224952.75879/Python-3.10.13/python.exe', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = ['/var/folders/xk/vp0pdf492tl589vtnykls31r0000gn/T/tmpk0lwgq2z/setuptools-65.5.0-py3-none-any.whl', '/var/folders/xk/vp0pdf492tl589vtnykls31r0000gn/T/tmpk0lwgq2z/pip-23.0.1-py3-none-any.whl'] + sys.path\nsys.argv[1:] = ['install', '--no-cache-dir', '--no-index', '--find-links', '/var/folders/xk/vp0pdf492tl589vtnykls31r0000gn/T/tmpk0lwgq2z', '--root', '/', '--upgrade', 'setuptools', 'pip']\nrunpy.run_module("pip", run_name="main", alter_sys=True)\n']' died with <Signals.SIGABRT: 6>.So, it looks like this is pip install --no-cache-dir --no-index --find-links '/var/folders/xk/vp0pdf492tl589vtnykls31r0000gn/T/tmpk0lwgq2z' --root / --upgrade setuptoolsHowever, it's trying to run this using Another thing to check is whether you're on an Apple Silicon Mac and if ## Figure out OSX version (source: https://www.opscode.com/chef/install.sh)
function detect_platform_version() {
# Matching the tab-space with sed is error-prone
platform_version=$(sw_vers | awk '/^ProductVersion:/ { print $2 }')
major_version=$(echo "$platform_version" | cut -d. -f1,2)
# x86_64 Apple hardware often runs 32-bit kernels (see OHAI-63)
# macOS Monterey + Apple M1 Silicon (arm64) gives empty string for this x86_64 check
x86_64=$(sysctl -n hw.optional.x86_64)
arm64=$(sysctl -n hw.optional.arm64)
if [[ "$x86_64" == '1' ]]; then
machine="x86_64"
elif [[ "$arm64" == '1' ]]; then
machine="arm64"
fi
echo "Detected:" >&2
echo "platform_version: ${platform_version}" >&2
echo "major_version: ${major_version}" >&2
echo "machine: ${machine}" >&2
}
detect_platform_versionThis should print " Run the file /private/var/folders/xk/vp0pdf492tl589vtnykls31r0000gn/T/python-build.20240101224952.75879/Python-3.10.13/python.exeThis should show you that it's either an If it shows up as a Windows executable, then something's wrong with your OS being detected properly. One final thing I noticed is that you're using So, remove and unset the unset CC
pyenv install 3.10.13Footnotes
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using homebrew tcl-tk, readline, openssl, zlib, and gcc.
pyenv: 2.3.35
Mac OS: 14.2.1
Homebrew: 4.22
CC=gcc pyenv install 3.10.13
python-build: use [email protected] from homebrew
python-build: use readline from homebrew
Downloading Python-3.10.13.tar.xz...
-> https://www.python.org/ftp/python/3.10.13/Python-3.10.13.tar.xz
Installing Python-3.10.13...
python-build: use tcl-tk from homebrew
python-build: use readline from homebrew
python-build: use zlib from homebrew
...
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/private/var/folders/xk/vp0pdf492tl589vtnykls31r0000gn/T/python-build.20240101224952.75879/Python-3.10.13/python.exe', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = ['/var/folders/xk/vp0pdf492tl589vtnykls31r0000gn/T/tmpk0lwgq2z/setuptools-65.5.0-py3-none-any.whl', '/var/folders/xk/vp0pdf492tl589vtnykls31r0000gn/T/tmpk0lwgq2z/pip-23.0.1-py3-none-any.whl'] + sys.path\nsys.argv[1:] = ['install', '--no-cache-dir', '--no-index', '--find-links', '/var/folders/xk/vp0pdf492tl589vtnykls31r0000gn/T/tmpk0lwgq2z', '--root', '/', '--upgrade', 'setuptools', 'pip']\nrunpy.run_module("pip", run_name="main", alter_sys=True)\n']' died with <Signals.SIGABRT: 6>.
make: *** [install] Error 1
Suggestions?
Beta Was this translation helpful? Give feedback.
All reactions