Hi all,
The problems you are experiencing are being caused by the latest changes Apple has introduced in their software security policies.
All newly distributed macOS applications must be
notarized by Apple. The notarization process requires all executable files to be digitally signed with a valid developer certificate issued by Apple, and all binaries, including dynamic libraries, must be executed with the
hardened runtime enabled. Finally, a scriptable application like PixInsight, which includes a JavaScript engine, requires some special
entitlements to be able to execute JIT-generated code. The hardened runtime and the entitlements can only be selected as part of the digital signature process, which in turn makes a digital signature absolutely necessary for all seriously distributed applications on macOS.
A signed/notarized application bundle cannot be modified. You can't change a single bit of its contents, or the digital signature will be invalidated and the application won't run. This means that if I have to change a small text file of, say, 1 KB inside PixInsight.app, I'll have to released an update of nearly 200 MB to replace the entire application bundle. Fortunately, current Apple policies allow us to preserve the PixInsight distribution, i.e. distributing all modules on the /Applications/PixInsight/bin folder. If this changes in the future, then alas, the macOS version of PixInsight will lose our automatic updates system. I hope this won't happen, and I can't see any valid reason for it to happen, but who knows, everything is basically marketing-guided to keep users 'feeling secure'.
Disabling SIP is a very bad idea. Please don't do that because your system will be vulnerable, which is extremely dangerous.
So the only way to keep this module running is to sign it digitally with a valid Apple developer ID. Besides this, you cannot put the required TensorFlow library inside the application bundle, for the reasons explained above, so you'll probably have to use the install_name_tool utility to change the location where the module wants to load it from. If you provide a link where I can download the module and all required files, I'll try to fix this problem quickly.
Please note that this module is not part of the official PixInsight distribution, or obviously these problems wouldn't exist. This module requires significant changes and refactoring, and its inclusion in our development chain is very problematic, mainly because of its dependencies on third-party components. Currently I have no free time to invest in these tasks because I am working on other higher priority projects.