Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-17-2020, 06:32 PM   #1
tekwrite
Member
tekwrite began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Nov 2015
Device: Kindle HDX
NameError: name "xrange" is not defined

Can anyone help with this error?
tekwrite is offline   Reply With Quote
Old 10-17-2020, 07:54 PM   #2
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 3,976
Karma: 39887231
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Probably not without more information.
jhowell is online now   Reply With Quote
Advert
Old 10-17-2020, 08:00 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 25,681
Karma: 35353741
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT(Fixed,New Bat.), Galaxy Tab A, Kobo Aura2
I think Kovid said there was 1M lines of code.
Knowing EXACTLY what (and on what OS) you were doing at the time that message popped up.
BTW we also need the Calibre Version #
theducks is offline   Reply With Quote
Old 10-17-2020, 09:13 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 8,622
Karma: 39207287
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Forma, Clara HD, Nexus 7 HD, iPad Pro, Tolino epos
I've seen that error running Python 2 code on Python 3. This came from a Linux distro supplying calibre 4.23 with Python 3 as the installed flavour of Python. Once the distro calibre was removed and calibre installed from Kovid's site the error went away.

Last edited by DNSB; 10-18-2020 at 12:44 PM.
DNSB is offline   Reply With Quote
Old 10-18-2020, 10:22 AM   #5
tekwrite
Member
tekwrite began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Nov 2015
Device: Kindle HDX
Thanks for the replies. I have two libraries-ebook and hard cover. I get the error when I try to switch to the hard cover library. Details:

calibre, version 5.3.0
ERROR: Unhandled exception: <b>NameError</b>:name 'xrange' is not defined

calibre 5.3 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Find Duplicates (1, 6, 3) && Save Composite Custom Columns (1, 1, 1)
Traceback (most recent call last):
File "calibre\startup.py", line 188, in slot
File "calibre\gui2\actions\choose_library.py", line 259, in <lambda>
File "calibre\gui2\actions\choose_library.py", line 607, in switch_requested
File "calibre\gui2\ui.py", line 765, in library_moved
File "calibre_plugins.find_duplicates.action", line 61, in library_changed
File "calibre_plugins.find_duplicates.duplicates", line 69, in __init__
File "calibre_plugins.find_duplicates.config", line 111, in get_exemption_lists
NameError: name 'xrange' is not defined

Thanks for any help!
tekwrite is offline   Reply With Quote
Advert
Old 10-18-2020, 12:06 PM   #6
chaley
Grumpy old git
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 9,384
Karma: 3007492
Join Date: Jan 2010
Location: UK
Device: Reader
Quote:
Originally Posted by tekwrite View Post
Thanks for the replies. I have two libraries-ebook and hard cover. I get the error when I try to switch to the hard cover library. Details:

calibre, version 5.3.0
ERROR: Unhandled exception: <b>NameError</b>:name 'xrange' is not defined

calibre 5.3 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Find Duplicates (1, 6, 3) && Save Composite Custom Columns (1, 1, 1)
Traceback (most recent call last):
File "calibre\startup.py", line 188, in slot
File "calibre\gui2\actions\choose_library.py", line 259, in <lambda>
File "calibre\gui2\actions\choose_library.py", line 607, in switch_requested
File "calibre\gui2\ui.py", line 765, in library_moved
File "calibre_plugins.find_duplicates.action", line 61, in library_changed
File "calibre_plugins.find_duplicates.duplicates", line 69, in __init__
File "calibre_plugins.find_duplicates.config", line 111, in get_exemption_lists
NameError: name 'xrange' is not defined

Thanks for any help!
The find duplicates plugin you have installed is very old (from 2017) and not compatible with calibre 5. Update it
chaley is offline   Reply With Quote
Old 10-18-2020, 02:31 PM   #7
tekwrite
Member
tekwrite began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Nov 2015
Device: Kindle HDX
THANK YOU! That fixed it!
tekwrite is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Entity 'nbsp' not defined" error mrprobert Sigil 11 03-19-2019 09:01 AM
question about "user defined usb device" plugin Kaverin Plugins 2 03-08-2014 09:59 PM


All times are GMT -4. The time now is 08:58 AM.


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