Cynical Plugins and Indigo 6 Beta 3

Posted on
Sun Jan 13, 2013 4:45 pm
Unklmarty offline
User avatar
Posts: 59
Joined: Jun 30, 2006
Location: NJ

Cynical Plugins and Indigo 6 Beta 3

Having trouble with 6 Beta 3:
Security Spy 2.1.2
Apple OS 10.8.2

Security Spy server runs OK and I can connect to it via internet.
Indigo and Security on same box

Ayn suggestions?
Marty


Cynical SecuritySpy Error error: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/asynplugin.py", line 73, in entry
method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 157, in deviceUpdated
iom.update_object(old, new, new.deviceTypeId)
File ".../Server Plugin/cyin/iom.py", line 127, in update_object
iom.reconfigure()
File ".../Server Plugin/cyin/iom.py", line 266, in reconfigure
self.stop()
File "plugin.py", line 54, in stop
self.spy.close()
AttributeError: 'Server' object has no attribute 'spy'

Posted on
Mon Jan 14, 2013 10:03 am
matt (support) offline
Site Admin
User avatar
Posts: 21426
Joined: Jan 27, 2003
Location: Texas

Re: Cynical Plugins and Indigo 6 Beta 3

When do you see that error?

FYI, I noticed some SecuritySpy plugin errors when I was recently setting up a new Indigo Server (and new install of SecuritySpy), but note I was able to get it working by restarting the plugin (and/or Indigo Server).

Image

Posted on
Mon Jan 14, 2013 1:45 pm
durosity offline
User avatar
Posts: 4338
Joined: May 10, 2012
Location: Newcastle Upon Tyne, Ye Ol' England.

Re: Cynical Plugins and Indigo 6 Beta 3

SecuritySpy is now at version 2.2.3, I found upgrading fixed various issues i was having.. might be worth trying?

Computer says no.

Posted on
Mon Jan 14, 2013 3:00 pm
gtreece offline
Posts: 171
Joined: Sep 26, 2011

Re: Cynical Plugins and Indigo 6 Beta 3

I have SS 2.1.2, Indigo 6b3 and OS 10.7.5. I'm not seeing any errors. Maybe it's a 10.8 side effect? When did the problem appear? Out of the blue on a working system, or after something was upgraded?

Posted on
Mon Jan 14, 2013 5:11 pm
Unklmarty offline
User avatar
Posts: 59
Joined: Jun 30, 2006
Location: NJ

Re: Cynical Plugins and Indigo 6 Beta 3

When I click on the Cynical Security Spy server device a setup window appears.
When I click on "Edit Device Settings" I get the following in the error log

Cynical SecuritySpy DFSSpy reconfiguring because username has changed
Cynical SecuritySpy Error error: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/asynplugin.py", line 73, in entry
method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 157, in deviceUpdated
iom.update_object(old, new, new.deviceTypeId)
File ".../Server Plugin/cyin/iom.py", line 127, in update_object
iom.reconfigure()
File ".../Server Plugin/cyin/iom.py", line 266, in reconfigure
self.stop()
File "plugin.py", line 54, in stop
self.spy.close()
AttributeError: 'Server' object has no attribute 'spy'

Leaving the host address blank (Security Spy is on the same drive, on the same box) add the correct port ,user and password.
Hit enter
I get an error in red at the bottom of the setup window
"Error validating fields. Hover over the red field labels above to see the error reason"
BUT there are no red labels to hover over. Hovering over any field does nothing.

and the error log has this:

Error (client) CreateXmlValuesDictFromPaxFieldReps() caught exception: IllegalParameterError -- illegal character in XML tag name or value
Cynical SecuritySpy Error in validateIOMConfigUi: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/plug.py", line 303, in call_entry
return method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 226, in validateIOMConfigUi
return self._ui._check_ui(values)
File ".../Server Plugin/cyin/configui.py", line 79, in _check_ui
self._check_fields()
File ".../Server Plugin/cyin/configui.py", line 99, in _check_fields
value = self._ui_values[name]
KeyError: 'key username not found in dict'

Then when I click cancel
the error logs has this:

Cynical SecuritySpy DFSSpy reconfiguring because username has changed
Cynical SecuritySpy Error error: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/asynplugin.py", line 73, in entry
method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 157, in deviceUpdated
iom.update_object(old, new, new.deviceTypeId)
File ".../Server Plugin/cyin/iom.py", line 127, in update_object
iom.reconfigure()
File ".../Server Plugin/cyin/iom.py", line 266, in reconfigure
self.stop()
File "plugin.py", line 54, in stop
self.spy.close()
AttributeError: 'Server' object has no attribute 'spy'

So I tried making a new Cynical SecuritySpy device.
I clicked on "TYPE" Cynical SecuritySpy
As soon as I click "Server"
I got this in the error log:

Cynical SecuritySpy Error XML inconsistent: missing class
Cynical SecuritySpy Error error: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/asynplugin.py", line 73, in entry
method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 161, in deviceCreated
iom.start_object(io, io.deviceTypeId, created=True)
File ".../Server Plugin/cyin/iom.py", line 85, in start_object
iom = type_for(type)(io)
TypeError: 'NoneType' object is not callable

