Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 11-12-2021, 07:34 AM   #1
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
MacOS ActiveState TCL 8.6.x and Sigil issue

Something has changed on the ActiveState side of things. I'm not certain why there's no longer an 8.6.x download for mac.

EDIT: drastic changes at ActiveState apparently. All community editions have been phased out. we'll probably need to update our Sigil documentation for Macs that describe how to get ActiveTcl 8.6.x.

Last edited by DiapDealer; 11-12-2021 at 11:31 AM.
DiapDealer is offline   Reply With Quote
Old 11-12-2021, 10:09 AM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
Wow! ActiveState seems to be making even a bigger money grab! So sad ...

I will download and build the latest TCL/TK 8.6.12 from source for macOS and try to wrap an installer around it and either wrap an installer around or try to include it with the embedded python builds somehow. I never understood why Python did not include it like it does for Windows.
KevinH is offline   Reply With Quote
Advert
Old 11-12-2021, 11:36 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Wow! ActiveState seems to be making even a bigger money grab! So sad ...
Agreed.

Quote:
Originally Posted by KevinH View Post
I never understood why Python did not include it like it does for Windows.
If I'm reading stuff right, it seems that Python.org's Python installers might do just that starting with Python 3.9.8 (or 3.10). Might be worth checking out the source for those python versions and see if the ability to build Tk/TCL from source is incorporated into the Mac build process like it is with Windows.
DiapDealer is offline   Reply With Quote
Old 11-12-2021, 12:04 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
I hope so.

Until then I have grabbed tcl8.6.12 and tk8.6.12 and build static library versions and will try to make the Python 3.8.3 version use those when building its tkinter. I really hate to embed the entire tcl tk framework when it is not really needed.

Let's hope this all goes away in Python 3.9.8.

I will grab the source and take a look.


Quote:
Originally Posted by DiapDealer View Post
Agreed.

If I'm reading stuff right, it seems that Python.org's Python installers might do just that starting with Python 3.9.8 (or 3.10). Might be worth checking out the source for those python versions and see if the ability to build Tk/TCL from source is incorporated into the Mac build process like it is with Windows.
KevinH is offline   Reply With Quote
Old 11-12-2021, 12:27 PM   #5
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
Well the Tk TCL sources are not part of the Python-3.9.8 source releases and I see nothing in configure or setup.py to actually grab and install them.

That said, according to python.org you see:

Quote:
built-in 8.6.11
As of Python 3.9.1, all current universal2 Python installers for macOS downloadable from python.org supply their own private copies of Tcl/Tk 8.6.11. They do not look for or use any third-party or system copies of Tcl/Tk. This is an Aqua Cocoa Tk.
So it appears they are building their own installer binaries to include it, just *not* providing the steps or source to do so.
KevinH is offline   Reply With Quote
Advert
Old 11-12-2021, 01:01 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
It's in the 'Mac' folder of the 3.9.8 source. Much like on Windows, the 'build_install.py' script downloads 3rd-party library sources and builds them. From the readme.rst file in the Mac/BuildScript folder:

- builds the following third-party libraries

* OpenSSL 1.1.1
* Tcl/Tk 8.6
* NCurses
* SQLite
* XZ
* libffi

I'm hoping you'll be able apply any necessary patches, then build and install to $DESTROOT

@Doitsu: sorry for the mess, I'll clean up your plugin thread when we're done, here.

Last edited by DiapDealer; 11-12-2021 at 01:06 PM.
DiapDealer is offline   Reply With Quote
Old 11-12-2021, 02:08 PM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
Okay, I took a peek at it and did see where it builds tcktk things but it does not apply the required patches to make both xz and openssl work properly back to mac OS 10.12 when built on later macOS versions.

And it hard codes the location of tk tck which makes a completely relocatable Python framework a bit of a stickler to produce.

I am going to have to spend some time recreating how to make a Python 3.9 build that is relocatable (or 3.10).

I should probably do it for whichever version of Python we plan on moving to. Since 3.10.0 just came out, I am thinking 3.9.8 as the next version of Python for the next Sigil build.

Are you okay moving to Python 3.9.8 on Windows? If not, I can try to backport the changes and make a Python 3.8.3 with the latest tk and tcl embedded in it. Or we can update to the latest version of Python 3.8 and try.

Just let me know if 3.9.8, 3.8.3, or 3.8.X would be best for Windows and I will take a stab at building it on macOS.
KevinH is offline   Reply With Quote
Old 11-12-2021, 02:19 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I've built a Windows version of Python 3.9.x and successfully built Sigil with it (I've also used a stock Python.org 3.9.x successfully), but I've not tested it all that heavily for any subtle problems. But sans any huge issues that I might encounter, I've no problem with moving to 3.9.8. The main thing I have to keep in mind for Windows is PyQt/Qt/Python/Python module compatibility. That "magic" intersection where everything will play nice together.

I just have to avoid making Python 3.9.8 any kind of hard minimum, so that I don't leave a bunch of *nix distros in the dust.
DiapDealer is offline   Reply With Quote
Old 11-12-2021, 02:24 PM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Windows Python 3.9 will stay compatible with my existing Windows PyQt5/Qt 5.12.x binaries, so that would probably be the path of least resistance for now.

I'm not ready to lose WebEngine support for even more graphics-cards in still-fairly-recent systems by moving to Qt5.15. I understand that move would leave even some relatively new-ish macOS versions in the lurch, no?

