![]() |
Quote:
|
Quote:
https://www.mobileread.com/forums/sho...77&postcount=1 |
thanks
|
Quote:
|
Hi there,
I'm getting an error when I try to run Tag Mechanic. I'm still new to Sigil, so I suspect I'm doing something stupid. I start by opening a book in Sigil, selecting a file, then go to Plugins > Edit > TagMechanic. Then this happens: Code:
Status: failedThanks for any suggestions! Also, is TagMechanic the Sigil equivalent of Diaps Editing Toolbag in Calibre? |
@odamizu...The error reports that it can't recognize the data in the image file. This probably means that your downloaded version of Tag Mechanic has a corrupt image file. I've also just downloaded Tag Mechanic and re-installed it again on my system and it works without problems.
Just try downloading and re-installing Tag Mechanic again to see if this cures your problem. |
@odamizu: Did you install the special macOS ActiveState Tcl 8.6.4.1 package mentioned on the download page? This package is required for all Sigil plugins that come with a GUI.
|
Doitsu is correct. The Tcl that comes with OS X is broken. That's why KevinH recommends installing Activestate's Tcl before running/installing Sigil plugins (at least he ones that have tkinter gui components).
And yes, this plugin is the equivalent of the "Span/Div Editor" portion of my "Diaps EditorToolbag" plugin for calibre's editor. There's a separate PunctuationSmarten plugin that provides the rest of the functionality from the "Toolbag". |
Thanks. I do have ActiveState Tcl 8.6.4.1 installed. For good measure, I re-installed it. Unfortunately, that didn't help. I still get the error message.
I also re-downloaded a fresh copy of the plug-in, uninstalled and re-installed it a few times. That didn't help either. Any thing else I can try? |
Quote:
In the meantime, you can try the following: 1. Download TextWrangler or another programmer's text editor. 2. Start Sigil and select Edit >Preferences > Open Preferences Location. 3. Click Plugins > TagMechanic and open plugin.py with TextWrangler. 4. Comment out lines 565 and 566 by inserting a # sign: Code:
#img = tkinter.Image('photo', file=os.path.join(bk._w.plugin_dir, bk._w.plugin_name, 'images/icon.png'))This workaround should allow you to run TagMechanic until KevinH has figured out what additional image library is required to run the commented-out code. |
Kevin's tested this plugin for me on OS X, I know. But it's been a while. I don't believe that icon is even visible on a Mac, so I could easily exclude it for that platform if it's found to be causing issues.
@odamizu: in fact ... here's a version that does just that (in case you don't want to manually edit the plugin yourself). See if it makes a difference. If so, I'll commit the change and release a new version. I'm not in love with the icon or anything. ;) EDIT: test attachment removed since the first post was updated to that version |
Quote:
Quote:
In the meantime, thanks everyone for your help! |
Quote:
(You're too fast for me. I was trying Doitsu's manual edit, and when I came back to the forum, you had 0.4.3 up) |
I'll wait to hear if Kevin has any ideas before updating the first post with the new version. Thanks for making sure it works! :)
|
Hi DiapDealer,
Just saw this. I will see if I can reproduce it on my Mac and get back to you. KevinH |
| All times are GMT -4. The time now is 07:08 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.