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.
import clr
When trying to import this, the following error is thrown:
>>> import clr
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: System.DllNotFoundException: /usr/lib/../lib/libmono-native.so assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) Interop+Sys.GetNonCryptographicallySecureRandomBytes(byte*,int)
at Interop.GetRandomBytes (System.Byte* buffer, System.Int32 length) [0x00000] in <894a218ab05a4151a4fb84b414f81888>:0
at System.Guid.FastNewGuidArray () [0x00020] in <894a218ab05a4151a4fb84b414f81888>:0
at System.Reflection.Emit.ModuleBuilder..ctor (System.Reflection.Emit.AssemblyBuilder assb, System.String name, System.String fullyqname, System.Boolean emitSymbolInfo, System.Boolean transient) [0x00035] in <894a218ab05a4151a4fb84b414f81888>:0
at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (System.String name, System.String fileName, System.Boolean emitSymbolInfo, System.Boolean transient) [0x0005b] in <894a218ab05a4151a4fb84b414f81888>:0
at System.Reflection.Emit.AssemblyBuilder.DefineDynamicModule (System.String name) [0x00000] in <894a218ab05a4151a4fb84b414f81888>:0
at Python.Runtime.CodeGenerator..ctor () [0x0002b] in <1d25771ef5ab45e58a874c804663e59c>:0
at Python.Runtime.DelegateManager..ctor () [0x00061] in <1d25771ef5ab45e58a874c804663e59c>:0
at Python.Runtime.PythonEngine.Initialize (System.Collections.Generic.IEnumerable`1[T] args, System.Boolean setSysArgv, System.Boolean initSigs) [0x0000a] in <1d25771ef5ab45e58a874c804663e59c>:0
at Python.Runtime.PythonEngine.Initialize (System.Boolean setSysArgv, System.Boolean initSigs) [0x00005] in <1d25771ef5ab45e58a874c804663e59c>:0
at Python.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