Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-06-2021, 01:20 PM   #1
BookWalker
Enthusiast
BookWalker began at the beginning.
 
BookWalker's Avatar
 
Posts: 38
Karma: 10
Join Date: Apr 2017
Device: MacBook Pro
Sigil not fully launching - Embedded Python error

I just downloaded and installed the latest version of Sigil on Windows 7 x64. When I try to run it, immediately I get error windows popping up, one after the other after I close each. Then finally Sigil comes up with one final small error window blank in front of it, and Sigil remains stuck in not responding.

First popup window says - Embedded Python error
Second says - Error in xmlprocessor repair XML: -2

Within those windows it says:

Traceback (most recent call last):

File "C:/Program Files/Sigil/python3lib\xmlprocessor.py", line 5, in <module>
from sigil_bs4 import BeautifulSoup

File "C:/Program Files/Sigil/plugin_launchers/python\sigil_bs4\__init__.py", line 34, in <module>
from .builder import builder_registry, ParserRejectedMarkup

File "C:/Program Files/Sigil/plugin_launchers/python\sigil_bs4\builder\__init__.py", line 314, in <module>
from . import _htmlparser

File "C:/Program Files/Sigil/plugin_launchers/python\sigil_bs4\builder\_htmlparser.py", line 85

data = "\N{REPLACEMENT CHARACTER}"

^

SyntaxError: (unicode error) \N escapes not supported (can't load unicodedata module)

If anyone knows how to fix this please explain it like I know nothing about tweaking PCs, because that is the case. Thanks much.
BookWalker is offline   Reply With Quote
Old 01-06-2021, 01:26 PM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Did you:
a) open Sigil using the Calibre "Open with" option or plugin,
b) manually install an older Python 3 version on your machine and configured Sigil to use an external Python interpreter
Doitsu is offline   Reply With Quote
Advert
Old 01-06-2021, 01:38 PM   #3
BookWalker
Enthusiast
BookWalker began at the beginning.
 
BookWalker's Avatar
 
Posts: 38
Karma: 10
Join Date: Apr 2017
Device: MacBook Pro
Quote:
Originally Posted by Doitsu View Post
Did you:
a) open Sigil using the Calibre "Open with" option or plugin,
b) manually install an older Python 3 version on your machine and configured Sigil to use an external Python interpreter
Man, I'm going to sound stupid. But really, you are talking an alien language to me.

After installation and restarting my computer, I went to the Start panel, then All Programs, down to the Sigil Folder, and clicked the Sigil icon.

How do I do b)?
BookWalker is offline   Reply With Quote
Old 01-06-2021, 01:45 PM   #4
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Please try the following:
  • Press WIN+R or select Run from Start menu (right-click Start to display the Run option)
  • Paste the following command in the Run dialog and hit Enter:
    %localappdata%\sigil-ebook\sigil
  • Rename sigil.ini to sigil.bak
  • Start Sigil

Last edited by Doitsu; 01-06-2021 at 01:49 PM.
Doitsu is offline   Reply With Quote
Old 01-06-2021, 01:57 PM   #5
BookWalker
Enthusiast
BookWalker began at the beginning.
 
BookWalker's Avatar
 
Posts: 38
Karma: 10
Join Date: Apr 2017
Device: MacBook Pro
Quote:
Originally Posted by Doitsu View Post
Please try the following:
  • Press WIN+R or select Run from Start menu (right-click Start to display the Run option)
  • Paste the following command in the Run dialog and hit Enter:
    %localappdata%\sigil-ebook\sigil
  • Rename sigil.ini to sigil.bak
  • Start Sigil
Nope. Same problem still there.
BookWalker is offline   Reply With Quote
Advert
Old 01-06-2021, 01:59 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: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Please tell me you didn't download the Sigil installer from anywhere other than Sigil's github repository?

https://github.com/Sigil-Ebook/Sigil/releases/latest
DiapDealer is offline   Reply With Quote
Old 01-06-2021, 02:05 PM   #7
BookWalker
Enthusiast
BookWalker began at the beginning.
 
BookWalker's Avatar
 
Posts: 38
Karma: 10
Join Date: Apr 2017
Device: MacBook Pro
Quote:
Originally Posted by DiapDealer View Post
Please tell me you didn't download the Sigil installer from anywhere other than Sigil's github repository?

