Python can’t access /dev/null
Open
Nobody has claimed this yet.
unconfirmed
- Dominant language
- C
- Stars
- 20.5k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
Any ideas what goes wrong? I can see /dev/null in the /dev folder.
The problem appears in imported Docker containers only (consult the Wiki).
from IPython.utils import io
File "/usr/lib/python3.8/site-packages/IPython/utils/io.py", line 87, in <module>
devnull = open(os.devnull, 'w')
OSError: [Errno 6] No such device or address: '/dev/null'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by consulting the project Wiki and reproducing the failure with an imported Docker container. Investigate how /dev/null is exposed there and compare it with the Python call shown from /usr/lib/python3.8/site-packages/IPython/utils/io.py. Done means Python can open /dev/null in imported containers without the reported OSError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, python
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100