02-24-2021, 06:48 AM | #1 |
Annabelle Viau
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
|
Unable to install plugins on Mac (invalid plugin msg)
Hi,
So my collegue (who doesn’t speak english) is trying to install plugins on Sigil on Mac, but for any plugin, she is unable to do so. First, when trying to select the zip file of the plugin, it simply doesn’t show up, like if it wasn’t recognized. Then, when she types the file name manually to add it, it shows the following message (plugin invalid). The zip file is the original one, it hasn’t been decompressed and is untouched (she downloads it with Chrome). She tried installing the latest version of Python and ActiveState, and it didn’t change anything. Does any one has a clue as why this problem is happening? Thanks! |
02-24-2021, 08:22 AM | #2 |
Grand Sorcerer
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Either the plugin's zipfile is being automatically unzipped (or automatically renamed) by some sort of download helper, or the file-browser (or addon) is allowing them to browse into the zip archive rather than selecting it.
Hopefully one of our regular Mac users will see this and have better instructions. |
02-24-2021, 08:41 AM | #3 |
Sigil Developer
Posts: 7,650
Karma: 5433388
Join Date: Nov 2009
Device: many
|
A few things ...
1. The correct Python is already part of Sigil on macOS and no additional Python installation is needed by Sigil. Please uninstall whatever version of Python you installed unless you need it for some other reason. 2. Some plugins are platform specific and will not run on macOS. Could it be a Windows only plugin? 3. If he/she tried to manually install a plugin by unpacking it in the wrong place they will have to manually remove what ever they did. 4. The Sigil plugin preferences check box for use embedded Python should always be checked on macOS as that one has the required pieces. That is the default setting and it should not be changed. Also MacOS many users has set a Mac Preference to "open safe files" after download or some similar wording. This results in the zip archive being unzipped automatically. In addition, the macOS gatekeeper marks downloaded files to quarantine them. So the best procedure for macOS is to: 1. Make sure to uncheck the Mac preference to open safe files after download first 2. Download the plugin and it should appear a true zip file in the Mac Downloads folder 3. ***Do Not skip this step*** Manually drag and drop that plugin zip archive from the Downloads folder to the Desktop. This tells macOS gatekeeper that you recognize the file so it will loosen its quarantine. Never try to run or install anything directly from the macOS Downloads folder. Macs restrict that for extra protection. 4. Use Sigil Manage Plugins to install the plugin from the Desktop folder. |
02-24-2021, 12:12 PM | #4 |
Sigil Developer
Posts: 7,650
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Also the exact name of the plugin zip archive is important and can NOT be changed. The folder name inside the zip must match the plugin basename exactly. So do not try to rename the plugin zip file.
|
02-25-2021, 12:55 AM | #5 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
|
02-25-2021, 03:45 AM | #6 |
Annabelle Viau
Posts: 43
Karma: 16664
Join Date: Jan 2015
Location: Rishikesh, India
Device: iPad, Kobo, Windows 10 (ADE, Azardi), Android (Google Books, Bluefire)
|
|
02-25-2021, 12:03 PM | #7 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
Both should also work with the macOS version of Sigil.
She could try to manually install them as follows:
(The PageList plugin folder should contain a plugin.py file and a plugin.xml file and no other folders.) Last edited by Doitsu; 02-25-2021 at 12:28 PM. |
02-25-2021, 12:08 PM | #8 |
Sigil Developer
Posts: 7,650
Karma: 5433388
Join Date: Nov 2009
Device: many
|
That should never be needed on macOS. If that turns out to be required, then something funny is going on when downloading the plugins. Has she/he followed the directions I posted earlier in this thread.
|
11-09-2022, 12:06 AM | #9 |
Junior Member
Posts: 1
Karma: 10
Join Date: Nov 2022
Device: iPad
|
Tip for MacOS users:
If you are a plugin developer, or if the plugin zip file is expanded when downloading, I have found the zip file should be (re)created using the Terminal app rather than the Finder/Compress utility. In my experience, the latter always produces the 'not a valid plugin' error message. I use the following Terminal command ... zip -r [foldername].zip [foldername]/ Hope this helps. |
11-09-2022, 08:56 AM | #10 |
Sigil Developer
Posts: 7,650
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Yes as the folder structure and folder name needs to follow the plugin spec.
Either way, automatically unzipping zip downloads is probably not the smartest/safest thing to do in general. Turning off that "automatically open safe downloads" in Mac OS settings in the very first thing I do with every new mac. Followed by showing the full file name in Finder so you can actually see what type of file you are working with. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
All user plugins won't install ... | Hoods7070 | Plugins | 6 | 06-11-2012 08:30 AM |
Unable to install new plug in on my MAC | mos | Plugins | 3 | 06-22-2011 07:01 AM |
can't figure out how to install plugins | zalamander | Plugins | 2 | 04-18-2011 08:04 AM |
Install non-fatal msg (not seg fault) - Ubuntu | andrewb | Calibre | 0 | 07-31-2009 12:36 AM |
unable to get my book backup back into Calibre? error msg inside | stustaff | Calibre | 13 | 05-04-2009 04:51 AM |