Cynical Network doesn't receive data (but sending works)

To a blind optimist, an optimistic realist must seem like an Accursed Cynic.
User avatar
tornado
Posts: 108
Joined: Mon Jun 30, 2014 5:56 pm

Cynical Network doesn't receive data (but sending works)

Post by tornado »

In Indigo 2023.2 I am getting no more communication with Cynical Network plugin, however I can use it to send commands successfully still.

Any suggestions on how to improve this? I presume it has to do with something failing in the new Python requirement?

Thanks

Joe
User avatar
tornado
Posts: 108
Joined: Mon Jun 30, 2014 5:56 pm

Re: Cynical Network doesn't receive data (but sending works)

Post by tornado »

Since I haven't heard anything back on this - are there suggestions on how to troubleshoot this plugin? Is there a way I can manually test it against the new Python which I presume is causing the issues for the plugin?
Perry The Cynic
Posts: 840
Joined: Mon Apr 07, 2008 9:46 pm

Re: Cynical Network doesn't receive data (but sending works)

Post by Perry The Cynic »

Looks like that's a change in regular expression handling that comes with the Python 3.11 that 2023.2 has switched to. I'm looking into it; shouldn't be too hard to fix.

Cheers
-- perry
autoindigo
Posts: 3
Joined: Mon Feb 05, 2024 8:21 am

Re: Cynical Network doesn't receive data (but sending works)

Post by autoindigo »

Same issue as above with the upgrade to 2023.2. I tested it on a clean install and received the error messages below.

Thanks so much for this plugin. It really makes my setup work very well.




Started plugin "Cynical Network 3.1.3"
Cynical Network mapping device "new device" 485931346(outgoing)
Cynical Network new device starting
Cynical Network new device is now idle
Cynical Network new device connecting to 10.0.0.3
Cynical Network plugin starting asyn operation
Cynical Network new device is now connected
Cynical Network new device configured for 0 input event(s)
Cynical Network Error in run_concurrent_thread: 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/cyin/asynplugin.py", line 64, in run_concurrent_thread
self.run()
File ".../Server Plugin/asyn/inject.py", line 60, in run
asyn.Controller.run(self)
File ".../Server Plugin/asyn/controller.py", line 108, in run
item._can_write()
File ".../Server Plugin/asyn/resolve.py", line 76, in _can_write
self.callout(ctx, self.io)
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
^^^^^^^^^^^^^^
File ".../Server Plugin/asyn/resolve.py", line 129, in _connected
self.callout(ctx, result)
File ".../Server Plugin/asyn/core.py", line 163, in callout
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../Server Plugin/asyn/core.py", line 163, in <listcomp>
results = [cb(ctx, *args) for cb in list(self._callbacks)] # latch callback list
^^^^^^^^^^^^^^
File "plugin.py", line 215, in _connected
self.start_stream(socket)
File "plugin.py", line 98, in start_stream
self.update_scan()
File "plugin.py", line 144, in update_scan
self.stream.scan = asyn.scan.Regex(rules)
^^^^^^^^^^^^^^^^^^^^^^
File ".../Server Plugin/asyn/scan.py", line 107, in __init__
self._rules = [(re.compile(rule[0], options),) + rule[1:] for rule in ruleset]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../Server Plugin/asyn/scan.py", line 107, in <listcomp>
self._rules = [(re.compile(rule[0], options),) + rule[1:] for rule in ruleset]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/re/__init__.py", line 227, in compile
return _compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/re/__init__.py", line 294, in _compile
p = _compiler.compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/re/_compiler.py", line 743, in compile
p = _parser.parse(p, flags)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/re/_parser.py", line 982, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/re/_parser.py", line 457, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/re/_parser.py", line 843, in _parse
raise source.error('global flags not at the start '
re.error: global flags not at the start of the expression at position 5

Cynical Network Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
Cynical Network plugin starting asyn operation
Perry The Cynic
Posts: 840
Joined: Mon Apr 07, 2008 9:46 pm

Re: Cynical Network doesn't receive data (but sending works)

Post by Perry The Cynic »

Version 3.1.4 uploaded. Let me know if the trouble persists (or if it doesn't...)

Cheers
-- perry
User avatar
Korey
Posts: 822
Joined: Wed Jun 04, 2008 11:47 am
Location: Henderson, NV
Contact:

Re: Cynical Network doesn't receive data (but sending works)

Post by Korey »

Thanks Perry!!
--
Korey
autoindigo
Posts: 3
Joined: Mon Feb 05, 2024 8:21 am

Re: Cynical Network doesn't receive data (but sending works)

Post by autoindigo »

I've installed the new plugin version 3.1.4 in indigo 2023.2. Everything now works.

Thanks again for your great plugins.
User avatar
tornado
Posts: 108
Joined: Mon Jun 30, 2014 5:56 pm

Re: Cynical Network doesn't receive data (but sending works)

Post by tornado »

Same! Thank you so much Perry!
Post Reply

Return to “Perry the Cynic”