Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD FAILED (OS X 14.0 using python-build 20180424) "libc++abi: terminating due to uncaught exception of type NSException" #2801

Closed
pekanchuan opened this issue Sep 28, 2023 · 5 comments
Labels
third-party the problem is in third-party software

Comments

@pekanchuan
Copy link

pyenv install 3.11.5
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.11.5.tar.xz...
-> https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tar.xz
error: failed to download Python-3.11.5.tar.xz

BUILD FAILED (OS X 14.0 using python-build 20180424)

Last 10 log lines:
29 dyld 0x000000018084fb14 _ZNK5dyld416JustInTimeLoader15runInitializersERNS_12RuntimeStateE + 36
30 dyld 0x0000000180849b4c _ZNK5dyld46Loader23runInitializersBottomUpERNS_12RuntimeStateERN5dyld35ArrayIPKS0_EE + 220
31 dyld 0x000000018084d654 _ZZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateEENK3$_1clEv + 112
32 dyld 0x0000000180849ccc _ZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateE + 304
33 dyld 0x000000018086ead4 _ZN5dyld44APIs25runAllInitializersForMainEv + 464
34 dyld 0x0000000180831f34 _ZN5dyld4L7prepareERNS_4APIsEPKN5dyld313MachOAnalyzerE + 3192
35 dyld 0x0000000180830f44 start + 1948
)
libc++abi: terminating due to uncaught exception of type NSException
/opt/homebrew/Cellar/pyenv/2.3.27/plugins/python-build/bin/python-build: line 365: 18369 Abort trap: 6 aria2c --allow-overwrite=true --no-conf=true -d "${dir_out}" -o "${out}" ${ARIA2_OPTS} "$1" 1>&4

I tried reinstall pyenv, aria2 and their dependencies, but won't work.

Also tried brew install python-build, still not work, please help me.

@native-api
Copy link
Member

Please add the necessary diagnostic information as per the issue template.

@native-api native-api changed the title BUILD FAILED (OS X 14.0 using python-build 20180424) BUILD FAILED (OS X 14.0 using python-build 20180424) "libc++abi: terminating due to uncaught exception of type NSException" Sep 30, 2023
@ijunaidf
Copy link

ijunaidf commented Oct 3, 2023

I am facing the same issue here on M1 Mac with fresh Sonoma install.

$ pyenv install 3.11
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.11.5.tar.xz...
-> https://www.python.org/ftp/python/3.11.5/Python-3.11.5.tar.xz
error: failed to download Python-3.11.5.tar.xz

BUILD FAILED (OS X 14.0 using python-build 20180424)

Results logged to /var/folders/t2/pn20fy1d6zg8k1qtbhtl5szc0000gn/T/python-build.20231003110323.6210.log

Last 10 log lines:
	29  dyld                                0x0000000186e47b14 _ZNK5dyld416JustInTimeLoader15runInitializersERNS_12RuntimeStateE + 36
	30  dyld                                0x0000000186e41b4c _ZNK5dyld46Loader23runInitializersBottomUpERNS_12RuntimeStateERN5dyld35ArrayIPKS0_EE + 220
	31  dyld                                0x0000000186e45654 _ZZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateEENK3$_1clEv + 112
	32  dyld                                0x0000000186e41ccc _ZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateE + 304
	33  dyld                                0x0000000186e66ad4 _ZN5dyld44APIs25runAllInitializersForMainEv + 464
	34  dyld                                0x0000000186e29f34 _ZN5dyld4L7prepareERNS_4APIsEPKN5dyld313MachOAnalyzerE + 3192
	35  dyld                                0x0000000186e28f44 start + 1948
)
libc++abi: terminating due to uncaught exception of type NSException
/opt/homebrew/Cellar/pyenv/2.3.28/plugins/python-build/bin/python-build: line 365:  6291 Abort trap: 6           aria2c --allow-overwrite=true --no-conf=true -d "${dir_out}" -o "${out}" ${ARIA2_OPTS} "$1" 1>&4

Adding additional details:

  • Platform information: Macos Sonoma 14.0
  • OS architecture: arm64
  • pyenv version: 2.3.28
  • Python version: 3.11.5
  • C Compiler information: Apple clang version 15.0.0 (clang-1500.0.40.1)

Attached:

@iainn
Copy link

iainn commented Oct 3, 2023

I'm experiencing the same issue. It works fine when Rosetta isn't enabled, but as soon as I use Rosetta, I get the same error.

@emision
Copy link

emision commented Oct 3, 2023

Problem in aria2c, check here aria2/aria2#2083

Just add export LC_MESSAGES="C" in .bashrc

@ijunaidf
Copy link

ijunaidf commented Oct 3, 2023

Same here, aria2c is causing the error. I uninstalled the brew provided aria2c and manually built it from the source and then it worked.

@native-api native-api added third-party the problem is in third-party software and removed need-feedback labels Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
third-party the problem is in third-party software
Projects
None yet
Development

No branches or pull requests

5 participants