There is pending pull request hopefully addressing this issue:<div><br></div><div><p style="margin:0px;font-size:12px;font-family:Helvetica"><span style="font-size:12pt"><a href="https://github.com/pythonnet/pythonnet/pull/219">https://github.com/pythonnet/pythonnet/pull/219</a></span></p><p style="margin:0px;font-size:12px;font-family:Helvetica"><span style="font-size:12pt"><br></span></p><p style="margin:0px;font-size:12px;font-family:Helvetica"><span style="font-size:12pt">If not, then please open an issue o<span></span>n github or comment on that pull request.</span></p><p style="margin:0px;font-size:12px;font-family:Helvetica"><span style="font-size:12pt"><br></span></p><br>On Friday, May 27, 2016, Daniel Fernandez <<a href="mailto:fernandez_dan2@hotmail.com">fernandez_dan2@hotmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hey Everyone,<div><br></div><div>I'm running into an issue importing beautifulsoup 4 only if I import clr before importing beautifulsoup. I'm using python 3.5 32-bit version on my Windows 7 and Windows 10 box. I'm using beautifulsoup package from Gohlke website (<a title="[81 KB] [Sep 29, 2015]" style="font-family:'Times New Roman';font-size:medium;color:rgb(0,0,128);text-decoration:underline;background-color:rgb(255,255,255)">beautifulsoup4-4.4.1-py3-none-any.whl)</a><br><br>I simply run</div><div>import clr</div><div>from bs4 import beautifulsoup</div><div><br></div><div>then I get this error </div><div><br></div><div><span style="color:rgb(68,68,68);font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)">Unhandled Exception: System.ArgumentException: Name must not be empty!</span><br style="line-height:21.3px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="color:rgb(68,68,68);font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)">   at Python.Runtime.ModuleObject..ctor(String name)</span><br style="line-height:21.3px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="color:rgb(68,68,68);font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)">   at Python.Runtime.ModuleObject.GetAttribute(String name, Boolean guess)</span><br style="line-height:21.3px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="color:rgb(68,68,68);font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)">   at Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)</span><br style="line-height:21.3px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="color:rgb(68,68,68);font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)">   at Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)</span><br style="line-height:21.3px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="color:rgb(68,68,68);font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)">   at Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)</span><br style="line-height:21.3px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="color:rgb(68,68,68);font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)">   at Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)</span><br style="line-height:21.3px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="color:rgb(68,68,68);font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)">   at Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw)</span></div><div><span style="color:rgb(68,68,68);font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(68,68,68);font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)"><br></span></div><div><font color="#444444"><span style="font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)">I build the pythonnet debug version I get this call stack</span></font></div><div><font color="#444444"><span style="font-size:15px;line-height:21.3px;background-color:rgb(255,255,255)"><br></span></font></div><div><span style="background-color:rgb(255,255,255);font-size:15px;line-height:21.3px"><font color="#444444"><div>Unhandled Exception: System.ArgumentException: Name must not be empty!</div><div>   at Python.Runtime.ModuleObject..ctor(String name) in pythonnet\src\runtime\moduleobject.cs:line 26</div><div>   at Python.Runtime.ModuleObject.GetAttribute(String name, Boolean guess) in pythonnet\src\runtime\moduleobject.cs:line 101</div><div>   at Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw) in pythonnet\src\runtime\importhook.cs:line 315</div><div>   at Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)</div><div>   at Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw) in pythonnet\src\runtime\importhook.cs:line 237</div><div>   at Python.Runtime.Runtime.PyObject_Call(IntPtr pointer, IntPtr args, IntPtr kw)</div><div>   at Python.Runtime.ImportHook.__import__(IntPtr self, IntPtr args, IntPtr kw) in pythonnet\src\runtime\importhook.cs:line 237</div><div><br></div><div><br></div><div>if I switch the lines of code</div><div>from bs4 import Beautifulsoup</div><div>import clr</div><div><br></div><div>no errors occur.  Is anyone running into this issue?</div><div><br></div><div>Thanks.</div><div><br></div><div>Danny</div></font></span></div>                                         </div></div>
</blockquote></div>