Discussion:
[Python.NET] ImportError: dynamic module does not define init function (PyInit_CLR)
Catherine Holloway
2013-08-20 20:05:56 UTC
Permalink
When I try to do:

import CLR

I get the following error:

ImportError: dynamic module does not define init function (PyInit_CLR)

any ideas? I downloaded what I thought was the windows installer from
sourceforge, but running nPython.exe just crashes (it gives something about
not being able to find python27). I have python33. Does that mean that
python for .net is not compatible with python 3.3.?
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Catherine Holloway
Institute for Quantum Computing
Lab Phone: 519-888-4567 ext. 32107
Office Phone: 519-888-4567 ext. 39038
Cell Phone: 519-998-1264
Tribble, Brett
2013-08-21 00:45:03 UTC
Permalink
Python for .NET is in a superpositional state in which it is both working and not working. You just collapsed its wave function prematurely. Also you didn't which is why we're also not having this conversation.

Addressing the question not clearly at hand, support for Python 3.x is pretty green still. You might try grabbing Tony Robert's build that has tentative support:

On 5 Jul 2013 07:01, "Tony Roberts" <tony-***@public.gmane.org<mailto:tony-***@public.gmane.org>> wrote:
Yes, I made some changes to get it working in Python 3 a while ago. The code's on github: https://github.com/tonyroberts/pythonnet.

I've tested it with 3.3 x64 and it works ok for me (although I've only really used the 3.2 x64 build extensively).

regards,
Tony



From: PythonDotNet [mailto:pythondotnet-bounces+btribble=ea.com-+ZN9ApsXKcFQFI55V6+***@public.gmane.orgg] On Behalf Of Catherine Holloway
Sent: Tuesday, August 20, 2013 1:06 PM
To: pythondotnet-+ZN9ApsXKcEdnm+***@public.gmane.org
Subject: [Python.NET] ImportError: dynamic module does not define init function (PyInit_CLR)

When I try to do:

import CLR

I get the following error:

ImportError: dynamic module does not define init function (PyInit_CLR)

any ideas? I downloaded what I thought was the windows installer from sourceforge, but running nPython.exe just crashes (it gives something about not being able to find python27). I have python33. Does that mean that python for .net is not compatible with python 3.3.?

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Catherine Holloway
Institute for Quantum Computing
Lab Phone: 519-888-4567 ext. 32107
Office Phone: 519-888-4567 ext. 39038
Cell Phone: 519-998-1264

Loading...