Invalid Library messages showing up no matter what I do

Hi there,

I'm new to Arduino but was able to get a few small projects working. Suddenly last week I kept getting the same error messages, no matter what sketch I'm using, even if it's a tutorial copy & pasted from the site. I'm using an Elegoo UNO R3 & a MacBook Pro, High Sierra 10.13.6. Pretty confused what happened as I seemed toi be off to a strong start. Here's the message:

Arduino: 1.8.13 (Mac OS X), Board: "Arduino Uno"

loading libs from /private/var/folders/jn/mvfr3dn55hlbz17r9ynf17tm0000gn/T/AppTranslocation/450E4F09-6FFD-43C8-B3CB-E591004F754C/d/Arduino.app/Contents/Java/libraries: loading library from /private/var/folders/jn/mvfr3dn55hlbz17r9ynf17tm0000gn/T/AppTranslocation/450E4F09-6FFD-43C8-B3CB-E591004F754C/d/Arduino.app/Contents/Java/libraries/Esplora: loading library.properties: Error reading file (/private/var/folders/jn/mvfr3dn55hlbz17r9ynf17tm0000gn/T/AppTranslocation/450E4F09-6FFD-43C8-B3CB-E591004F754C/d/Arduino.app/Contents/Java/libraries/Esplora/library.properties:0): Invalid line format, should be 'key=value'

Error compiling for board Arduino Uno.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

And here's the code (it's the Blink tutorial):

/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

  http://www.arduino.cc/en/Tutorial/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second

I believe this strange path:
/private/var/folders/jn/mvfr3dn55hlbz17r9ynf17tm0000gn/T/AppTranslocation/450E4F09-6FFD-43C8-B3CB-E591004F754C/d/Arduino.app/Contents/Java/libraries/Esplora/library.properties
means the Arduino IDE has been quarantined by macOS.

I see from this:

that this is done by adding a special attribute to the file. So maybe it is this attribute that has corrupted the library.properties metadata file of the Esplora library.

I don't have a lot of experience with macOS. I guess this happens when macOS shows an "Are you sure you want to open it?" dialog and you click "Cancel" instead of "Open". What I'm not sure about is whether this is a normal thing to occur. I guess the best approach is to uninstall the Arduino IDE and then reinstall it, making sure you download the official Arduino IDE from this page:

After that, if you get the "Are you sure you want to open it?" dialog, you can feel safe in clicking the "Open" button.

Thanks so much, going to give this a try

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.