Cynical Cache 3.0 - Error

Posted on
Thu Jun 02, 2022 10:13 pm
Korey offline
User avatar
Posts: 813
Joined: Jun 04, 2008
Location: Henderson, NV

Cynical Cache 3.0 - Error

Hi Perry,


OSX 10.14.6 / Indigo 2022.1


Getting an error with 3.0 when attempting to send any IR code :


Code: Select all
Started plugin "Cynical Caché 3.0.0"
   Action Group                    Samsung IR - Power OFF
   Cynical Caché Error             in sendIR: Traceback (most recent call last):
  File ".../Server Plugin/irdev.py", line 67, in validate
    symbol = cyin.plugin.from_string(s)
  File ".../Server Plugin/ir/context.py", line 48, in from_string
    return ir.Symbol.from_text(form)
  File ".../Server Plugin/ir/core.py", line 297, in from_text
    return TYPEMAP[typename].Symbol.from_text(typespec)
  File ".../Server Plugin/ir/type/generic.py", line 76, in from_text
    return ir.hex.decodeSymbol(text)
  File ".../Server Plugin/ir/hex.py", line 94, in decodeSymbol
    return decode(hex_string).classify().symbol()
  File ".../Server Plugin/ir/hex.py", line 79, in decode
    return HexEvent(hex_string, repeats)
  File ".../Server Plugin/ir/hex.py", line 106, in __init__
    if len(hexes) < HEADER_COUNT + 2: raise Error("too short")
TypeError: object of type 'map' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".../Server Plugin/cyin/debugging.py", line 67, in diagnostic_log
    yield
  File ".../Server Plugin/cyin/debugging.py", line 77, in diagnose_call
    return method(*args, **kwargs)
  File ".../Server Plugin/irdev.py", line 119, in sendIR
    symbol = cyin.plugin.from_string(action.ircode)
  File ".../Server Plugin/cyin/attr.py", line 238, in __get__
    return self._eval(value, obj)
  File ".../Server Plugin/cyin/attr.py", line 203, in _eval
    failure = self.check_rules(value, ui=False)
  File ".../Server Plugin/cyin/attr.py", line 142, in check_rules
    result = check(value)
  File ".../Server Plugin/irdev.py", line 74, in check_symbol
    return cyin.plugin.inject_wait(validate, s)
  File ".../Server Plugin/asyn/inject.py", line 101, in inject_wait
    return call(*args, **kwargs)
  File ".../Server Plugin/irdev.py", line 72, in validate
    return ('Invalid IR symbol (%s)' % e.message,)
AttributeError: 'TypeError' object has no attribute 'message'


Opening the IR Code action group and trying to save gives this error:

Code: Select all
 Cynical Caché Error             in validateIOMConfigUi:
  File ".../Server Plugin/cyin/plug.py", line 392, in validateIOMConfigUi
    return self._ui._check_ui(values)
  File ".../Server Plugin/cyin/configui.py", line 140, in _check_ui
    self._check_fields()
  File ".../Server Plugin/cyin/configui.py", line 182, in _check_fields
    failure = field.check_rules(value, ui=True)
  File ".../Server Plugin/cyin/attr.py", line 142, in check_rules
    result = check(value)
  File ".../Server Plugin/irdev.py", line 74, in check_symbol
    return cyin.plugin.inject_wait(validate, s)
  File ".../Server Plugin/asyn/inject.py", line 118, in inject_wait
    raise reply['error']
  File ".../Server Plugin/asyn/inject.py", line 108, in runner
    reply['value'] = call(*args, **kwargs)
  File ".../Server Plugin/irdev.py", line 72, in validate
    return ('Invalid IR symbol (%s)' % e.message,)
AttributeError: 'TypeError' object has no attribute 'message'


