8000 clr throws (File is blocked (NTFS Security)) error when trying to AddReference on Mac · Issue #732 · pythonnet/pythonnet · GitHub
[go: up one dir, main page]

Skip to content
clr throws (File is blocked (NTFS Security)) error when trying to AddReference on Mac #732
Closed
@davidguaita

Description

@davidguaita

Environment

  • Pythonnet version: 2.4.0
  • Python version: 3.5.4
  • Operating System: Mac OS Sierra 10.12.1

Details

  • Describe what you were trying to get done.

    I'm trying to add the reference of a dll to clr.
    The problem is, when trying to add the reference, it throws an error message:
    System.Exception: File is blocked (NTFS Security)
    The same dll files work with pythonnet correctly in a windows environment.
    I've sent the files to the mac from the pc via smb protocol.

  • What commands did you run to trigger this issue?

      import clr
      clr.AddReference(r'TestLibrary.dll')
  • If there was a crash, please include the traceback here.
     File "/Users/pfsteam/Desktop/XXXX/YYYY/ZZZZ/server/handler.py", line 76, in simulator_handler
    clr.AddReference(r'TestLibrary.dll')
System.Exception: File is blocked (NTFS Security)
  at Python.Runtime.CLRModule.AddReference (System.String name) [0x00053] in <839f97acd45d4def8bcdb1c7938a79c0>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0003b] in <2774478d59ae47bd8b8bfafb23c3364c>:0 

Process finished with exit code 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0