问题
I'm using the functools library with IronPython.
It works fine on the development machine, but in production the library can't be imported. Exception is thrown:
IronPython.Runtime.Exceptions.ImportException: No module named _functools
IronPython is installed on the production machine of course and functools.py is there, but how should I deploy _functools?
回答1:
Normally _functools
is the native component that functools.py
wraps. Given that native modules are not supported in IronPython (as of now) the relevant functionality is implemented in IronPython.Modules.dll
(as seen here).
IronPython.Modules.dll
is probably what you are missing.
来源:https://stackoverflow.com/questions/37540724/using-functools-with-ironpython