LarsMichelsen / pmatic

Python API for Homematic. Easy to use.

Home Page:https://larsmichelsen.github.io/pmatic/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add necessary modules to use "setup.py install" on CCU

Vearly opened this issue · comments

I was looking for something like this for some time now and I just found your project today and directly installed it on my CCU. I really like it.

What I miss right now is a way to install python modules on the CCU with "setup.py install". In my case I already use qhue.py (a slim Philips hue wrapper) from my PC and would like to use it from the CCU. I applied a quick fix by copying the qhue source files to the scripts directory on the CCU and can say that the CCU can run it. But unfortunately when I want to use the inline run option it does not work this way since the qhue files are not in the right directory (I assume so and have not figured out why there is no PYTHONPATH enviroment variable).

I don't think that it is possible right now to correctly install new modules right now since a lot of python modules for this task are missing.
I tried to fix it by installing setuptools by myself but there I had to apply a lot of fixes like copying distutils, shutils, zipfile, getopt, ConfigParser, plistlib (possibly more) to get it to work step by step. In the end I got stuck when I got this ImportError:

The 'packaging.requirements' package is required; normally this is bundled with this package so if you get this warning, consult the packager of your distribution.

Maybe this Error comes from my setuptools installer but I think it would be easier for everyone if the modules used by setup.py were directly delivered with the pmatic ccu package.