MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Plugins (https://www.mobileread.com/forums/forumdisplay.php?f=268)
-   -   kindlegen plugin for Sigil (https://www.mobileread.com/forums/showthread.php?t=248629)

DiapDealer 05-31-2021 02:15 PM

Make sure you (or a browser addon) are not unzipping the plugin. You also cannot rename the plugin's zip file before installing it.

Doitsu 05-31-2021 04:15 PM

Quote:

Originally Posted by uiop_on (Post 4125210)
Downloaded kindlegen from GitHub (kindlegen-3.1.1.zip - ok)

My Kindlegen plugin is not available on Github, please download this file instead and try again.

uiop_on 06-01-2021 09:49 AM

Quote:

Originally Posted by Doitsu (Post 4126322)
My Kindlegen plugin is not available on Github, please download this file instead and try again.

Many thanks Doitsu, that works perfectly now!

troubledMan 11-12-2021 02:18 AM

Hi,

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 plugin:


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?

Other thing. Under High Sierra, I don't remember why, I had to install Python although macOS includes it normally; this time I have not installed it: is it OK or I do need to do it?
Thank you.

[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")
]

Doitsu 11-12-2021 04:50 AM

Quote:

Originally Posted by troubledMan (Post 4171867)
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 plugin

You'll need to install ActiveTcl. (You can enter a fictitious e-mail address to access the download area.)

troubledMan 11-12-2021 05:25 AM

Thanks Doitsu.

After install Tcl, when I use the plugin, the log now is the following:

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've followed the link you kindly wrote, so I don't understand the log's last part (Reason:...)
In fact, I think they both are the same.

Doitsu 11-12-2021 07:27 AM

Most likely, the latest ActiveTCL libraries are incompatible with the current Sigil version. :(
For some odd reason they offer ActiveTcl 8.6.x for Windows and Linux but ActiveTcl 8.5.x for macOS.

I'll update the plugin to use Qt instead of Tcl to avoid these issues.

troubledMan 11-12-2021 11:35 AM

Thank you all. I think I'll uninstall the last version of Sigil, and try with the same tandem kindlegen-Sigil that I had under High Sierra.

troubledMan 11-12-2021 11:44 AM

Quote:

Originally Posted by troubledMan (Post 4171980)
... I'll uninstall the last version of Sigil, and try with the same tandem kindlegen-Sigil that I had under High Sierra.

Tcl, I meant.

DiapDealer 11-12-2021 02:47 PM

Sigil MacOS TCL plugin issue discussion continued here: https://www.mobileread.com/forums/sh...d.php?t=342998

KevinH 11-14-2021 05:23 PM

FYI,

We have added a TclTk_8.6.12.dmg installer package to the Sigil 1.8 github releases page. It replaces what ActiveState used to provide. It should allow Sigil tk plugins to work with Monterey or any version of macOS.

https://github.com/Sigil-Ebook/Sigil...lTk_8.6.12.dmg

Quote:

Originally Posted by troubledMan (Post 4171902)
Thanks Doitsu.

After install Tcl, when I use the plugin, the log now is the following:

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've followed the link you kindly wrote, so I don't understand the log's last part (Reason:...)
In fact, I think they both are the same.



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

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