Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

System.DllNotFoundException when trying to import clr, despite referenced assembly existing #1034

Closed
@levihb

Description

@levihb

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp