12-02-2016, 03:39 PM | #16 | |
Well trained by Cats
Posts: 29,801
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
12-03-2016, 08:39 AM | #17 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Version 0.4.2 has added the p tag to the list of tags it can work with.
https://www.mobileread.com/forums/sho...77&postcount=1 Last edited by DiapDealer; 12-03-2016 at 08:47 AM. |
Advert | |
|
12-03-2016, 04:13 PM | #18 |
Junior Member
Posts: 5
Karma: 10
Join Date: Nov 2016
Device: none
|
thanks
|
12-03-2016, 04:55 PM | #19 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
01-16-2017, 01:06 AM | #20 |
just an egg
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
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: failed Traceback (most recent call last): File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 135, in launch self.exitcode = target_script.run(container) File "/Users/X/Library/Application Support/sigil-ebook/sigil/plugins/TagMechanic/plugin.py", line 565, in run img = tkinter.Image('photo', file=os.path.join(bk._w.plugin_dir, bk._w.plugin_name, 'images/icon.png')) File "/Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 3350, in __init__ self.tk.call(('image', 'create', imgtype, name,) + options) _tkinter.TclError: couldn't recognize data in image file "/Users/X/Library/Application Support/sigil-ebook/sigil/plugins/TagMechanic/images/icon.png" Error: couldn't recognize data in image file "/Users/X/Library/Application Support/sigil-ebook/sigil/plugins/TagMechanic/images/icon.png" Thanks for any suggestions! Also, is TagMechanic the Sigil equivalent of Diaps Editing Toolbag in Calibre? |
Advert | |
|
01-16-2017, 05:13 AM | #21 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@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. |
01-16-2017, 05:44 AM | #22 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
@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.
|
01-16-2017, 08:25 AM | #23 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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". |
01-16-2017, 01:19 PM | #24 |
just an egg
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
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? |
01-16-2017, 02:08 PM | #25 |
Grand Sorcerer
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
|
This appears to be a strange macOS bug. Hopefully, KevinH, who has a Mac, will see this post and know what to do.
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')) #root.tk.call('wm','iconphoto',root._w,img) 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. Last edited by Doitsu; 01-16-2017 at 02:49 PM. |
01-16-2017, 02:29 PM | #26 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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 Last edited by DiapDealer; 01-17-2017 at 07:39 PM. |
01-16-2017, 02:43 PM | #27 | ||
just an egg
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
Quote:
In the meantime, thanks everyone for your help! |
||
01-16-2017, 02:48 PM | #28 | |
just an egg
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
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) |
|
01-16-2017, 02:52 PM | #29 |
Grand Sorcerer
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
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!
|
01-16-2017, 03:19 PM | #30 |
Sigil Developer
Posts: 7,644
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Hi DiapDealer,
Just saw this. I will see if I can reproduce it on my Mac and get back to you. KevinH |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 27 | 01-16-2023 01:25 AM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 492 | 10-25-2022 08:13 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |
New Plugin Type Idea: Library Plugin | cgranade | Plugins | 3 | 09-15-2010 12:11 PM |