problem with integrated python modul in "events"

Python and python framework
Post Reply
micha_pr
Posts: 414
Joined: Friday 24 October 2014 12:26
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany, Berlin
Contact:

problem with integrated python modul in "events"

Post by micha_pr » Monday 18 December 2017 20:29

Hi,

could somebody check http://www.domoticz.com/forum/viewtopic.php?f=6&t=20936 ?
There seems to be an error or a missing file?
Traceback (most recent call last):
File "<string>", line 67, in <module>
File "/home/pi/domoticz/scripts/python/domoticz.py", line 42, in log
domoticz_.log(0, " ".join([str(k) for k in args]))
AttributeError: module 'DomoticzEvents' has no attribute 'log'
Thanks!
Michael Pruefer
----------------------------
http://www.zwave-review.com (German only)
http://www.SmartHome.Work (German only)

emeyedeejay
Posts: 20
Joined: Sunday 25 March 2018 12:56
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: problem with integrated python modul in "events"

Post by emeyedeejay » Saturday 30 June 2018 11:54

[Total Python N00b!]

Experiencing exactly this too...

About Domotic
Version: 4.9723
Build Hash: 7d8c01f7
Compile Date: 2018-06-27 15:06:06
dzVents Version: 2.4.6
Python Version: 3.5.3 (default, Jan 19 2017, 14:11:04) [GCC 6.3.0 20170124]

Uptime: 17 Hours, 9 Minutes, 35 Seconds

Error in log:

Code: Select all

2018-06-30 11:48:09.377 PluginSystem: Restarting I/O service thread.
2018-06-30 11:48:18.494 Error: EventSystem: Failed to execute python event script "Just-a-log-line"
2018-06-30 11:48:18.494 Error: EventSystem: Traceback (most recent call last):
2018-06-30 11:48:18.494 Error: EventSystem: File "<string>", line 4, in <module>
2018-06-30 11:48:18.494 Error: EventSystem: File "/home/pi/domoticz/scripts/python/domoticz.py", line 42, in log
2018-06-30 11:48:18.494 Error: EventSystem: domoticz_.log(0, " ".join([str(k) for k in args]))
2018-06-30 11:48:18.494 Error: EventSystem: AttributeError: module 'DomoticzEvents' has no attribute 'log'
Script

Code: Select all

import domoticz
import random

domoticz.log("Hi Domoticz!")

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest