ish-app / ish-app/ish

Python can’t access /dev/null

Open
#1,349 4 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.