Python Plugin is not loading modules in site-packages

Python and python framework

Moderator: leecollings

Post Reply
pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Python Plugin is not loading modules in site-packages

Post by pipiche »

In order to load the requests module, I have to add the following statement sys.path.append('/usr/lib/python3.6/site-packages')

See here attached a simple plugin to reproduce the problem.
plugin.py.zip
(1.21 KiB) Downloaded 43 times

The Python Framework should add the site-packages as well in the sys.path
Post Reply