- Notifications
You must be signed in to change notification settings - Fork750
Closed
Description
Environment
- Pythonnet version: Tried latest from pip, latest from git
- Python version: Tried 3.5, 3.7, 3.8
- Operating System: Arch Linux
Details
Trying to import clr so that I can import a library.
importclr
When trying to import this, the following error is thrown:
>>>importclrTraceback (mostrecentcalllast):File"<stdin>",line1,in<module>ImportError:System.DllNotFoundException:/usr/lib/../lib/libmono-native.soassembly:<unknownassembly>type:<unknowntype>member:(null)at (wrappermanaged-to-native)Interop+Sys.GetNonCryptographicallySecureRandomBytes(byte*,int)atInterop.GetRandomBytes (System.Byte*buffer,System.Int32length) [0x00000]in<894a218ab05a4151a4fb84b414f81888>:0atSystem.Guid.FastNewGuidArray () [0x00020]in<894a218ab05a4151a4fb84b414f81888>:0atSystem.Reflection.Emit.ModuleBuilder..ctor (System.Reflection.Emit.AssemblyBuilderassb,System.Stringname,System.Stringfullyqname,System.BooleanemitSymbolInfo,System.Booleantransient) [0x00035]in<894a218ab05a4151a4fb84b414f81888>:0atSystem.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (System.Stringname,System.StringfileName,System.BooleanemitSymbolInfo,System.Booleantransient) [0x0005b]in<894a218ab05a4151a4fb84b414f81888>:0atSystem.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (System.Stringname) [0x00000]in<894a218ab05a4151a4fb84b414f81888>:0atPython.Runtime.CodeGenerator..ctor () [0x0002b]in<1d25771ef5ab45e58a874c804663e59c>:0atPython.Runtime.DelegateManager..ctor () [0x00061]in<1d25771ef5ab45e58a874c804663e59c>:0atPython.Runtime.PythonEngine.Initialize (System.Collections.Generic.IEnumerable`1[T]args,System.BooleansetSysArgv,System.BooleaninitSigs) [0x0000a]in<1d25771ef5ab45e58a874c804663e59c>:0atPython.Runtime.PythonEngine.Initialize (System.BooleansetSysArgv,System.BooleaninitSigs) [0x00005]in<1d25771ef5ab45e58a874c804663e59c>:0atPython.Runtime.PythonEngine.InitExt () [0x00000]in<1d25771ef5ab45e58a874c804663e59c>:0>>>
I'm not sure what is going on, msbuild and mono work just fine, the referenced libmono-native library exists in the location specified (not sure why it drops back a directory, then goes back into lib though?).
Metadata
Metadata
Assignees
Labels
No labels