Traceback (most recent call last):
File "/Users/martinomadeddu/software/gaffer-1.5.8.0-macos-arm64/bin/__gaffer.py", line 179, in <module>
app = loadApp( appName )
File "/Users/martinomadeddu/software/gaffer-1.5.8.0-macos-arm64/bin/__gaffer.py", line 92, in loadApp
return appLoader.load( appName )()
File "/Users/martinomadeddu/software/gaffer-1.5.8.0-macos-arm64/python/IECore/ClassLoader.py", line 163, in load
spec.loader.exec_module( module )
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/Users/martinomadeddu/software/gaffer-1.5.8.0-macos-arm64/apps/gui/gui-1.py", line 45, in <module>
import GafferUI
File "/Users/martinomadeddu/software/gaffer-1.5.8.0-macos-arm64/python/GafferUI/__init__.py", line 125, in <module>
from ._GafferUI import *
ImportError: dlopen(/Users/martinomadeddu/software/gaffer-1.5.8.0-macos-arm64/python/GafferUI/_GafferUI.so, 0x0002): Library not loaded: /tmp/build/lib/QtCore.framework/Versions/5/QtCore
Referenced from: <A1062C06-CCFF-3AC2-99B6-04C9678C4E2B> /Users/martinomadeddu/software/gaffer-1.5.8.0-macos-arm64/python/GafferUI/_GafferUI.so
Reason: tried: '/Users/martinomadeddu/software/gaffer-1.5.8.0-macos-arm64/lib/QtCore.framework/Versions/5/QtCore' (code signature in <4296FD11-67C2-3EEE-9DF4-B26F97C66C79> '/Users/martinomadeddu/software/gaffer-1.5.8.0-macos-arm64/lib/QtCore.framework/Versions/5/QtCore' not valid for use in process: library load disallowed by system policy), '/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (no such file), '/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (no such file), '/Library/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file), '/System/Library/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file, not in dyld cache)
thank you.
| |||||||||||||
--
You received this message because you are subscribed to the Google Groups "gaffer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gaffer-dev+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gaffer-dev/68e403a3-17f2-4e5b-9081-dc14be83e19en%40googlegroups.com.
| |||||||||||||
To view this discussion visit https://groups.google.com/d/msgid/gaffer-dev/CAE9LL__-HPqa075mPj8VkJBJb1JJmH5ZVKzdBDOhpFHagL68yg%40mail.gmail.com.
| |||||||||||||
To view this discussion visit https://groups.google.com/d/msgid/gaffer-dev/CAGYQAO8RZxFkP429uOtAnsSSjDUd4mmeotc%2B5UoSPkiguQKKkw%40mail.gmail.com.
| |||||||||||||
Thanks for your reply Sachin,i did try to copy the whole Gaffer folder to /tmp/ but was still getting similar errors.this seems to be the folder missing (after copying and renaming to build in /tmp/): /System/Library/Frameworks/QtCore.framework/Versions/5/QtCoreThat folder missing was showing up as an error prior to copying and renaming too.
i wonder if just copying that dependancy in that location from the Gaffer build will do. I'll give it a go soon.
martinomadeddu@martinomadeddu ~ % /tmp/build/bin/gaffer ; exit;
Traceback (most recent call last):
File "/private/tmp/build/bin/__gaffer.py", line 179, in <module>
app = loadApp( appName )
File "/private/tmp/build/bin/__gaffer.py", line 92, in loadApp
return appLoader.load( appName )()
File "/private/tmp/build/python/IECore/ClassLoader.py", line 163, in load
spec.loader.exec_module( module )
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/private/tmp/build/apps/gui/gui-1.py", line 45, in <module>
import GafferUI
File "/private/tmp/build/python/GafferUI/__init__.py", line 125, in <module>
from ._GafferUI import *
ImportError: dlopen(/private/tmp/build/python/GafferUI/_GafferUI.so, 0x0002): Library not loaded: /tmp/build/lib/QtCore.framework/Versions/5/QtCore
Referenced from: <39468F20-2A36-3086-8EFD-94C2585B7DE2> /private/tmp/build/python/GafferUI/_GafferUI.so
Reason: tried: '/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (code signature in <4296FD11-67C2-3EEE-9DF4-B26F97C66C79> '/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' not valid for use in process: library load disallowed by system policy), '/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (code signature in <4296FD11-67C2-3EEE-9DF4-B26F97C66C79> '/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' not valid for use in process: library load disallowed by system policy), '/System/Volumes/Preboot/Cryptexes/OS/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (no such file), '/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (code signature in <4296FD11-67C2-3EEE-9DF4-B26F97C66C79> '/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' not valid for use in process: library load disallowed by system policy), '/Library/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file), '/System/Library/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file, not in dyld cache), '/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (code signature in <4296FD11-67C2-3EEE-9DF4-B26F97C66C79> '/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' not valid for use in process: library load disallowed by system policy), '/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (code signature in <4296FD11-67C2-3EEE-9DF4-B26F97C66C79> '/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' not valid for use in process: library load disallowed by system policy), '/System/Volumes/Preboot/Cryptexes/OS/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (no such file), '/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' (code signature in <4296FD11-67C2-3EEE-9DF4-B26F97C66C79> '/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' not valid for use in process: library load disallowed by system policy), '/Library/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file), '/System/Library/Frameworks/QtCore.framework/Versions/5/QtCore' (no such file, not in dyld cache)
| |||||||||||||
To view this discussion visit https://groups.google.com/d/msgid/gaffer-dev/3bd391bd-c9cf-4a49-8a71-891bea2bcb25n%40googlegroups.com.
otool -L <your_gaffer_root>/python/GafferUI/_GafferUI.so
sudo xattr -rd com.apple.quarantine /tmp/build
-Sachin
| |||||||||||||
To view this discussion visit https://groups.google.com/d/msgid/gaffer-dev/8b334616-5e3e-43d1-b58c-5ea18a019f04n%40googlegroups.com.
| |||||||||||||
ah i think you are right about the system preventing the libs to load.In fact, looking at the errors closer it says "library load disallowed by system policy":
/private/tmp/build/lib/QtCore.framework/Versions/5/QtCore' not valid for use in process: library load disallowed by system policy)running the suggested command: sudo xattr -rd com.apple.quarantine /tmp/build
allows me to launch Gaffer from /tmp/build.I guess i can just remove that file from my main install of Gaffer to tag it as secure to run it from my /software/ folder.great spot
To view this discussion visit https://groups.google.com/d/msgid/gaffer-dev/CAE9LL_-Tfu2YwHHatkRE5Y6NvX7eef7mt%3D40usypKJOsn7WS3g%40mail.gmail.com.