[issue41529] Unable to compile 3.0b3 on Ubuntu systems: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

2020-08-12 Thread STINNER Victor


STINNER Victor  added the comment:

It seems like you're getting the error while running "make". I'm surprised by 
the sys.path value. Do you have a file called pybuilddir.txt in the current 
directory? If yes, what does it contain?

Can you please try the command:

make SHELL="bash -x"

What is your current directory? Is it '/home/ajung/src/pp.server/Python-3.9.0b?

--
nosy: +vstinner

___
Python tracker 

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



[issue41529] Unable to compile 3.0b3 on Ubuntu systems: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

2020-08-12 Thread Zachary Ware

Zachary Ware  added the comment:

Can you reproduce this with the current release (3.9.0rc1)?  Also, how did you 
call `./configure` and `make`?

Adding Ɓukasz so this is on his radar in case the first answer is affirmative 
and there's nothing exotic in the second.  For the record, I can't reproduce on 
Ubuntu-based Pop_OS 20.04.

--
nosy: +lukasz.langa, zach.ware

___
Python tracker 

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



[issue41529] Unable to compile 3.0b3 on Ubuntu systems: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding

2020-08-12 Thread Andreas Jung


New submission from Andreas Jung :

Building 3.9.0b3 fails on Ubuntu 19 and 20 in same way:

./python -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Could not find platform independent libraries 
Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = (not set)
  program name = './python'
  isolated = 0
  environment = 0
  user site = 1
  import site = 0
  sys._base_executable = '/home/ajung/src/pp.server/Python-3.9.0b3/python'
  sys.base_prefix = '/opt/python-3.9.0b3'
  sys.base_exec_prefix = '/opt/python-3.9.0b3'
  sys.platlibdir = 'lib'
  sys.executable = '/home/ajung/src/pp.server/Python-3.9.0b3/python'
  sys.prefix = '/opt/python-3.9.0b3'
  sys.exec_prefix = '/opt/python-3.9.0b3'
  sys.path = [
'/opt/python-3.9.0b3/lib/python39.zip',
'/opt/python-3.9.0b3/lib/python3.9',
'/opt/python-3.9.0b3/lib/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the 
filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'

Current thread 0x7f824c25c280 (most recent call first):

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

--
components: Build
messages: 375216
nosy: ajung
priority: normal
severity: normal
status: open
title: Unable to compile 3.0b3 on Ubuntu systems: Fatal Python error: 
init_fs_encoding: failed to get the Python codec of the filesystem encoding
versions: Python 3.9

___
Python tracker 

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