Help: Arduino IDE won't upload CMRI zip to Mac

I have been unable to install a CMRI zip downloaded from github.com onto my Macbook Pro (2018 Intel i9 running Sonoma 14.2.1). When I go > Arduino >sketch > include library > add zip library, the download window (where the zip is located) opens but will not allow me to click on Open. I can only cancel.

Here is the link I'm trying to load into Arduino IDE: https://github.com/madleech/ArduinoCMRI/zipball/master

This is the GitHub address: GitHub - madleech/ArduinoCMRI: Arduino library for connecting your computer to your model railroad.

I'm a newbie here. I know nothing.

I'm not a Mac user.

Are you using IDE 1.x or IDE 2.x; just asking to make sure (you posted in IDE 1.x).

Did you select the downloaded zip first?

I’m using IDE 2.3. Thanks. Yes I selected the zip first.

In that case I can't help you further. You can manually extract and copy to the correct location if no other solution is provided.

Topic moved to the IDE 2.x section of the forum.

Hi @cogerox.

Please provide a screenshot of the dialog when you encounter this problem of the "Open" button being disabled. Hopefully that will give us a better understanding of the problem.

You can do that by pressing Shift+Command+4+Space on your keyboard, which will copy the screenshot of the active window to your clipboard. You are also welcome to screenshot by any other procedure you prefer.

You can then add the screenshot to a reply here by clicking the "Reply" button here and then doing any one of the following:

  • Press the Command+V keyboard shortcut to paste the screenshot from the clipboard.
  • Save the screenshot as an image and then drag and drop it into the reply field on the forum page.
  • Save the screenshot as an image, click the upload button (image) in the post composer toolbar, and then select the image file.

It looks like you have selected a folder instead of a ZIP file. Maybe you used something like the macOS "Archive Utility" to open and extract the ZIP file after you downloaded it. Arduino IDE's "Add .ZIP Library" feature can only be used with ZIP files, so you must preserve the ZIP file that you downloaded instead of using an external application to extract it.

Please try this:

  1. Click the following link to start a download of the library ZIP file in your browser:
    https://github.com/madleech/ArduinoCMRI/zipball/master
  2. Wait for the download to finish.
    :exclamation: Do not open the file after it downloads.
  3. Select Sketch > Include library > Add .ZIP Library from the Arduino IDE menus.
    The "Select the zip file containing the library you'd like to add" dialog will open.
  4. Select the downloaded madleech-ArduinoCMRI-d5d4a1e.zip file from the dialog.
  5. Click the "Open" button.
    The dialog will close.
  6. Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:

    ⓘ Successfully installed library from ...

A “zip” file never shows up. I’ve searched for

  1. madleech-ArduinoCMRI-d5d4a1e.zip

using the Arduino menu as well as Spotlight (Mac search engine). All that downloads is a folder.

Thanks,
Roger

It must be some configuration of your computer that automatically extracts the file as soon as it is downloaded.

We'll fall back on the solution mentioned by @sterretje of manually installing the library.

  1. Select Arduino IDE > Settings... from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Take note of the path shown in the Sketchbook location" field of the dialog.
  3. Click the "CANCEL" button.
    The "Preferences" dialog will close.
  4. Copy the downloaded folder to the libraries subfolder of the path you saw in the Sketchbook location" preference.

The final installation structure must be like this:

<sketchbook location>/
├── libraries/
│   ├── madleech-ArduinoCMRI-d5d4a1e/
│   │   ├── CMRI.cpp
│   │   ...
│   ...
...

(where <sketchbook location> is the path from the Sketchbook location" preference)

Instead of just clicking on the zip to download it from GitHub, I needed to right click and use “Download linked file”. Worked.

Thanks,
Roger

You are welcome. Congratulations on finding a solution! I'm glad it is working now. Thank you for taking the time to post an update.

Regards,
Per

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