This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kichik
Recipients kichik
Date 2012-12-28.06:11:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356675108.02.0.21138796437.issue16800@psf.upfronthosting.co.za>
In-reply-to
Content
Reproduction details:

[root@meh /]# uname -a
Linux meh 2.6.32-131.17.1.el6-0.0.3.smp.pae.gcc4.1.x86.i686 #1 SMP Tue Dec 20 02:40:22 PST 2011 i686 GNU/Linux
[root@meh /]# pwd
/
[root@meh /]# dd if=/dev/zero of=/tmp/BIG bs=4M
dd: writing `/tmp/BIG': No space left on device
31+0 records in
30+0 records out
127254528 bytes (127 MB) copied, 3.7028 s, 34.4 MB/s
[root@meh /]# ls
bin  boot  dev  etc  home  initrd  lib  lost+found  media  mnt  opt  proc  root  sbin  srv  sys  tmp  usr  var
[root@meh /]# python -c "import tempfile; tempfile.mktemp()"
Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/usr/lib/python2.4/tempfile.py", line 362, in mktemp
    dir = gettempdir()
  File "/usr/lib/python2.4/tempfile.py", line 268, in gettempdir
    tempdir = _get_default_tempdir()
  File "/usr/lib/python2.4/tempfile.py", line 214, in _get_default_tempdir
    raise IOError, (_errno.ENOENT,
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
[root@meh /]# ls
bin  boot  dev  etc  home  initrd  lib  lost+found  media  mnt  opt  proc  -qE-nI  root  sbin  srv  sys  tmp  usr  var
[root@meh /]#
History
Date User Action Args
2012-12-28 06:11:48kichiksetrecipients: + kichik
2012-12-28 06:11:48kichiksetmessageid: <1356675108.02.0.21138796437.issue16800@psf.upfronthosting.co.za>
2012-12-28 06:11:48kichiklinkissue16800 messages
2012-12-28 06:11:47kichikcreate