This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Broken build on target machine with incorrect hostname (non-ascii)
Type: compile error Stage: resolved
Components: Installation, Unicode Versions: Python 3.3, Python 3.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: dmi.baranov, ezio.melotti, neologix
Priority: normal Keywords:

Created on 2013-06-03 05:40 by dmi.baranov, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg190516 - (view) Author: Dmi Baranov (dmi.baranov) * Date: 2013-06-03 05:40
As a part of issue #18109

$ echo hât | sudo tee /proc/sys/kernel/hostname
$ hostname #Yes, I know about RFC952;-)
hât

$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=POSIX
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

$ make
...
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Traceback (most recent call last):
  File "/home/d9frog9n/workspace/cpython_default/Lib/runpy.py", line 160, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/home/d9frog9n/workspace/cpython_default/Lib/runpy.py", line 73, in _run_code
    exec(code, run_globals)
  File "/home/d9frog9n/workspace/cpython_default/Lib/sysconfig.py", line 700, in <module>
    _main()
  File "/home/d9frog9n/workspace/cpython_default/Lib/sysconfig.py", line 688, in _main
    _generate_posix_vars()
  File "/home/d9frog9n/workspace/cpython_default/Lib/sysconfig.py", line 391, in _generate_posix_vars
    pybuilddir = 'build/lib.%s-%s' % (get_platform(), sys.version[:3])
  File "/home/d9frog9n/workspace/cpython_default/Lib/sysconfig.py", line 632, in get_platform
    osname, host, release, version, machine = os.uname()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
make: *** [pybuilddir.txt] Error 1
msg190524 - (view) Author: Charles-François Natali (neologix) * (Python committer) Date: 2013-06-03 08:53
Why open this issue, since it's obviously a duplicate of #18109?
msg190541 - (view) Author: Dmi Baranov (dmi.baranov) * Date: 2013-06-03 12:23
Just a another behavior. My mistake, sorry.
History
Date User Action Args
2022-04-11 14:57:46adminsetgithub: 62324
2013-06-08 21:51:15ezio.melottisetstage: resolved
2013-06-03 12:23:16dmi.baranovsetstatus: open -> closed
resolution: duplicate
messages: + msg190541
2013-06-03 08:53:15neologixsetnosy: + neologix
messages: + msg190524
2013-06-03 05:40:52dmi.baranovcreate