![]() |
#31 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,338
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
tk.call() documentation is pretty thin. |
|
![]() |
![]() |
![]() |
#32 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,437
Karma: 5702578
Join Date: Nov 2009
Device: many
|
The problem is that tcl/tk 8.5 and lower does not support png icons only gif ones when used in this way. That said, tcl/tk 8.6 and later support png for icons in this way.
The problem is that Python 3.5 building from source on Mac OS X seems to now be hard coded to link to tck/tk 8.5 when previously they linked to either 8.5 or 8.6. See https://www.python.org/download/mac/tcltk/ So the default build will no longer dynamically link to tck/tk 8.6 which has the fix. This is so sad! I am going to have to rebuild the bundled Python and somehow path the build to actually look for and require 8.6 and not the stupid 8.5. I will look to see what changed from building Python 3.4 to 3.5 and see if I can back out that change. What a mess! And why farting with this I have broken my portable Python 3.5 build completely so no more Sigil builds until I get it fixed! KevinH |
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,338
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Ouch! Sorry to have been the one to help you discover the mess.
![]() |
![]() |
![]() |
![]() |
#34 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,437
Karma: 5702578
Join Date: Nov 2009
Device: many
|
The change was not in python, it was that the default search path for Frameworks used to be /Library/Frameworks followed by /System/Library/Frameworks when using gcc/clang in the linking stage to link to Tk or Tcl frameworks. More recent Mac OSX versions have locked down the /System path so nothing can write their anymore.
So I have to patch the Python 3.5.2 setup.py code to include the -F/Library/Frameworks to force it to look there for linking first. I will do this so that things will work again for our next release at least for the bundled Python. KevinH |
![]() |
![]() |
![]() |
#35 |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,787
Karma: 6758980
Join Date: Mar 2015
Device: Kindle, iOS
|
Yikes! All I can say is, thank you so much for developing and sharing Sigil, and sorry for opening the door to this mess with my question
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,437
Karma: 5702578
Join Date: Nov 2009
Device: many
|
No Problems.
I was able to fix the bundled Python interpreter on my Mac OSX machine to look in /Library/Frameworks/Tk.framework and its cousin Tcl.framework and for the ActiveState Active TclTk if it exists and if so use it. So DiapDealer's current version of Tag Mechanic will now run with no changes needed. The next build for Mac OSX will bring the fix to Sigil, in the meantime, commenting out those two lines is probably for the best on Mac OS X. Thanks for the bug report, KevinH |
![]() |
![]() |
![]() |
#37 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,338
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Can anyone verify that the png "wrench" icon is visible anywhere on a Mac (assuming python is linking to the version of tcl/tk where my code doesn't cause an error) when the plugin is running? If the icon doesn't appear in the dock (or anywhere else) regardless, I'd just as soon "if" that code out on the Mac platform. That way the plugin will work as is on Sigil 0.9.7 on a Mac.
If the icon DOES appear, though, I'll leave the code in and point to this stop-gap version of the plugin until the next Sigil release. |
![]() |
![]() |
![]() |
#38 | |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,787
Karma: 6758980
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
|
|
![]() |
![]() |
![]() |
#39 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,338
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#40 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,437
Karma: 5702578
Join Date: Nov 2009
Device: many
|
I can do it and report back. The window menu bar on Macs do not allow/show the icons, but it may show up in the panel if the Window is minimized, but typically these just map to a generic Python app symbol.
|
![]() |
![]() |
![]() |
#41 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,437
Karma: 5702578
Join Date: Nov 2009
Device: many
|
Okay, just tried it. The icon never appears anyplace. When you launch the Plugin you get the little Python Launcher spacecraft taking off (generic) as an icon, and if you minize the main window, you see mini image of the window itself in the panel, not the wrench icon.
So I would remove those lines only on Mac OS X but leave it for other platforms. Hope this helps, KevinH |
![]() |
![]() |
![]() |
#42 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,338
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#43 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,338
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
First post updated to v0.4.3
No immediate need to update unless your experiencing errors on a Mac. |
![]() |
![]() |
![]() |
#44 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,338
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
A beta version for testing. Mostly cosmetic changes and the consolidation of tons redundant code--all of which makes it easier to maintain and add new tags.
Changes include: 1) made the configuration dialog dynamically multi-column so it still fits on lower-resolution screens. 2) added some more common html5 tags to the list of available tags. 3) fixed a bug that would butcher html comments under certain conditions. If someone could please verify that I didn't inadvertently break something else with my changes before I update the first post with the new version, I'd appreciate it. EDIT: Removed beta attachment and updated the first post with the new version Last edited by DiapDealer; 01-30-2017 at 03:42 PM. |
![]() |
![]() |
![]() |
#45 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,623
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
I tried to use the last version of your nice plugin, but it failed. Code:
Statut :failed Traceback (most recent call last): File "/usr/share/sigil/plugin_launchers/python/launcher.py", line 134, in launch target_script = __import__(script_module) File "/home/roger/.local/share/sigil-ebook/sigil/plugins/TagMechanic/plugin.py", line 15, in <module> from parsing_engine import MarkupParser File "/home/roger/.local/share/sigil-ebook/sigil/plugins/TagMechanic/parsing_engine.py", line 8, in <module> import regex as re ModuleNotFoundError: No module named 'regex' Error: No module named 'regex' Using ArchLinux 64 bits. Sigil 0.9.7. Qt 5.8. Python 3.6. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 514 | 03-23-2025 10:26 AM |
[FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 27 | 01-16-2023 01:25 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 |