Plugin does not work with Indigo 2021.1
Plugin does not work with Indigo 2021.1
Since I updated Indigo to version 2021.1 the Doorbird plugin does not work anymore. It is not possible to create a new doorbird device and the existing one is not available anymore.
Any solution for this?
The eventlog shows
Reloading plugin "DoorBird 1.0.0"
Starting plugin "DoorBird 1.0.0" (pid 43097)
DoorBird Error Error in plugin execution InitializeMain:
Traceback (most recent call last):
File "plugin.py", line 10, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 2021.1/Plugins/DoorBird.indigoPlugin/Contents/Server Plugin/pysodium/__init__.py", line 33, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 444, in LoadLibrary
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 366, in __init__
OSError: dlopen(libsodium.dylib, 6): no suitable image found. Did find:
libsodium.dylib: mach-o, but wrong architecture
/Library/Application Support/Perceptive Automation/Indigo 2021.1/Plugins/DoorBird.indigoPlugin/Contents/Server Plugin/libsodium.dylib: mach-o, but wrong architecture
Stopping plugin "DoorBird 1.0.0" (pid 43097)
Stopped plugin "DoorBird 1.0.0"
Any solution for this?
The eventlog shows
Reloading plugin "DoorBird 1.0.0"
Starting plugin "DoorBird 1.0.0" (pid 43097)
DoorBird Error Error in plugin execution InitializeMain:
Traceback (most recent call last):
File "plugin.py", line 10, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 2021.1/Plugins/DoorBird.indigoPlugin/Contents/Server Plugin/pysodium/__init__.py", line 33, in <module>
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 444, in LoadLibrary
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 366, in __init__
OSError: dlopen(libsodium.dylib, 6): no suitable image found. Did find:
libsodium.dylib: mach-o, but wrong architecture
/Library/Application Support/Perceptive Automation/Indigo 2021.1/Plugins/DoorBird.indigoPlugin/Contents/Server Plugin/libsodium.dylib: mach-o, but wrong architecture
Stopping plugin "DoorBird 1.0.0" (pid 43097)
Stopped plugin "DoorBird 1.0.0"
- matt (support)
- Site Admin
- Posts: 21542
- Joined: Mon Jan 27, 2003 1:17 pm
- Location: Texas
- Contact:
Re: Plugin does not work with Indigo 2021.1
The libsodium.dylib library that is included with the plugin only supports Intel architecture but needs to support arm64 (M1) to be used with Indigo 2021.1.
You might be able to use Homebrew to install it on your Mac instead. Note if you do that you might have to delete this file out of the plugin so it finds the version homebrew installed instead:
DoorBird.indigoPlugin/Contents/Server Plugin/libsodium.dylib
(then restart the plugin)
You might be able to use Homebrew to install it on your Mac instead. Note if you do that you might have to delete this file out of the plugin so it finds the version homebrew installed instead:
DoorBird.indigoPlugin/Contents/Server Plugin/libsodium.dylib
(then restart the plugin)
Re: Plugin does not work with Indigo 2021.1
Upgraded to 2021.1 and my DoorBird plugin worked without any problems.
Skickat från min iPhone med Tapatalk
Skickat från min iPhone med Tapatalk
Re: Plugin does not work with Indigo 2021.1
I guess it runs on a intel mac then? I have a M1 Mac Mini
Re: Plugin does not work with Indigo 2021.1
This worked for me - "brew install libsodium" and then I needed to copy libsodium.23.dylib from /opt/homebrew/cellar/libsodium/.... into the plugin contents folder, and rename as libsodium.dylib. For some reason it didn't work just using an alias to that file, but not a big deal to copy it.matt (support) wrote:The libsodium.dylib library that is included with the plugin only supports Intel architecture but needs to support arm64 (M1) to be used with Indigo 2021.1.
You might be able to use Homebrew to install it on your Mac instead. Note if you do that you might have to delete this file out of the plugin so it finds the version homebrew installed instead:
DoorBird.indigoPlugin/Contents/Server Plugin/libsodium.dylib
(then restart the plugin)
- matt (support)
- Site Admin
- Posts: 21542
- Joined: Mon Jan 27, 2003 1:17 pm
- Location: Texas
- Contact:
-
kwijibo007
- Posts: 331
- Joined: Fri Sep 27, 2013 4:58 pm
- Location: Melbourne, Australia
Re: Plugin does not work with Indigo 2021.1
Apologies for missing this. I'm working out how to integrate the arm and intel version into the plugin.
-
kwijibo007
- Posts: 331
- Joined: Fri Sep 27, 2013 4:58 pm
- Location: Melbourne, Australia
Re: Plugin does not work with Indigo 2021.1
Version 1.1.0 of the plugin has been released and includes support for M1 Macs.
Pete
Pete
- matt (support)
- Site Admin
- Posts: 21542
- Joined: Mon Jan 27, 2003 1:17 pm
- Location: Texas
- Contact:
Re: Plugin does not work with Indigo 2021.1
Hmm. I have an Intel MacMini and still get the above error with Indigo 2022.1.2 and Doorbird v1.2.0:
What am I doing wrong?
Code: Select all
DoorBird Error Error in plugin execution InitializeMain:
Traceback (most recent call last):
File "plugin.py", line 22, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/DoorBird.indigoPlugin/Contents/Server Plugin/pysodium/__init__.py", line 33, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 444, in LoadLibrary
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 366, in __init__
OSError: dlopen(libsodium.dylib, 6): no suitable image found. Did find:
libsodium.dylib: code signature in (libsodium.dylib) not valid for use in process using Library Validation: library load disallowed by system policy
/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/DoorBird.indigoPlugin/Contents/Server Plugin/libsodium.dylib: code signature in (/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/DoorBird.indigoPlugin/Contents/Server Plugin/libsodium.dylib) not valid for use in process using Library Validation: library load disallowed by system policy
- jay (support)
- Site Admin
- Posts: 19232
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Plugin does not work with Indigo 2021.1
Looks like macOS may have quarantined the plugin. Try executing this in a Terminal window:
Code: Select all
sudo xattr -rd com.apple.quarantine /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2022.1/PluginsRe: Plugin does not work with Indigo 2021.1
Thanks!
That did the trick.
That did the trick.
Re: Plugin does not work with Indigo 2021.1
I am unable to install the 2.0.0 version and cannot go back to the previous version (1.2.0) either. In both cases I get an OS error and I then get the following in the Indigo log (which makes sense since the install failed.) Intel Mac,
MacOS 12.5
Indigo 2022.1
I have run the quarantine related command noted by Jay
I have updated other plugins without having this problem.
Code: Select all
DoorBird.indigoPlugin” cannot be opened because the developer cannot be verified.
macOS cannot verify that this app is free from malware.Code: Select all
DoorBird Error Error in plugin execution InitializeMain:
File "plugin.py", line 22, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/DoorBird.indigoPlugin/Contents/Server Plugin/pysodium/__init__.py", line 33, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ctypes/__init__.py", line 452, in LoadLibrary
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/ctypes/__init__.py", line 374, in __init__
type: dlopen(libsodium.dylib, 0x0006): tried: '/Library/Application Support/Perceptive Automation/Indigo 2022.1/IndigoPluginHost3.app/Contents/MacOS/../Frameworks/libsodium.dylib' (no such file), 'libsodium.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h')), '/usr/lib/libsodium.dylib' (no such file), '/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/DoorBird.indigoPlugin/Contents/Server Plugin/libsodium.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64h'))MacOS 12.5
Indigo 2022.1
I have run the quarantine related command noted by Jay
I have updated other plugins without having this problem.
-
kwijibo007
- Posts: 331
- Joined: Fri Sep 27, 2013 4:58 pm
- Location: Melbourne, Australia
Re: Plugin does not work with Indigo 2021.1
This occurs because I include the binary files for libsodium which is used for reading the encrypted DoorBird messages.
The binary files have to be compiled manually. As this is fairly complicated to do I’ve included them in the plug-in but it causes the OS to quarantine them (sometimes).
I’ve never used Jay’s fix. I go into MacOS settings and Security. Within there is a message saying the plug-in was blocked. There you can unblock It. Then restart the plug-in.
The binary files have to be compiled manually. As this is fairly complicated to do I’ve included them in the plug-in but it causes the OS to quarantine them (sometimes).
I’ve never used Jay’s fix. I go into MacOS settings and Security. Within there is a message saying the plug-in was blocked. There you can unblock It. Then restart the plug-in.
Re: Plugin does not work with Indigo 2021.1
Thanks. The timing is a bit tight. I had to have the Security pane open and then start the install, have it send the first fail message, say Ok. Let it complete, then restart it in Indigo, and again say Ok. But, it is running again.kwijibo007 wrote:...go into MacOS settings and Security. Within there is a message saying the plug-in was blocked. There you can unblock It. Then restart the plug-in.