https://github.com/Sigil-Ebook/Sigil/releases/latest
No need to clutch your heart. I downloaded it from the same link you listed.

Here's a screenshot of where I get to, when trying to start.


If I try anything, nothing works. The screen goes light. If I click on the little window it asks if I want to problem solve (or something like that), wait for the program to respond, or shut down.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_1.jpg
Views:	285
Size:	107.7 KB
ID:	184558  
BookWalker is offline   Reply With Quote
Old 01-06-2021, 03:59 PM   #8
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: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
Hmm ... the python error message you reported makes no sense. The _htmlparser.py code in sigil_bs4/builder is not used during Sigil start up for xml repair. So something very strange is going on.
KevinH is offline   Reply With Quote
Old 01-06-2021, 04:06 PM   #9
BookWalker
Enthusiast
BookWalker began at the beginning.
 
BookWalker's Avatar
 
Posts: 38
Karma: 10
Join Date: Apr 2017
Device: MacBook Pro
Quote:
Originally Posted by KevinH View Post
Hmm ... the python error message you reported makes no sense. The _htmlparser.py code in sigil_bs4/builder is not used during Sigil start up for xml repair. So something very strange is going on.
BookWalker is offline   Reply With Quote
Old 01-06-2021, 04:11 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: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
I googled the following and it appears to be a python3 "random" bug from what I can tell:

SyntaxError: (unicode error) \N escapes not supported (can't load unicodedata module)

It is really strange.

Are you sure you are using the python version that part of Sigil, and that you do not have an older or newer version of python3.x installed someplace on your system that is somehow being found in your path first?

This bug seems to hit only some users but was supposed to finally be fixed in Python 3.8.0 alpha.
KevinH is offline   Reply With Quote
Old 01-06-2021, 04:11 PM   #11
BookWalker
Enthusiast
BookWalker began at the beginning.
 
BookWalker's Avatar
 
Posts: 38
Karma: 10
Join Date: Apr 2017
Device: MacBook Pro
Quote:
Originally Posted by BookWalker View Post
I saw this thread, but it's on a different machine and installed differently. Same symptom. It's all foreign language for me. But does this help you figure out what's going on at all?

https://www.mobileread.com/forums/sh...0your%20build.
BookWalker is offline   Reply With Quote
Old 01-06-2021, 04:16 PM   #12
BookWalker
Enthusiast
BookWalker began at the beginning.
 
BookWalker's Avatar
 
Posts: 38
Karma: 10
Join Date: Apr 2017
Device: MacBook Pro
Quote:
Originally Posted by KevinH View Post
I googled the following and it appears to be a python3 "random" bug from what I can tell:

SyntaxError: (unicode error) \N escapes not supported (can't load unicodedata module)

It is really strange.

Are you sure you are using the python version that part of Sigil, and that you do not have an older or newer version of python3.x installed someplace on your system that is somehow being found in your path first?

This bug seems to hit only some users but was supposed to finally be fixed in Python 3.8.0 alpha.
I see Python 3.0.1 installed. Should I uninstall it and download the 3.8.0 version and install?
BookWalker is offline   Reply With Quote
Old 01-06-2021, 04:17 PM   #13
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: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
But not the exact same error message. Any time Sigil is launched it uses its embedded python interpreter to properly parse xml using sigil_bs4 and lxml.

All failures of Sigil's python return that same failure message at the first level. It is the underlying tru error that matters.
KevinH is offline   Reply With Quote
Old 01-06-2021, 04:19 PM   #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: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
No, Sigil has and uses its own python 3.8 version. Just remove the old python version (3.0) from your system and path and try again.
KevinH is offline   Reply With Quote
Old 01-06-2021, 04:28 PM   #15
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: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Very weird. There should be no way that Sigil would use any other Python version but its own (for the embedded python portions). Even if it were included on the system path.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error message when launching Calibre Ubiquity Calibre 3 07-12-2019 01:47 AM
Problem launching Sigil rolgiati Sigil 46 02-13-2019 08:14 AM
Embedded Python Error? darkbreath Sigil 13 10-14-2016 07:35 AM
Sigil-0.8.4 not launching on Windows 7 Professional 32-bit jwlewis Sigil 28 06-11-2015 10:13 PM
Sigil not launching in Win XP on VMWare sachinwalia Sigil 19 01-27-2010 03:19 AM


All times are GMT -4. The time now is 04:07 PM.


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