OpenWrt Forum Archive

Topic: need to run tcl/expect or Python Pexpect on openwrt

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

If all that it needs is Python, you could just unzip it from here: https://pypi.python.org/pypi/pexpect/3.3
And then copy it on your device.

But first

opkg update ; opkg install python

And you'd need to make sure you have about 15+ MB for Python to install everything.
Tcl/Tk may not be in OpenWRT's Python, since I think it requires X11 and a display.

Obviously [if 15 MB is too much] you could start with just installing python-light (opkg install python-light) and add other packages that are needed (for Pexpect) afterward.
Python has been split into smaller packages to offer some configurability to fit onto smaller flashes.

The discussion might have continued from here.