[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs
Vajrasky Kok
report at bugs.python.org
Thu Dec 5 05:22:10 CET 2013
New submission from Vajrasky Kok:
$ sudo adduser --no-create-home cutecat
Adding user `cutecat' ...
Adding new group `cutecat' (1007) ...
Adding new user `cutecat' (1005) with group `cutecat' ...
Not creating home directory `/home/cutecat'.
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for cutecat
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
$ su cutecat
Password:
$ ./python
Python 3.4.0b1 (default:1f1498fe50e5, Dec 5 2013, 09:48:25)
[GCC 4.7.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Error in atexit._run_exitfuncs:
FileNotFoundError: [Errno 2] No such file or directory
$
Python 2.7 and 3.3 do not throw error.
$ ./python
Python 3.3.3+ (3.3:07425df887b5+, Dec 2 2013, 12:27:06)
[GCC 4.7.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[60778 refs]
[41580 refs]
$
$ ./python
Python 2.7.6+ (2.7:181ced5bf0be, Dec 4 2013, 11:23:42)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
$
----------
components: Extension Modules
messages: 205273
nosy: vajrasky
priority: normal
severity: normal
status: open
title: Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs
type: behavior
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19891>
_______________________________________
More information about the Python-bugs-list
mailing list