Import Library with special character in IronPython

0

I got a C++.NET library from a colleague with a name like "my-name.dll". Importing in IronPython is not possible since "from my-name import *" is not valid.

If I rename the library to "myname.dll" I get an error that the assembly manifest is missing (HRESULT: 0x80131018). Now I'm not sure wether it is a problem of the wrong name of the accompanying "my-name.lib" file (renaming didn't help) or if there is something different wrong.

I'm not an expert in .NET but as I testet with a VB.NET dll which I built myself (with a proper name) alle worked well.

Any ideas?

dll
character
ironpython
.net-assembly
asked on Stack Overflow Jun 4, 2013 by Michael Hecht • edited Sep 9, 2013 by (unknown user)

1 Answer

0

It's probably an issue with the assembly; calling clr.AddReference('my-name.dll') should work just fine. One possibility is that your machine is missing the proper VC++ runtime files. Try creating a small VB/C# application and loading the DLL from there.

Also, make sure the assembly is not blocked.

answered on Stack Overflow Jun 4, 2013 by Jeff Hardy

User contributions licensed under CC BY-SA 3.0