Forum Archive

Can't load OpenCV framework.

Webmaster4o

I thought I'd try to see what I could do with objc_util and opencv2.framework. I downloaded opencv2.framework, and tried to run this code in the same directory:

from objc_util import *

OpenCV = ObjCClass('NSBundle').bundleWithPath_('opencv2.framework')
print OpenCV.isLoaded()
OpenCV.load()
print OpenCV.isLoaded()

It prints

False
False

Is this because of the code-signing issues people were talking about last summer? (I think August? I remember being on vacation in California :))

stroughtonsmith

You won't be able to load any libraries signed with a different Team ID to Pythonista, asides Apple-signed code. The sandbox / AppleMobileFileIntegrity will deny it. You're stuck with system frameworks & libraries.

Webmaster4o

@stroughtonsmith thanks.