No usable temporary directory found No usable temporary directory found python python

No usable temporary directory found


This kind of error occured in two case

  1. permission(should be drwxrwxrwt and owened by root)
  2. space

To check space(disk usage)just run the command on terminal

df -h

Will list the disk usage on unix and get the output like

Filesystem      Size  Used Avail Use% Mounted on/dev/sda5        28G   15G   12G  58% /

If the root(mounted on /) usage is 100%.

You need to clean the tmp directory or restart the machine or make some space on the root.


Problem can also occur if inode are full.

You can type df -i

# df -iFilesystem      Inodes   IUsed  IFree IUse% Mounted onudev            253841     322 253519    1% /devtmpfs           255838     430 255408    1% /run/dev/xvda1     5120000 5120000      0  100% /tmpfs           255838       1 255837    1% /dev/shmtmpfs           255838       7 255831    1% /run/locktmpfs           255838      16 255822    1% /sys/fs/cgrouptmpfs           255838       4 255834    1% /run/user/1000


This error can occur when the file system has been switched to read-only mode.