2

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?

2
  • According to the doc, the functools package have been introduced in version 2.5. Which is your version ? Commented May 31, 2016 at 8:39
  • I'm using 2.7 and functools.py exists in the lib dir Commented May 31, 2016 at 8:40

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Just copying the dll to the working directory fixed it, thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.