<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">I have been using <a href="http://python.net/" target="_blank">python.net</a> for about 5 years for my project at work. Usually everything worked or at least there was a way to fix it. Right now, there is a situation, that I cannot understand.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Since my PC got upgraded from W7 to W8.1 imports stopped working. It seems that something happens on clr module initialization stage, because when I try clr.AddReference("...") python answers: "AttributeError: 'module' object has no attribute 'AddReference'"</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">When debugging with freshly built clr.pyd/Python.Runtime.dll I see that Runtime.Initialize() finishes without exception and clr module methods are added via InitializeModuleMembers(). Yet still, when I run my program clr doesn't work properly and seems like import hooks are not there (breakpoints at AddReference and other methods are not fired).</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Do you have any pointers for me in this situation?</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">Thank you,</div><div style="font-family:arial,sans-serif;font-size:13px">Mihhail Maslakov</div></div>