Any suggestions?

Marty

Posted on
Wed Feb 13, 2013 10:11 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Plugins and Indigo 6 Beta 3

Any suggestions?


Update to the latest (beta) version of the plugin. That code has changed.

Cheers
-- perry

Posted on
Wed Jan 08, 2014 4:17 pm
Unklmarty offline
User avatar
Posts: 59
Joined: Jun 30, 2006
Location: NJ

Re: Cynical Plugins and Indigo 6 Beta 3

Hello again,
I still cannot get Indigo and Security Spy to play nice.
I have been able to get the 2 programs to work OK on another system so I can set it up.
But on the system I first contacted you about I still can't.

MAC OS 10.9.1, 2 x 2.4 GHz 6-Core Intel Xeon, 32 GB
Security Spy 3.1.3, Indigo 6.0.7 on same box.
I have deleted and re-installed both programs, web servers and plugin.
Both web servers are working OK and I can connect to them either via the Internet or local network.

In Indigo, setting up a Security Spy server, I have tried with and without passwords, leaving the host field blank or with an ip address. I can't find what I am doing differently on this system then on the other system where it runs great. The other system is a 2013 MAC mini 2.5 GHz Core i5 8 GB.
What am I missing and why I cant get SS & indigo to work together.
Marty

below is my latest attempt.


Jan 8, 2014, 4:51:47 PM
Starting Indigo Server version 6.0.7
Loading attachments
"device target attachment.scpt" script loaded
"group target attachment.scpt" script loaded
"growl attachment.scpt" script loaded
"iTunes attachment.scpt" script loaded
"scenes attachment.scpt" script loaded
"time stamp attachment.scpt" script loaded
Loading plugin "Action Collection 1.4.4"
Starting plugin "Action Collection 1.4.4" (pid 614)
Loading interface "INSTEON Commands 2.0.4"
Starting interface "INSTEON Commands 2.0.4" (pid 615)
Loading plugin "Cynical SecuritySpy 1.0.0"
Starting plugin "Cynical SecuritySpy 1.0.0" (pid 616)
Loading plugin "NOAA Weather 1.1.0"
Starting plugin "NOAA Weather 1.1.0" (pid 617)
Loading plugin "WeatherSnoop 2.0.1"
Starting plugin "WeatherSnoop 2.0.1" (pid 618)
Found disabled interface "Z-Wave 1.0.181"
Found disabled plugin "Airfoil 1.1.2"
Found disabled plugin "DIRECTV DVR Control 1.0.0"
Found disabled plugin "EasyDAQ Relay Card 1.1.3"
Found disabled plugin "Growl 1.1.1"
Found disabled plugin "iCal Alarm Processor 1.1.0"
Found disabled plugin "iTunes 1.1.4"
Found disabled plugin "SQL Logger 1.1.6"
Found disabled plugin "Thermostat Enhancement Add-On 1.11"
Found disabled plugin "Timers and Pesters 1.1.3"
Found disabled plugin "Vera Bridge 1.0.5"
Found disabled interface "Virtual Devices 1.0.11"
Bonjour registered "Indigo - df 6.0.7.indidb"
Indigo Cocoa client connected
Started plugin "NOAA Weather 1.1.0"
Started interface "INSTEON Commands 2.0.4"
Started plugin "Action Collection 1.4.4"
Started plugin "WeatherSnoop 2.0.1"
Started plugin "NOAA Weather 1.1.0"
Started interface "INSTEON Commands 2.0.4"
Started plugin "Action Collection 1.4.4"
Started plugin "WeatherSnoop 2.0.1"
Started plugin "Cynical SecuritySpy 1.0.0"
Cynical SecuritySpy plugin starting asyn operation
Reflector starting reflector connection to https://33mrg5.goprism.com

Jan 8, 2014, 4:51:52 PM
Connected to PowerLinc 2413U interface on port usbserial-A8006Vxp
PowerLinc address 1A.76.C2, firmware version 9.9
WebServer client connected
WebServer started on port 8203 -- digest authentication enabled
WebServer loaded plugin "Event Log Plugin"
WebServer enabled browser access to plugin path "plugins/Eventlog/css"
WebServer enabled browser access to plugin path "plugins/Eventlog/js"

Jan 8, 2014, 4:52:11 PM
Cynical SecuritySpy Error XML inconsistent: missing class
Cynical SecuritySpy Error error: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/asynplugin.py", line 73, in entry
method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 161, in deviceCreated
iom.start_object(io, io.deviceTypeId, created=True)
File ".../Server Plugin/cyin/iom.py", line 85, in start_object
iom = type_for(type)(io)
TypeError: 'NoneType' object is not callable

