Installing .ZIP library doesn't work

I just upgraded to IDE 2.3.3. I want to install a library from: Google Code Archive - Long-term storage for Google Code Project Hosting . It is a zip file so I used the Sketch>Include Library> Add .ZIP file and pointed to the downloaded .ZIP file. I received the Error: 13 INTERNAL: Library installed failed: archive is not valid: multiple files found in zip file top level

So perhaps the zip file wasn't formatted correctly for installation. I unzipped it and am wondering if I can install it manually? Where do files go and in what order?

Looks like the long term storage did not keep links active.

Try this link... to download click green CODE button and select ZIP...

Hmm... a fork... showing link to original library same as OP link.

Open the ZIP file of the original link and remove non-code files.

I have deleted your other cross-post @Bricoleur .

Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting can result in a suspension from the forum.

In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

Hi @Bricoleur.

Yes, that is the correct way to proceed in a case where the ZIP file doesn't have the correct structure for installation via Arduino IDE's "Add .ZIP Library..." feature.

You must copy the PWM folder which contains the library to the libraries subfolder of your Arduino sketchbook folder. You can find the location of the sketchbook folder by doing this:

  1. Select File > Preferences... (or Arduino > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Take note of the path shown in the "Sketchbook location" field in the "Preferences" dialog.
    This is the path to your "sketchbook folder".
  3. Click the "Cancel" button.
    The "Preferences" dialog will close.

The library installation structure must look like this:

<sketchbook location>/
├── libraries/
│   ├── PWM/
│   │   ├── PWM.h
│   │   ...
│   ...
...

Rats! This one gave me a different error message - Error: 13 INTERNAL: Library installed failed: moving extracted archive to destination dir: library not valid.

The Arduino website tells me that libraries can be located in three places. I can't find where though! Any help getting this or other libraries installed would be appreciated.

Or what I really want to do is PWM a pin to 25000 Hz for a specific motor control. I had it working before but the old PMW library no longer exists, the one from Google isn't working and this latest one won't open or the IDE doesn't know where to put it (Neither do I!).

Is there a standard PWM library that will get me there? There are many to choose from.

I provided the help already. Just follow the instructions in post #4. If there is something you don't understand in that post, just let me know and I'll provide further assistance.

See post #4.

I got the libraries to install. Seems like it would have been more obvious and easier had the software installation included the "Libraries" sub folder in the Sketchbook folder in the first place. (At least, mine didn't) Thank you, none-the-less.

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