using functools with IronPython

为君一笑 提交于 2019-12-04 04:47:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!