Error: Module '<custommodule>' has no '<def>' member

Hey everyone,

I’m pretty new to touchdesigner and I’m trying to use a custom Python package called deepface. The module is imported correctly, but when I try to run the code it says that it can’t find the ‘analyze’ function. This function does work when I run the code outside of TouchDesigner. Does somebody know why this error occurs?

Thanks a lot!

Here is my code:

import numpy as np
import cv2
import deepface as DeepFace

def onSetupParameters(scriptOp):
return

def onPulse(par):
return

def onCook(scriptOp):
cap = op(‘null1’).numpyArray(delayed=True)
result = DeepFace.analyze(cap)
return

Hello @daanwalder , could you finally get it to work?