EDIT: actually, 3.9.x will put me in a bit of a bind with the PyQt5-sip module. If I can build a compatible version myself, it won't be a problem for my Sigil Windows installers, but it might leave me needing to rethink Windows continuous integration for Sigil a bit.

Last edited by DiapDealer; 11-12-2021 at 02:46 PM.
DiapDealer is offline   Reply With Quote
Old 11-12-2021, 02:59 PM   #10
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
No problems I can stick with Python 3.8.3 easily enough if necessary. Just let me know.
KevinH is offline   Reply With Quote
Old 11-13-2021, 01:42 AM   #11
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
If I already have ActiveTcl 8.6.9 installed (and also have 8.6.9 installer saved), is it safe to update to macOS Monterey? or is Monterey incompatible with Sigil 1.8.0 and plugins that require ActiveTcl 8.6.x? Thank you

Quote:
Originally Posted by troubledMan View Post
... In the process to move from macOS High Sierra to macOS Monterey, after installed everything needed, so I think, I've found this log when trying to use the [kindlegen] plugin:

Spoiler:

Status: failed

Traceback (most recent call last):
File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 141, in launch
target_script = __import__(script_module)
File "/Users/####/Library/Application Support/sigil-ebook/sigil/plugins/KindleGen/plugin.py", line 25, in <module>
from tkinter import Tk, BOTH, StringVar, IntVar, BooleanVar, PhotoImage, messagebox, DISABLED
File "tkinter/__init__.py", line 36, in <module>
ImportError: dlopen(/Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_tkinter.cpython-38-darwin.so, 0x0002): Library not loaded: /Library/Frameworks/Tcl.framework/Versions/8.6/Tcl
Referenced from: /Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_tkinter.cpython-38-darwin.so
Reason: tried: '/Library/Frameworks/Tcl.framework/Versions/8.6/Tcl' (no such file), '/System/Library/Frameworks/Tcl.framework/Versions/8.6/Tcl' (no such file)
Error: dlopen(/Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_tkinter.cpython-38-darwin.so, 0x0002): Library not loaded: /Library/Frameworks/Tcl.framework/Versions/8.6/Tcl
Referenced from: /Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_tkinter.cpython-38-darwin.so
Reason: tried: '/Library/Frameworks/Tcl.framework/Versions/8.6/Tcl' (no such file), '/System/Library/Frameworks/Tcl.framework/Versions/8.6/Tcl' (no such file)


I think it is related with some called Tcl, isn't it? What can I do to resolve this?

Environment:
- macOS 12.0.1
- Sigil 1.8.0 (in default location)
- Kindle Previewer 3.59.1 (in default location)
- KindleGen plugin 0.5.5 (Checked "Use Bundle Python")
Quote:
Originally Posted by Doitsu View Post
You'll need to install ActiveTcl.)
odamizu is offline   Reply With Quote
Old 11-13-2021, 07:52 AM   #12
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I would guess you'd be OK, but I wouldn't bet the farm on it. It probably depends on whether the ActiveState installer (or the program it installs) has any "phone home" capabilities. Kevin may have more info on that front (plus I'd recommend deferring to him on all things, MacOS anyway).
DiapDealer is offline   Reply With Quote
Old 11-13-2021, 08:11 AM   #13
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,552
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Also keep in mind that I *think* you could still get (and legally use) the newest versions of Tk/TCL free for personal use (though I don't know how many machines you could activate it for simultaneously). You'd just need to create a free personal account and install it using their Active Platform software to get the latest versions.
DiapDealer is offline   Reply With Quote
Old 11-13-2021, 09:51 AM   #14
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 7,645
Karma: 5433388
Join Date: Nov 2009
Device: many
It should work just fine.

I always build the latest opensource version of tcl tk and install it via the build process instead of the ActiveState version. It is free to use with no limits. It just does not cone with the ActiveState "extras" but Sigil does not need them anyway.

You could also install tcl and tk via HomeBrew as well.

I am also going to try to build a macOS installer .pkg for the opensource tcl/tk Frameworks and I will post it when I get something working.


Quote:
Originally Posted by odamizu View Post
If I already have ActiveTcl 8.6.9 installed (and also have 8.6.9 installer saved), is it safe to update to macOS Monterey? or is Monterey incompatible with Sigil 1.8.0 and plugins that require ActiveTcl 8.6.x? Thank you
KevinH is offline   Reply With Quote
Old 11-14-2021, 01:32 AM   #15
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,586
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
Thank you! I'm still on the fence about updating to Monterey. I'm currently using Catalina.

KevinH, what version macOS do you prefer nowadays, especially for Sigil?
odamizu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sigil 1.5.1 not executing on macOS 10.15.7 klgc Sigil 11 04-20-2021 05:41 PM
Interested In macOS Sigil Testing for next release? KevinH Sigil 0 10-15-2020 11:30 AM
Sigil for Mac & macOS 10.15 Catalina odamizu Sigil 26 12-25-2019 03:16 PM
Sigil 0.9.18 crash on macOS Mojave? David Kudler Sigil 2 11-15-2019 04:17 PM
macOS update installation issue OtinG Apple Devices 0 12-28-2018 10:45 AM


All times are GMT -4. The time now is 05:28 PM.


MobileRead.com is a privately owned, operated and funded community.