Hide Forgot
Description of problem: $ touch ~/foo touch: cannot touch '/home/fedora/foo': Read-only file system $ python Python 3.9.0b3 (default, Jun 10 2020, 00:00:00) [GCC 10.1.1 20200507 (Red Hat 10.1.1-1)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> ^D Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/usr/lib64/python3.9/site.py", line 462, in write_history readline.write_history_file(history) OSError: [Errno 30] Read-only file system Looking at /usr/lib64/python3.9/site.py, it already silently skips PermissionError. It should handle EROFS the same. Version-Release number of selected component (if applicable): python3-3.9.0~b3-1.fc33.x86_64
Do I assume correctly that this is not a regression of 3.9? Would you please report this upstream? See also https://bugs.python.org/issue15833
https://bugs.python.org/issue41193
> https://bugs.python.org/issue41193 I proposed a fix upstream: https://github.com/python/cpython/pull/21279 If it's merged, it will be part of the next Python 3.9 release. I don't think that we need to backport it earlier in Fedora. We can wait until the Fedora package will be rebased to the newer Python 3.9 version. So I close the issue as UPSTREAM. Thanks for your bug report Zbigniew Jędrzejewski-Szmek! In the meanwhile, you can safely ignore the error. You may be able to workaround the issue by overriding the HOME directory by setting HOME environment variable: use a temporary directory which can be modified.