Cynical SecuritySpy mapping device "new device 1" 1047800050(server)
Cynical SecuritySpy new device 1 starting
Cynical SecuritySpy Error in getIOMConfigUiValues: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/plug.py", line 303, in call_entry
return method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 218, in getIOMConfigUiValues
obj = iom.device(id) # existing object, if any
File ".../Server Plugin/cyin/iom.py", line 69, in device
start_object(iodev, iodev.deviceTypeId) # canonical create-and-start
File ".../Server Plugin/cyin/iom.py", line 91, in start_object
iom.start()
File "plugin.py", line 44, in start
self.setup()
File "plugin.py", line 50, in setup
callout=self._event)
File ".../Server Plugin/spy/core.py", line 56, in __init__
self.open(host, webport)
File ".../Server Plugin/spy/core.py", line 64, in open
self.update()
File ".../Server Plugin/spy/core.py", line 81, in update
req = self._request("/++systemInfo", callout=reply)
File ".../Server Plugin/spy/core.py", line 210, in _request
callout=callout, action=action, query=query, auth=self._auth)
File ".../Server Plugin/asyn/http.py", line 214, in request
return Request(control, url, res=res, callout=callout, action=action, query=query, auth=auth)
File ".../Server Plugin/asyn/http.py", line 92, in __init__
self.send(url)
File ".../Server Plugin/asyn/http.py", line 104, in send
self._start()
File ".../Server Plugin/asyn/http.py", line 109, in _start
self.port = self.urlparts.port or 80
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urlparse.py", line 116, in port
return int(port, 10)
ValueError: invalid literal for int() with base 10: 'None'

Cynical SecuritySpy Error Error in plugin execution UiGetValues2:

Traceback (most recent call last):
<type 'exceptions.TypeError'>: object of type 'NoneType' has no len()

Cynical SecuritySpy new device 1 reconfiguring because username has changed
Cynical SecuritySpy Error error: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/asynplugin.py", line 73, in entry
method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 157, in deviceUpdated
iom.update_object(old, new, new.deviceTypeId)
File ".../Server Plugin/cyin/iom.py", line 127, in update_object
iom.reconfigure()
File ".../Server Plugin/cyin/iom.py", line 266, in reconfigure
self.stop()
File "plugin.py", line 54, in stop
self.spy.close()
AttributeError: 'Server' object has no attribute 'spy'

Cynical SecuritySpy new device 1 reconfiguring because username has changed
Cynical SecuritySpy Error error: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/asynplugin.py", line 73, in entry
method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 157, in deviceUpdated
iom.update_object(old, new, new.deviceTypeId)
File ".../Server Plugin/cyin/iom.py", line 127, in update_object
iom.reconfigure()
File ".../Server Plugin/cyin/iom.py", line 266, in reconfigure
self.stop()
File "plugin.py", line 54, in stop
self.spy.close()
AttributeError: 'Server' object has no attribute 'spy'

Error (client) CreateXmlValuesDictFromPaxFieldReps() caught exception: IllegalParameterError -- illegal character in XML tag name or value

Jan 8, 2014, 4:52:31 PM
Cynical SecuritySpy Error in validateIOMConfigUi: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/plug.py", line 303, in call_entry
return method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 226, in validateIOMConfigUi
return self._ui._check_ui(values)
AttributeError: 'NoneType' object has no attribute '_check_ui'

Cynical SecuritySpy Error in endIOMConfigUi: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/plug.py", line 303, in call_entry
return method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 230, in endIOMConfigUi
self._ui._end_ui(values, cancelled)
AttributeError: 'NoneType' object has no attribute '_end_ui'

Cynical SecuritySpy new device 1 reconfiguring because username has changed
Cynical SecuritySpy Error error: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/asynplugin.py", line 73, in entry
method(*args, **kwargs)
File ".../Server Plugin/cyin/plug.py", line 157, in deviceUpdated
iom.update_object(old, new, new.deviceTypeId)
File ".../Server Plugin/cyin/iom.py", line 127, in update_object
iom.reconfigure()
File ".../Server Plugin/cyin/iom.py", line 266, in reconfigure
self.stop()
File "plugin.py", line 54, in stop
self.spy.close()
AttributeError: 'Server' object has no attribute 'spy'

Posted on
Wed Jan 08, 2014 4:43 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Plugins and Indigo 6 Beta 3

Cynical SecuritySpy Error XML inconsistent: missing class

This means you have an internally inconsistent version of the plugin. Are you sure you have the latest version?

Cheers
-- perry

Posted on
Wed Jan 08, 2014 5:46 pm
Unklmarty offline
User avatar
Posts: 59
Joined: Jun 30, 2006
Location: NJ

Re: Cynical Plugins and Indigo 6 Beta 3

Well look at that. My plugin was 1.0.0. So I updated to new version and WaLa all is OK.
And I thought I had updated everything. ugh
Thanks for the quick response.
Did I miss the notice of the plugin update?
I thought when I did a reload it would know that i needed to update the plugin.

Thanks again!!
Marty

Posted on
Wed Jan 08, 2014 6:14 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Plugins and Indigo 6 Beta 3

I thought when I did a reload it would know that i needed to update the plugin.

No, Indigo currently has no auto-update mechanism (because it doesn't really have a "plugin store" as such), and I never put an update check into my own plugins because people are always so paranoid about code "calling home" for anything.

Maybe one of those days...

Cheers
-- perry

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 4 guests