[issue38236] Dump the Python path configuration at the first import error

2019-09-23 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue38236] Dump the Python path configuration at the first import error

2019-09-23 Thread STINNER Victor
STINNER Victor added the comment: I backported my change to Python 3.8. Example with PYTHONPATH set to Python 2.7 with Python 3.8: $ PYTHONPATH=/usr/lib64/python2.7/ ./python -c pass Python path configuration: PYTHONHOME = (not set) PYTHONPATH = '/usr/lib64/python2.7/' program name = '.

[issue38236] Dump the Python path configuration at the first import error

2019-09-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset c5c642565e260477ae2fb29d0c86a91e19702ae3 by Victor Stinner in branch '3.8': bpo-38236: Dump path config at first import error (GH-16300) (GH-16332) https://github.com/python/cpython/commit/c5c642565e260477ae2fb29d0c86a91e19702ae3 -- _

[issue38236] Dump the Python path configuration at the first import error

2019-09-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset 88e6447451fb5525e83e802c66c3e51b4a45bf86 by Victor Stinner in branch 'master': bpo-38236: Fix init_dump_ascii_wstr() (GH-16333) https://github.com/python/cpython/commit/88e6447451fb5525e83e802c66c3e51b4a45bf86 -- _

[issue38236] Dump the Python path configuration at the first import error

2019-09-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15910 pull_request: https://github.com/python/cpython/pull/16333 ___ Python tracker ___ __

[issue38236] Dump the Python path configuration at the first import error

2019-09-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +15909 pull_request: https://github.com/python/cpython/pull/16332 ___ Python tracker ___ __

[issue38236] Dump the Python path configuration at the first import error

2019-09-23 Thread STINNER Victor
STINNER Victor added the comment: New changeset fcdb027234566c4d506d6d753c7d5638490fb088 by Victor Stinner in branch 'master': bpo-38236: Dump path config at first import error (GH-16300) https://github.com/python/cpython/commit/fcdb027234566c4d506d6d753c7d5638490fb088 -- _

[issue38236] Dump the Python path configuration at the first import error

2019-09-20 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: +1 -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue38236] Dump the Python path configuration at the first import error

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: > user site = 1 > import site = 1 I'm not sure that dumping these configuration variables are useful to debug this very specific error: "Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding" They only have an

[issue38236] Dump the Python path configuration at the first import error

2019-09-20 Thread STINNER Victor
STINNER Victor added the comment: Without my change: --- vstinner@apu$ PYTHONHOME=/xxx ./python 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 thr

[issue38236] Dump the Python path configuration at the first import error

2019-09-20 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +15886 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16300 ___ Python tracker ___ _

[issue38236] Dump the Python path configuration at the first import error

2019-09-20 Thread STINNER Victor
New submission from STINNER Victor : When Python path configuration is not properly configured, Python fails with an error looking like: --- Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundErro