Closed
Description
i installed latest version of imutils by
pip install imutils
then i created a python file with single line of code in it
from imutils import face_utils
after building ironpython, i created new C# project and added all dll files (that were built) as reference
below is the code i'm using (added module path in searchPah
to avoid module not found)
var engine = Python.CreateEngine();
var searchPaths = engine.GetSearchPaths();
searchPaths.Add(@"C:\Users\username\AppData\Local\Programs\Python\Python36\Lib\site-packages");
engine.SetSearchPaths(searchPaths);
var mainfile = "sample.py";
var scope = engine.CreateScope();
engine.CreateScriptSourceFromFile(mainfile).Execute(scope);
when i run above C# code, i was getting "No module named future "
so i updated my python file with below code
import sys
sys.path.append(r'C:/Users/username/AppData/Local/Programs/Python/Python36/Lib')
sys.path.append(r'C:/Users/username/AppData/Local/Programs/Python/Python36/Lib/site-packages')
from imutils import face_utils
now when i run above C# code, i'm getting a different error
An unhandled exception of type 'IronPython.Runtime.Exceptions.TypeErrorException' occurred in Microsoft.Dynamic.dll
Additional information: _add_filter() got an unexpected keyword argument 'append'
how to solve this?
Thanks & Regards