Free Up Install Space?

Hey guys - hoping an emonSD and file system guru can help me, although not strictly related to OEM!

Trying to side load tuya-convert for some home automation work but have hit a snag with a pip install. Keeping getting a free space error when one of the components tries to install:

Collecting pycryptodomex
  Using cached
Could not install packages due to an EnvironmentError: [Errno 28] No space left on device

I have tried clearly temp directories and pruning/clearing unused packages, but I am assuming this is a temp directory issue as I have plenty of space on the SD:

[email protected]:/tmp $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       4.0G  2.1G  1.8G  55% /
devtmpfs        484M     0  484M   0% /dev
tmpfs           488M     0  488M   0% /dev/shm
tmpfs           488M  6.6M  482M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           488M     0  488M   0% /sys/fs/cgroup
tmpfs           1.0M     0  1.0M   0% /var/lib/php/sessions
tmpfs           1.0M     0  1.0M   0% /var/tmp
tmpfs            30M     0   30M   0% /tmp
/dev/mmcblk0p3   10G  681M  8.9G   8% /var/opt/emoncms
/dev/mmcblk0p1  253M   52M  201M  21% /boot
log2ram          50M  1.6M   49M   4% /var/log
tmpfs            98M     0   98M   0% /run/user/1000

Is there a remapping of temp or a command that would allow me to get this package installed?


The general advice is don’t load anything on a system running emoncms and more so for tuya-convert. It mucks about with ports, services etc so really is not a good idea. I have an SD card specifically for tuya-convert.


Fair enough, thanks Brian. SD imaging it is.

It is also safer in the long run.

1 Like