I'm trying to run a 3rd party application through the Spyder Python IDE. I'm able to import the code and it runs through the command line using the Terminal application but Spyder appears to be more careful about code signing permissions, and it won't run the code. The initial error said that the code wasn't signed at all. The error was
'/path/libmylibrary.dylib' not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.)
By entering codesign -d -v /path/libmylibrary.dylib
I was able to see the code signing status, which said that, indeed, the code was unsigned. I then signed the code by entering codesign -s - /path/libmylibrary.dylib
and the code was then signed. However, there were still problems. Running at this point led to the new error
'/path/libmylibrary.dylib' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
Sure enough, it's still correct. The library TeamIdentifier is still equal to "not set". But here, I'm stuck. I can't seem to find any way to set this value to anything else. Any advice on how to fix this would be much appreciated.
Details: Computer is a 2022 M1 MacBook Pro running OS 12.6 and Spyder is version 5.3.3. Spyder says that it's running Python 3.9.5, but if I run Python from the command line, then it's version 3.10.
pip install tellurium
. I expect that libantimony.dylib was written in C++ but I don't really know.