Skip to content

Instantly share code, notes, and snippets.

@danielfm
Last active March 6, 2020 22:49
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielfm/f62686f488ad2e5df8bb to your computer and use it in GitHub Desktop.
Save danielfm/f62686f488ad2e5df8bb to your computer and use it in GitHub Desktop.
How To Install FlexGet on OpenELEC 4.0

Instructions

The first thing to do is create a file ~/.pydistutils.cfg with the following content:

[install]
install_lib = ~/py-lib
install_scripts = ~/bin

It's also a good idea to set PYTHONPATH variable in ~/.profile:

export PYTHONPATH=~/py-lib

Now we can proceed and install easy_install:

$ cd ~
$ mkdir py-lib bin
$ curl http://peak.telecommunity.com/dist/ez_setup.py > ez_setup.py
$ source .profile
$ python ez_setup.py

Before installing flexget, some required libraries try to import a module unittest which is not provided by OpenELEC's Python distribution.

To "fix" this, let's install the old pyunit:

$ bin/easy_install pyunit

Finally we can proceed and install FlexGet:

$ bin/easy_install flexget transmissionrpc

All done.

@ggiannotti
Copy link

On 5.0 i'm stuck with this:

OpenELEC:~ # python ez_setup.py
Traceback (most recent call last):
File "ez_setup.py", line 278, in
main(sys.argv[1:])
File "ez_setup.py", line 210, in main
egg = download_setuptools(version, delay=0)
File "ez_setup.py", line 139, in download_setuptools
from distutils import log
ImportError: No module named distutils
OpenELEC:~ #

any ideia how to fix it?

@zilexa
Copy link

zilexa commented Jan 2, 2015

same here also stuck! I tried installing setuptools-10.1 manually but got the same error.

@andreferreirav2
Copy link

Same thing as calvinbr I'm getting the error "ImportError: No module named distutils" in OpenElec 5.0.8
Any fix on this?

@gkanyog
Copy link

gkanyog commented Oct 15, 2015

Hi!

When I type this on OE 5.0.8:

python ez_setup.py

I get the following text (same like calvinbr)

Traceback (most recent call last):
File "ez_setup.py", line 278, in
main(sys.argv[1:])
File "ez_setup.py", line 210, in main
egg = download_setuptools(version, delay=0)
File "ez_setup.py", line 139, in download_setuptools
from distutils import log
ImportError: No module named distutils

How can I solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment