Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-17-2020, 06: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, 07: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: 7,064
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Probably not without more information.
jhowell is offline   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: 31,026
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, 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 online now   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: 45,974
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, 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 12:44 PM.
DNSB is offline   Reply With Quote
Old 10-18-2020, 10: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, 12:06 PM   #6
chaley
Grand Sorcerer
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: 12,423
Karma: 8012664
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, 02: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


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 11:29 AM.


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