I’ve downloaded “pythonnet-2.0-Beta0-clr4.0_140_py27_UCS2_x86.zip”
and unzipped its contents to my python32/DLLs folder.
Then when I try to use it I get the following error:-
>>> import clr
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define init function (PyInit_clr)
Three questions:
1. I’m assuming this release was for use with .net4 and python version 2.7, is that correct?
2. Is there an official release of python for .net that works with python 3.2? Currently I’m using these beta builds (http://www.pyxll.com/pythonnet/) that I found from reading the mailing lists.
3. Is there a different reason why my python code example isn’t working with the official release?
Thanks for your time.