No space left on device after installing python

I want to build a simple tcp server to create an API for my router. I chose python since that seems to be the language of choice on this router. I want the API so I can send JSON events to update settings and check statuses. I ssh’ed into the router and installed python with the following commands:

opkg update
opkg install python

No if I try to install anything else it says, ‘No space left on device.’ df shows:

Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 8064 7928 136 98% /
/dev/root 6912 6912 0 100% /rom
tmpfs 30476 136 30340 0% /tmp
/dev/mtdblock5 8064 7928 136 98% /overlay
overlayfs:/overlay 8064 7928 136 98% /
tmpfs 512 0 512 0% /dev

Is that right? Could it already be full??

@embedded_sys Yes, that’s right, python ipk is too large to mini router. If you are sure want it, you should tailoring the image.

Clearly that is not true :slight_smile:
The full Python suite is huge.

PHP seems to be a better fit and well worth a look.
I have a custom image with php7cli, php7cgi and lighttpd and still have 90% free space.

Does micropython work for you? You can use this one if it works.

PhP is much smaller I think.

BTW: AR300M with 128MB flash is your friend.

Otherwise you can use USB/MicroSD storage with Exroot. Not difficult to set up.

Awesome. I’ll switch to PHP. Thanks!