Upgrade to Python 3?

gskarp
Posts: 156
Joined: Thu Apr 19, 2012 4:50 pm

Re: Upgrade to Python 3?

Post by gskarp »

This is what I am seeing:
Onkyo Network Remote Plugin Error Error executing effect for device id 36913221
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Onkyo Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkDeviceResponse.py", line 164, in execute_effects
eval(f"rp_device.{effect.update_param}(response_obj, rp_command)")
File "<string>", line 1, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Onkyo Network Remote.indigoPlugin/Contents/Server Plugin/onkyoNetworkRemoteDevice.py", line 489, in listening_mode_response_received
self.response_to_mapped_value(r"LMD(?P<value>([\dA-Z]+)", response_obj, "listeningMode", self.listening_mode_map)
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Onkyo Network Remote.indigoPlugin/Contents/Server Plugin/onkyoNetworkRemoteDevice.py", line 497, in response_to_mapped_value
value_splitter = re.compile(parse_expression)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 867, in _parse
raise source.error("missing ), unterminated subpattern",
re.error: missing ), unterminated subpattern at position 3
Onkyo Network Remote Plugin Error Error executing effect for device id 36913221
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Onkyo Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkDeviceResponse.py", line 125, in execute_effects
new_state_value = eval(new_state_value_string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 1
NST(?P<value>.+)", "NSTS--1").groupdict().get("value")
^
SyntaxError: unterminated string literal (detected at line 1)
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: Upgrade to Python 3?

Post by RogueProeliator »

Okay, I was able to replicate it -- seems like the final publish didn't include a fix that I had put on my local for it. I'll double check all the files/fixes and publish a change -- this error is for a single state (or maybe two) so you should see control and all other states working I believe.

Thanks for reporting!

Adam
gskarp
Posts: 156
Joined: Thu Apr 19, 2012 4:50 pm

Re: Upgrade to Python 3?

Post by gskarp »

Thanks for taking the time to get this up and running. And my wife thanks you even more! She hated having to use the separate Onkyo app...
User avatar
RogueProeliator
Posts: 2538
Joined: Tue Nov 13, 2012 3:54 pm
Location: Baton Rouge, LA

Re: Upgrade to Python 3?

Post by RogueProeliator »

Thanks for taking the time to get this up and running. And my wife thanks you even more! She hated having to use the separate Onkyo app...
You're welcome! I have published a new version which should fix the error in the logs; please let me know how it goes!
gskarp
Posts: 156
Joined: Thu Apr 19, 2012 4:50 pm

Re: Upgrade to Python 3?

Post by gskarp »

This fixed a number of the rearer messages. I still am seeing just an initial scattering but the plugin still seems to work fine:
Onkyo Network Remote Plugin Error Error executing effect for device id 36913221
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/Onkyo Network Remote.indigoPlugin/Contents/Server Plugin/RPFramework/RPFrameworkDeviceResponse.py", line 125, in execute_effects
new_state_value = eval(new_state_value_string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<string>", line 1
NST(?P<value>.+)", "NSTS--1").groupdict().get("value")
^
SyntaxError: unterminated string literal (detected at line 1)
Post Reply

Return to “Onkyo Receiver”