![]() |
#1 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Nov 2015
Device: Kindle HDX
|
NameError: name "xrange" is not defined
Can anyone help with this error?
|
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,064
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Probably not without more information.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 # |
![]() |
![]() |
![]() |
#4 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() 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! |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,423
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Nov 2015
Device: Kindle HDX
|
THANK YOU! That fixed it!
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |