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, 07:32 PM   #1
tekwrite
Enthusiast
tekwrite began at the beginning.
 
Posts: 25
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, 08:54 PM   #2
jhowell
Grand Sorcerer
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: 5,605
Karma: 60740296
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Oasis 2, iPad, Nexus 7
Probably not without more information.
jhowell is online now   Reply With Quote
Advert
Old 10-17-2020, 09: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: 28,026
Karma: 46346682
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2, K4NT(Fixed: New Bat.), Galaxy Tab A
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, 10: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: 22,411
Karma: 102454337
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, 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 01:44 PM.
DNSB is online now   Reply With Quote
Old 10-18-2020, 11:22 AM   #5
tekwrite
Enthusiast
tekwrite began at the beginning.
 
Posts: 25
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, 01: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.
 
chaley's Avatar
 
Posts: 10,807
Karma: 4599395
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
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, 03:31 PM   #7
tekwrite
Enthusiast
tekwrite began at the beginning.
 
Posts: 25
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 10:01 AM
question about "user defined usb device" plugin Kaverin Plugins 2 03-08-2014 10:59 PM


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


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