plugin error

Posted on
Sun Oct 01, 2023 6:03 pm
digtrail offline
Posts: 28
Joined: Jun 02, 2016

plugin error

I just bought a new Mac mini and am in the process of moving everything over. Upgraded Indigo to latest release, and upgraded plugins to newest releases. The Hue Lights plugin in is throwing this error

Code: Select all
  Hue Lights Error                Error in plugin execution InitializeMain:

  File "plugin.py", line 47, in <module>
  File "/Library/Application Support/Perceptive Automation/Indigo 2022.2/Plugins/Hue Lights.indigoPlugin/Contents/Server Plugin/colormath/color_objects.py", line 4, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/__init__.py", line 140, in <module>
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/core/__init__.py", line 49, in <module>
type:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

    https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

  * The Python version is: Python3.10 from "/Library/Application Support/Perceptive Automation/Indigo 2022.2/IndigoPluginHost3.app/Contents/MacOS/IndigoPluginHost3"
  * The NumPy version is: "1.23.2"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: dlopen(/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/core/_multiarray_umath.cpython-310-darwin.so, 0x0002): tried: '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/core/_multiarray_umath.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/core/_multiarray_umath.cpython-310-darwin.so' (no such file), '/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/numpy/core/_multiarray_umath.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))


Any suggestions on how to remedy? Thanks

Posted on
Sun Oct 01, 2023 6:23 pm
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: plugin error


Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Oct 02, 2023 8:29 pm
digtrail offline
Posts: 28
Joined: Jun 02, 2016

Re: plugin error

jay (support) wrote:


Huh, who could've known that a developer would have such an easy quick answer. I knew there was stuff with the intel to silicon transition and python 2-3 transition but just didn't look back through. Thanks Jay, that was the issue. All works good now.

Posted on
Sun Oct 29, 2023 5:38 pm
new2me07 offline
Posts: 84
Joined: Apr 07, 2017

Re: plugin error

Nice lol.... How about this one?

Updated Indigo, hue was not linked, updated pairing via plugin config tab, found all the devices (there were sitting there in red with status of deleted, once re-paired they looked fine and works normally, just my log is being overrun with these errors every 3.5 minutes. Any ideas?

Code: Select all
Hue Lights Error               
Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/urllib3/response.py", line 438, in _error_catcher
    yield
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/urllib3/response.py", line 519, in read
    data = self._fp.read(amt) if not fp_closed else b""
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/http/client.py", line 465, in read
    s = self.fp.read(amt)
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/socket.py", line 705, in readinto
    return self._sock.recv_into(b)
ConnectionResetError: [Errno 54] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/requests/models.py", line 760, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/urllib3/response.py", line 576, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/urllib3/response.py", line 512, in read
    with self._error_catcher():
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/contextlib.py", line 153, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/urllib3/response.py", line 455, in _error_catcher
    raise ProtocolError("Connection broken: %r" % e, e)
urllib3.exceptions.ProtocolError: ("Connection broken: ConnectionResetError(54, 'Connection reset by peer')", ConnectionResetError(54, 'Connection reset by peer'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "plugin.py", line 846, in commandToHub_HTTP
    r = requests.get(command, timeout=kTimeout, headers={'Connection':'close'})
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/requests/sessions.py", line 687, in send
    r.content
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/requests/models.py", line 838, in content
    self._content = b''.join(self.iter_content(CONTENT_CHUNK_SIZE)) or b''
  File "/Library/Application Support/Perceptive Automation/Indigo 2023.1/IndigoPluginHost3.app/Contents/Resources/PlugIns/requests/models.py", line 763, in generate
    raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ("Connection broken: ConnectionResetError(54, 'Connection reset by peer')", ConnectionResetError(54, 'Connection reset by peer'))

Posted on
Mon Oct 30, 2023 5:23 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: plugin error

this looks like a low level python issue.

see Jays suggestion:

I expect you upgraded from Intel to Apple Silicon.

https://wiki.indigodomo.com/doku.php?id=indigo_2022.2_documentation:getting_started#moving_an_indigo_installation_to_another_architecture

Posted on
Mon Oct 30, 2023 12:34 pm
jay (support) offline
Site Admin
User avatar
Posts: 18225
Joined: Mar 19, 2008
Location: Austin, Texas

Re: plugin error

Those errors indicate that there is some network issue. When you see connection reset errors, it usually means that the response from the network device (in this case I guess it's the Hue) is a low-level RST packet. In this case, I suspect the Hub has gotten into a bad state, but it could also mean that the Mac network stack is borked.

I'd recommend rebooting the Mac and unplugging the Hue hub for a few minutes to see if that will help.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 8 guests