{"action":"created","issue":{"url":"https://api.github.com/repos/domoticz/domoticz/issues/1466","repository_url":"https://api.github.com/repos/domoticz/domoticz","labels_url":"https://api.github.com/repos/domoticz/domoticz/issues/1466/labels{/name}","comments_url":"https://api.github.com/repos/domoticz/domoticz/issues/1466/comments","events_url":"https://api.github.com/repos/domoticz/domoticz/issues/1466/events","html_url":"https://github.com/domoticz/domoticz/issues/1466","id":221505450,"number":1466,"title":"Unable to use custom python modules in plugins","user":{"login":"stas-demydiuk","id":2734836,"avatar_url":"https://avatars2.githubusercontent.com/u/2734836?v=3","gravatar_id":"","url":"https://api.github.com/users/stas-demydiuk","html_url":"https://github.com/stas-demydiuk","followers_url":"https://api.github.com/users/stas-demydiuk/followers","following_url":"https://api.github.com/users/stas-demydiuk/following{/other_user}","gists_url":"https://api.github.com/users/stas-demydiuk/gists{/gist_id}","starred_url":"https://api.github.com/users/stas-demydiuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stas-demydiuk/subscriptions","organizations_url":"https://api.github.com/users/stas-demydiuk/orgs","repos_url":"https://api.github.com/users/stas-demydiuk/repos","events_url":"https://api.github.com/users/stas-demydiuk/events{/privacy}","received_events_url":"https://api.github.com/users/stas-demydiuk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-13T09:20:39Z","updated_at":"2017-05-31T05:50:11Z","closed_at":"2017-05-31T05:50:11Z","body":"Have an issue when using python modules in python plugins. As example requests module:\r\n\r\n1. When trying to import \"requests\" python module in the file head, plugin stops working immediately, even onStart is not called, no errors, just nothing happens. Sample plugin.py:\r\n\r\n```\r\nimport Domoticz\r\n\r\nimport sys\r\nsys.path.append(sys.prefix+'/lib/site-packages')\r\n\r\nimport requests;\r\n\r\ndef onStart():\r\n    Domoticz.Log('Start')\r\n    return True\r\n```\r\n\r\n2. When I'm trying to import requests module in for example onHeartbeat function then this function will be called ones, return result to Domoticz (log message for example) and plugin stops working (no errors, no logs)\r\n\r\nAlso there is an information from other users about similar behavior with gpio and uuid modules.\r\n[Discussion on forum](https://www.domoticz.com/forum/viewtopic.php?f=65&t=15233&start=120#p127761)"},"comment":{"url":"https://api.github.com/repos/domoticz/domoticz/issues/comments/305090309","html_url":"https://github.com/domoticz/domoticz/issues/1466#issuecomment-305090309","issue_url":"https://api.github.com/repos/domoticz/domoticz/issues/1466","id":305090309,"user":{"login":"gizmocuz","id":2265299,"avatar_url":"https://avatars2.githubusercontent.com/u/2265299?v=3","gravatar_id":"","url":"https://api.github.com/users/gizmocuz","html_url":"https://github.com/gizmocuz","followers_url":"https://api.github.com/users/gizmocuz/followers","following_url":"https://api.github.com/users/gizmocuz/following{/other_user}","gists_url":"https://api.github.com/users/gizmocuz/gists{/gist_id}","starred_url":"https://api.github.com/users/gizmocuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gizmocuz/subscriptions","organizations_url":"https://api.github.com/users/gizmocuz/orgs","repos_url":"https://api.github.com/users/gizmocuz/repos","events_url":"https://api.github.com/users/gizmocuz/events{/privacy}","received_events_url":"https://api.github.com/users/gizmocuz/received_events","type":"User","site_admin":false},"created_at":"2017-05-31T05:50:11Z","updated_at":"2017-05-31T05:50:11Z","body":"Please use our Forum"}}
{"actor":{"display_login":"gizmocuz"}}