[issue39397] Mac : fail to launch Python 3.8

2020-01-22 Thread Inada Naoki


Change by Inada Naoki :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39397] Mac : fail to launch Python 3.8

2020-01-22 Thread Sebastien Foo


Sebastien Foo  added the comment:

Thanks a lot for you help, my issue is solved.
My ~/.zshrc was having a LANG env var set to
 
LANG=en_US

I just commented out this line and everything works fine.
I don't know why this was set like that.

Thanks again for your time you can close this ticket.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39397] Mac : fail to launch Python 3.8

2020-01-21 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

The other locale related settings are off as well, the default system locale 
ends with ".UTF-8".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39397] Mac : fail to launch Python 3.8

2020-01-21 Thread Inada Naoki


Inada Naoki  added the comment:

> doing env I get this (no LC_ALL )
[snip]
> LC_CTYPE=en_US

This is wrong setting.  Find where this environment variable is set and remove 
it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39397] Mac : fail to launch Python 3.8

2020-01-21 Thread Sebastien Foo


Sebastien Foo  added the comment:

thanks averyone to help me
here are the values you are expecting

locale
LANG="en_US"
LC_COLLATE="en_US"
LC_CTYPE="en_US"
LC_MESSAGES="en_US"
LC_MONETARY="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_ALL=

doing env I get this (no LC_ALL )
LC_TERMINAL_VERSION=3.3.7
ITERM_PROFILE=zsh
XPC_FLAGS=0x0
LANG=en_US
SHELL=/usr/local/bin/zsh
TERM_PROGRAM_VERSION=3.3.7
TERM_PROGRAM=iTerm.app
LC_TERMINAL=iTerm2
LC_CTYPE=en_US

And for the last question I am using Catalina 10.15.2

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39397] Mac : fail to launch Python 3.8

2020-01-21 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

An additional question: what version of macOS are you using?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39397] Mac : fail to launch Python 3.8

2020-01-20 Thread STINNER Victor


STINNER Victor  added the comment:

Can you try to dump your environment variables? Try maybe the "env" command.

At least, I would need: LC_ALL, LC_CTYPE and LANG.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39397] Mac : fail to launch Python 3.8

2020-01-20 Thread Inada Naoki


Inada Naoki  added the comment:

Try `locale` command.  What is shown?

--
nosy: +inada.naoki

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39397] Mac : fail to launch Python 3.8

2020-01-20 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39397] Mac : fail to launch Python 3.8

2020-01-20 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
components: +macOS
nosy: +ned.deily, ronaldoussoren

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39397] Mac : fail to launch Python 3.8

2020-01-20 Thread Sebastien Foo


New submission from Sebastien Foo :

Hello,
I am facing an issue with python on mac and there is not much information that 
I can find to fix it.
When I installed the latest cli for Azure (brew upgrade azure-cli) it installed 
python 3.8
And then the az cli failed and running the python 3.8 failed too with the 
following error.
 
/usr/local/Cellar/python@3.8/3.8.1/Frameworks/Python.framework/Versions/3.8/bin/python3.8
Fatal Python error: config_get_locale_encoding: failed to get the locale 
encoding: nl_langinfo(CODESET) failed
Python runtime state: preinitialized
 
I have tried to reinstall python and the azure cli without success.

Any help would be much appreciated.

--
components: Installation
messages: 360322
nosy: Sebastien Foo
priority: normal
severity: normal
status: open
title: Mac : fail to launch Python 3.8
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com