- At domoticz startup, you can see the python version it will use, I will compare it with the one I m using on the system with "python3 -- version"
- If it's not the same I will switch the version with "update-alternatives"
- Then I will test if request library is working on my system
Code: Select all
pi@raspberrypi:~ $ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> exit()
Code: Select all
import json,urllib, time,requests
- I will search where is the lib is on my system, looking with a file browser and add the path in the python code
Code: Select all
import sys
sys.path.append('/usr/local/lib/python3.6/site-packages')
- If it's not working yet, ask on domoticz forum why the "requests" lib can't be used on python 3.x.x with domoticz
[/quote]
Ok, I will try dis.
I let you know
Thanks