MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Plugins (https://www.mobileread.com/forums/forumdisplay.php?f=268)
-   -   ePUB Optimizer (https://www.mobileread.com/forums/showthread.php?t=252010)

DiapDealer 11-17-2015 09:17 AM

Quote:

Originally Posted by ovinio (Post 3207275)
I've got an error while downloading the plugin
Sorry, this file is infected with a virus

Exactly what "gave" you the error? It's clearly a false-positive; but usually, any anti-malware software worth its salt will at least give you the variant of the virus it suspects.

EDIT: Oops, I see what you mean. It's Google Docs itself that give the error message when clicking on the link.

Toxaris 11-17-2015 01:48 PM

Quote:

Originally Posted by ovinio (Post 3207275)
I've got an error while downloading the plugin
Sorry, this file is infected with a virus

That is bizarre! I will try to find out what the issue is.

DiapDealer 11-17-2015 02:26 PM

Quote:

Originally Posted by Toxaris (Post 3207442)
That is bizarre! I will try to find out what the issue is.

I know at one point Google's email virus "scanner" would flat-out refuse to pass exe files (or even zip files with exes in them) as attachments. There was no scanning involved--only denial by extension. Perhaps they've recently changed their docs "scanner" and made it too sensitive. Didn't your plugin include some binaries?

Toxaris 11-17-2015 02:39 PM

Yup. Google is acting up. If I put the files on my own server, they cannot be downloaded with a very big warning because the file is not downloaded that much. Default action is delete. So, not very helpful. I tried to share it directly from Google Drive and it was blocked and had to be sent for review... So, also not helpful.

I now have changed to links to a dropbox share, see how long that will work...

BetterRed 11-17-2015 04:40 PM

@Toxaris - if dropbox doesn't work out try [WikiP] MediaFire, I've had files up there since as far back as 2006, including Windows and Solaris executable (and even OS2). They don't have a walled-garden, nanny-state mentality, probably because they started by targeting the large corporate and government sector. They added the consumer bling later.

They have client software, I don't bother using it as I find Web interface adequate.

A free account gives you 10G.

BR

David Kudler 11-19-2015 03:18 PM

I just upgraded to Sigil 0.9.0 for Mac (OS X 10.11.1, running with bundled Python turned on and ActiveState TCL 8.6.4.1 installed) and installed this plugin. I've been playing around with a number of plugins, including this one. I'm excited not to have to optimize all of the images by hand before importing them!

On the first run, however, it gave me this error in the Plugin Runner window:
Code:

Status: failed
Launcher: missing or incorrect paths passed in

Any thoughts?

Toxaris 11-19-2015 04:27 PM

The other plugins do work as expected? It works as designed on my Windows machine. Unfortunately I cannot check it on OSX myself...

KevinH 11-19-2015 06:40 PM

Hi,
That error means something is messed up with your plugin setup. Do other plugins work? Do you have more than one copy of Sigil.app installed. If so they will be sharing the Sigil.ini file. Have you checked the UseBundledPythin checkbox under Manage Plugins? You might want to try backing up and removing your ini file.

KevinH,

ps: I will download and install this plugin to verify its operation on MacOSX. At one time I had it working just fine.

KevinH


Quote:

Originally Posted by David Kudler (Post 3208716)
I just upgraded to Sigil 0.9.0 for Mac (OS X 10.11.1, running with bundled Python turned on and ActiveState TCL 8.6.4.1 installed) and installed this plugin. I've been playing around with a number of plugins, including this one. I'm excited not to have to optimize all of the images by hand before importing them!

On the first run, however, it gave me this error in the Plugin Runner window:
Code:

Status: failed
Launcher: missing or incorrect paths passed in

Any thoughts?


KevinH 11-20-2015 10:58 AM

Hi Toxaris,

I tried your plugin with the Bundled Python 3.4 on Mac OS X and received the following error:

Code:

Status: failed

Traceback (most recent call last):
  File "/Users/kbhend/repo/build/bin/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 135, in launch
    self.exitcode = target_script.run(container)
  File "/Users/kbhend/Library/Application Support/sigil-ebook/sigil/plugins/ePUBOptimizer/plugin.py", line 62, in run
    os.chmod("./osx/gifsicle",0o777)
FileNotFoundError: [Errno 2] No such file or directory: './osx/gifsicle'
Error: [Errno 2] No such file or directory: './osx/gifsicle'

So it appears under Python 3, the cwd is not automatically set to the plugin's location making the relative path used in os.chmod fail.

Here is the very slight change I made and your plugin ran successfully on Mac OS X after this change.

Code:

--- plugin.py.orig        2015-11-20 09:47:07.000000000 -0500
+++ plugin.py        2015-11-20 09:52:59.000000000 -0500
@@ -59,9 +59,9 @@
 
    # ensure excution rights OSX
    if isosx:
-        os.chmod("./osx/gifsicle",0o777)
-        os.chmod("./osx/optipng",0o777)
-        os.chmod("./osx/jpegtran",0o777)
+        os.chmod(os.path.join(SCRIPT_DIR,"osx","gifsicle"),0o744)
+        os.chmod(os.path.join(SCRIPT_DIR,"osx","optipng"),0o744)
+        os.chmod(os.path.join(SCRIPT_DIR,"osx","jpegtran"),0o744)
       
    # create temp folder
    temp_dir = tempfile.mkdtemp()

So when you do your next update, would you please include this change.

Thank you!

KevinH

Toxaris 11-20-2015 02:27 PM

Thanks Kevin! I have updated the plugin.

BetterRed 11-20-2015 11:22 PM

1 Attachment(s)
Download of the zip from google docs works fine for me

Attachment 143948

The last several posts seem like a storm in a teaspoon, or much ado about sfa to me.

BR

Toxaris 11-21-2015 03:27 AM

Can we keep the discussion about RAR in relation with plugins somewhere else?

Anyway, the latest version is now hosted on Mediafire. I am a bit fed up with the Google issues the last couple of months. Sometimes it works, but not always and I do not have much ability to do something about it.

eschwartz 11-21-2015 08:34 PM

@Toxaris, given that a Sigil plugin requires Sigil, and Sigil users seeking plugins will come to MobileRead anyway, why not avail yourself of MobileRead's attachments feature?

At least for the Sigil plugin; for your other tools which don't have any relation to Sigil or any other application with a MobileRead support forum, it is of course quite reasonable to host them independently.


It would easily render this :rolleyes: problem moot, as well as perhaps offer a slightly shorter route to using the tool, if someone is discovering it from MobileRead anyway...

Toxaris 11-22-2015 02:53 AM

I know, but I like to keep my files at a central place, so that when there is an update, I don't have to update it on multiple locations.

BetterRed 11-22-2015 06:27 AM

IIRC Mobileread doesn't play nicely with download manager/accelerators, well mine at least.

BR


All times are GMT -4. The time now is 08:27 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.