Page 1 of 1

Error in Cynical Caché plugin

PostPosted: Sun Jun 19, 2022 11:12 am
by cesarvog
Good Afternoon,

I recently noticed the following error in my Indigo (2022.1) Log:

19 Jun 2022 14:01:08
Reloading plugin "Cynical Caché 3.0.0" using API v3.0.0
Stopping plugin "Cynical Caché 3.0.0" (pid 37602)
Stopped plugin "Cynical Caché 3.0.0"
Starting plugin "Cynical Caché 3.0.0" (pid 37638)
Cynical Caché API version 3.0
Cynical Caché Python version 3.10.2.final.0
Started plugin "Cynical Caché 3.0.0"
Cynical Caché Error in filter EmitterFilter: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 67, in diagnostic_log
yield
File ".../Server Plugin/cyin/plug.py", line 618, in menufilter
menu = filter._evaluate()
File ".../Server Plugin/cyin/filter.py", line 77, in _evaluate
menu = self.evaluate()
File "plugin.py", line 49, in evaluate
return _dev_menu(ir.gcache.IREmitter)
File "plugin.py", line 36, in _dev_menu
menu = [("%d@%s" % (dev.id, addr), "%s @ %s" % (dev.name, addr))
File "plugin.py", line 36, in <listcomp>
menu = [("%d@%s" % (dev.id, addr), "%s @ %s" % (dev.name, addr))
File ".../Server Plugin/netdev.py", line 89, in all_devices
for gcdev in net.gcnet.all_type(devclass):
File ".../Server Plugin/ir/gcache/gcnet.py", line 147, in all_type
for dev in self.devmap.itervalues():
AttributeError: 'dict' object has no attribute 'itervalues'

It first started happening when I tried changing the IR port of one of my Itach Flex devices, which resulted in the "Configure IR Emiter" Address list being empty (please see screen grabs below)

Screen Shot 2022-06-19 at 14.09.27.png
Screen Shot 2022-06-19 at 14.09.27.png (182.89 KiB) Viewed 1560 times

Screen Shot 2022-06-19 at 14.07.38.png
Screen Shot 2022-06-19 at 14.07.38.png (111.17 KiB) Viewed 1560 times


I suppose it has something related to the recent update to Python 3 and I only noticed it when trying to edit the properties of a previously existing IR emitter, but I suppose if I would start defining devices from scratch the list would be empty as well.

Thanks in advance

Re: Error in Cynical Caché plugin

PostPosted: Fri Jul 08, 2022 12:41 am
by Perry The Cynic
Fixed (3.1.2). Give it a whirl. And be on the lookout for more "missed improvements". :-)

Cheers
-- perry

Re: Error in Cynical Caché plugin

PostPosted: Fri Jul 08, 2022 9:22 am
by cesarvog
Hi Perry,

I can confirm the new version fixed de problem.

Many Thanks

Cesar

Re: Error in Cynical Caché plugin

PostPosted: Thu Jul 21, 2022 2:55 pm
by Vig
I am getting the attached error with 3.1.3 running on MacOS 12.0.1

Re: Error in Cynical Caché plugin

PostPosted: Thu Jul 21, 2022 11:19 pm
by Perry The Cynic
I never knew Python 3 was going to be so much fun. :-)

I fixed that immediate problem. But I also realized that I don't have any IR receiver hardware anymore to test this with - my house isn't using IR anymore, and the box with the receiver device has somehow gone into hiding. So give 3.1.4 a try and let me know how it goes.

Cheers
-- perry

Re: Error in Cynical Caché plugin

PostPosted: Fri Jul 22, 2022 4:24 pm
by Vig
That worked! Thank you.