Set Up Environment: Python
Set Up Environment: Python
Set up environment
FlexGet and dependencies currently need ~7MB of free space, plus the stuff you install with opkg
(another ~3MB). It can be trimmed down, because there are dependencies only needed for future webui
so it would be possible to run FlexGet without them. However easy_install will install them too.
Python
Install python with sqlite3 and yaml. Python-openssl is only necessary for https connections, python-
expat for the nzb-plugin.
easy_install
opkg install distribute
pip
pip usage: (http://www.pip-installer.org/en/latest/usage.html)
easy_install pip
Install
Run command:
If you decide to unpack your packages on an external storage (recommended), use the following
command: (this is needed if you get a ‘No space left on device’ error)
If the installation fails (IOError’s, End of le…), it’s related to a full le system, review your extroot.
https://flexget.com/InstallWizard/OpenWrt 1/2
5/19/2020 FlexGet
Verify installation
Run command:
# flexget -V
FlexGet 1.0r2230
You can use the following to set Python’s path to point to the external storage so that it installs all
packages on your external path e.g an attached USB ash drive Once you have completed the above step
“opkg install distribute”
Run command:
export PYTHONPATH=$PYTHONPATH:/mnt/sda1
easy_install -d /mnt/sda1/ flexget
You can also put the above export command in the “startup” section of openWRT so that path is loaded at
router bootup.
Continue
Scheduling (/InstallWizard/Linux/Environment/FlexGet/Scheduling)
https://flexget.com/InstallWizard/OpenWrt 2/2