ExiftoolWrapper permission denied

Started by nella, June 24, 2024, 11:58:27 AM

Previous topic - Next topic

nella

Hi! i'm trying to use exiftoolwrapper in c# .net application on MacOs but when I try to start ExiftoolWrapper it give me the exception "Operation not permitted". Someone can help me? please

using (var etw = new ExifToolWrapper(@"/usr/local/bin/exiftool"))
{
    etw.Start();
    d = etw.FetchExifFrom(@"dotnet_bot.png");
}


when I do etw.Start(); start the exception

Phil Harvey

I found this by googling.  Maybe it will help.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

nella

Thank you, but it didn't solve my problem

StarGeek

#3
Maybe this (Medium link)?
Solving 'Operation not permitted' Error in VSCode on macOS

But from the sound of it, this seems to be a Mac permissions error, not an exiftool one. Doing a Google search on "Operation not permitted Mac" pulls up a lot of possible answers.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Yes, definitely not an ExifTool issue.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

nella

I've already tried it but it didn't work. I know maybe it's not an exiftool issue but I'm searching someone who is using exiftool in c# with MacOs and faced the same problem