asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
665 stars 58 forks source link

Unable to install Python 3.8.0 on MacOs Catalina #62

Closed maxdanilov closed 4 years ago

maxdanilov commented 4 years ago
asdf install python 3.8.0

Results in:

python-build 3.8.0 /Users/maxim.danilov/.asdf/installs/python/3.8.0
python-build: use openssl@1.1 from homebrew
python-build: use readline from homebrew
Downloading Python-3.8.0.tar.xz...
-> https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz
Installing Python-3.8.0...
python-build: use readline from homebrew
python-build: use zlib from xcode sdk

BUILD FAILED (OS X 10.15.1 using python-build 1.2.15-4-g089b828b)

Inspect or clean up the working tree at /var/folders/p5/msx_fqfd65545mstbnd7md380000gn/T/python-build.20191210165950.63262
Results logged to /var/folders/p5/msx_fqfd65545mstbnd7md380000gn/T/python-build.20191210165950.63262.log

Last 10 log lines:
    if test $? -ne 0 ; then \
        echo "generate-posix-vars failed" ; \
        rm -f ./pybuilddir.txt ; \
        exit 1 ; \
    fi
Fatal Python error: config_get_locale_encoding: failed to get the locale encoding: nl_langinfo(CODESET) failed
Python runtime state: preinitialized

generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Seems like this has to do something with locales. I'm using zsh and have the following vars for locale related stuff:

export LC_ALL="en_US"
export LC_CTYPE="en_US"
export LANG="en_US"
maxdanilov commented 4 years ago

Got it working with:

LC_ALL="C" asdf install python 3.8.0