Closed
Description
🐞 Problem
If there is no space left in /tmp
, the following output is seen on initialization:
❯ ssh server.local
Last login: Sat Nov 4 14:04:33 2023 from 192.168.0.66
OSError: [Errno 28] No space left on device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3/dist-packages/virtualenvwrapper/hook_loader.py", line 223, in <module>
main()
File "/usr/lib/python3/dist-packages/virtualenvwrapper/hook_loader.py", line 145, in main
output.close()
OSError: [Errno 28] No space left on device
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 and that PATH is
set properly.
pi@server:~ $
While the underlying cause is obvious, the message can be quite distracting.
💡 Possible solution
Add error handling for IOErrors in hook_loader.py
.
Metadata
Metadata
Assignees
Labels
No labels