Read the statement by Michael Teeuw here.
MMM-FRITZ-Box-Callmonitor
-
@sdetweil Thanks, yes, this has been installed with sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev && sudo pip install fritzconnection as stated on the plugins’ page (https://github.com/paviro/MMM-FRITZ-Box-Callmonitor) and https://pypi.org/project/fritzconnection/
And as stated above: When I call fritzconnection from shell, it works. But when I call the script used by the plugin, it fails on the import of the library and I have no idea why.
-
@requiemmg said in MMM-FRITZ-Box-Callmonitor:
But when I call the script used by the plugin
typically this fails cause the python ‘virtual environment’ is not setup correctly
https://www.tutorialspoint.com/python/python_environment.htm
usually that means the shell started from code (not UI) startup script (usually ~/.bashrc, for bash ) doesn’t set the PATH correctly
-
@sdetweil Tried to fix this with
export PATH=“$PATH:/usr/local/bin/fritzconnection”and
export PATH=“$PATH:/usr/local/bin/python”to no avail…error stays the same
-
@requiemmg where?
-
from where I executed this command? from the modules’ directory.
The module is working if I use the .vcf method. But not if I want to log in via the module to fetch the latest calls.
-
@requiemmg said in MMM-FRITZ-Box-Callmonitor:
But not if I want to log in via the module
i don’t know what that means, but I assume that the module will exec or spawn the script somehow
and THAT is where the path needs to be set , at the time of exec/spawn
-
@sdetweil When I put it in the script in the first line, it will thow an invalid syntax error. Sorry, I guess I have to stick with the current functionality, I have no programming skills.
Thanks for your help. -
@requiemmg no… it would be in the module code that launches the script
-
@sdetweil Thanks. That’s way beyond my abilities.