Debugging:
Code: Select all
Cynical Caché                   debugging enabled
   Cynical Caché                   using no IR database
   Received INSTEON                "HVAC Great Room" on (button 1)
   Reloading plugin "Cynical Caché 3.0.0" using API v3.0.0
   Stopping plugin "Cynical Caché 3.0.0" (pid 1932)
   Cynical Caché                   shutdown sensed
   Cynical Caché                   IR - Global Cache - D1 Rack stopping
   Cynical Caché                   IR - Global Cache - MRX Garage stopping
   Cynical Caché                   IR - Global Cache - POE Unit stopping
   Cynical Caché                   IR - Global Cache - Samsung 65" stopping
   Stopped plugin "Cynical Caché 3.0.0"
   Starting plugin "Cynical Caché 3.0.0" (pid 3013)
   Cynical Caché                   API version 3.0
   Cynical Caché                   Python version 3.10.2.final.0
   Started plugin "Cynical Caché 3.0.0"
   Cynical Caché                   mapping device "IR - Global Cache - D1 Rack" 1261683187(iremitter)
   Cynical Caché                   IR - Global Cache - D1 Rack starting
   Cynical Caché                   mapping device "IR - Global Cache - POE Unit" 802208703(gcnet)
   Cynical Caché                   IR - Global Cache - POE Unit starting
   Cynical Caché                   IR - Global Cache - POE Unit connecting to host
   Cynical Caché                   mapping device "IR - Global Cache - MRX Garage" 203907205(iremitter)
   Cynical Caché                   IR - Global Cache - MRX Garage starting
   Cynical Caché                   mapping device "IR - Global Cache - Samsung 65"" 1225370111(iremitter)
   Cynical Caché                   IR - Global Cache - Samsung 65" starting
   Cynical Caché                   plugin starting asyn operation
   Cynical Caché                   using no IR database
   Cynical Caché                   IR - Global Cache - POE Unit is now exploring
   Cynical Caché                   IR - Global Cache - POE Unit ready with 3 device(s)
   Cynical Caché                   IR - Global Cache - D1 Rack host device IR - Global Cache - POE Unit now available
   Cynical Caché                   IR - Global Cache - D1 Rack is now ready
   Cynical Caché                   IR - Global Cache - MRX Garage host device IR - Global Cache - POE Unit now available
   Cynical Caché                   IR - Global Cache - MRX Garage is now ready
   Cynical Caché                   IR - Global Cache - Samsung 65" host device IR - Global Cache - POE Unit now available
   Cynical Caché                   IR - Global Cache - Samsung 65" is now ready
   Cynical Caché                   IR - Global Cache - POE Unit version 710-1005-05
   Action Group                    Samsung IR - Power OFF
   Cynical Caché Error             in sendIR: Traceback (most recent call last):
  File ".../Server Plugin/irdev.py", line 67, in validate
    symbol = cyin.plugin.from_string(s)
  File ".../Server Plugin/ir/context.py", line 48, in from_string
    return ir.Symbol.from_text(form)
  File ".../Server Plugin/ir/core.py", line 297, in from_text
    return TYPEMAP[typename].Symbol.from_text(typespec)
  File ".../Server Plugin/ir/type/generic.py", line 76, in from_text
    return ir.hex.decodeSymbol(text)
  File ".../Server Plugin/ir/hex.py", line 94, in decodeSymbol
    return decode(hex_string).classify().symbol()
  File ".../Server Plugin/ir/hex.py", line 79, in decode
    return HexEvent(hex_string, repeats)
  File ".../Server Plugin/ir/hex.py", line 106, in __init__
    if len(hexes) < HEADER_COUNT + 2: raise Error("too short")
TypeError: object of type 'map' has no len()

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".../Server Plugin/cyin/debugging.py", line 67, in diagnostic_log
    yield
  File ".../Server Plugin/cyin/debugging.py", line 77, in diagnose_call
    return method(*args, **kwargs)
  File ".../Server Plugin/irdev.py", line 119, in sendIR
    symbol = cyin.plugin.from_string(action.ircode)
  File ".../Server Plugin/cyin/attr.py", line 238, in __get__
    return self._eval(value, obj)
  File ".../Server Plugin/cyin/attr.py", line 203, in _eval
    failure = self.check_rules(value, ui=False)
  File ".../Server Plugin/cyin/attr.py", line 142, in check_rules
    result = check(value)
  File ".../Server Plugin/irdev.py", line 74, in check_symbol
    return cyin.plugin.inject_wait(validate, s)
  File ".../Server Plugin/asyn/inject.py", line 101, in inject_wait
    return call(*args, **kwargs)
  File ".../Server Plugin/irdev.py", line 72, in validate
    return ('Invalid IR symbol (%s)' % e.message,)
AttributeError: 'TypeError' object has no attribute 'message'
Attachments
Screen Shot 2022-06-02 at 9.08.45 PM.png
Screen Shot 2022-06-02 at 9.08.45 PM.png (172.76 KiB) Viewed 1152 times

--
Korey

Posted on
Thu Jun 02, 2022 10:15 pm
rapamatic offline
Posts: 276
Joined: Aug 03, 2015
Location: Glencoe, IL

Re: Cynical Cache 3.0 - Error

I’m seeing the exact same behavior. Happy to troubleshoot in any way if it helps.


Sent from my iPhone using Tapatalk

Posted on
Fri Jul 08, 2022 10:26 am
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Cache 3.0 - Error

Python 3 strikes again. Fixed that part; let me know if there's more trouble hiding behind it for you.

Sorry for the delay; I was on vacation (and that means no laptop for me...)

Cheers
-- perry

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests

cron