01-17-2020, 04:33 AM | #691 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2020
Location: Australia
Device: kindle (very old)
|
Hi all,
I'm keen to have a go at porting this plugin to python3. According to the Calibre plugin stats, "Find Duplicates" is pretty popular and according to the py3 plugin port post it hasn't yet been done. Is the original developer still floating about? If so are you ok with me working on a port? If not, does anyone else know if someone has already started work on this? Also, does an existing public revision control (preferably git) repo already exist for this? Or should I just start a new one on GitHub? Finally, assuming I do work on this, I'm a Linux only user, so to ensure it works on all platforms, are there other OS users who are interested in testing the py3 port? |
01-17-2020, 06:56 PM | #692 | |
null operator (he/him)
Posts: 20,998
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Use whatever version control you're comfortable with, but the distribution of the release versions must be via the Plugin Updater process - as per the stickies at the top of the Plugins sub-forum. The forum lacks a facility to assign a thread to a different member; so, that means having to ask one of the active mods (me, theducks, DoctorOhh, PeterT, kovid) to update the first post and the index - see the top of index. Post test versions in a new messages. There'll be a few people to test new versions in current release calibre (i.e. 4.x) for Windows and MacOS, not so many for 4.99.x. You'll get more when Kovid calls for beta testers on what I assume will be calibre 5. Regarding this plugin in particular:
It would be good to get those issues resolved - probably after the py3 dust settles. BR Last edited by BetterRed; 01-19-2020 at 08:50 PM. |
|
Advert | |
|
01-21-2020, 02:45 AM | #693 | ||||
Junior Member
Posts: 5
Karma: 10
Join Date: Jan 2020
Location: Australia
Device: kindle (very old)
|
Quote:
Quote:
Quote:
Quote:
Speaking of which, I've already run 2to3 over this plugin code, but I'm still struggling a little to get a python3 instance of Calibre up and running so I can start doing some preliminary testing. Unfortunately, the dev instructions don't appear to work with Python3 (it's still running python2). On reflection that makes sense as the binary install would be pre-compiled. Anyway, I'll hopefully work that out and get back to this... Thanks again for the warm welcome and friendly advice. |
||||
01-21-2020, 03:51 AM | #694 | ||
null operator (he/him)
Posts: 20,998
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
I'm sure davidfor, JimmXinu etc will be happy to give you some pointers, they're both very familiar with calibre's development setup, kiwidudes plugins, and what's needed to make them py3 compliant. BR |
||
01-21-2020, 06:31 AM | #695 | ||
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
Advert | |
|
02-01-2020, 01:39 AM | #696 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Beta - Python 3 compatible
I have made the changes to the plugin to make it Python 3 compatible. I don't use it much, but, it was there was an error each time I changed library. That was annoying me and causing some other problems.
I have tested some basic function in both the release version of calibre and the Python 3 betas. It all seems to work. But, as I don't use it much, I haven't tested everything. It loads, will find duplicates in both the current library and another library, but, I have only used the default options for everything. If someone who does use it in test it in either environment, that would be very helpful. And honestly, at this point, I am more concerned about breaking the plugin in the released version of calibre than the Python 3 version. @Jeremy_D: Sorry, I had completely forgotten that you had picked this plugin to look at until I came to do this post. Last edited by davidfor; 02-15-2020 at 09:46 PM. Reason: Removed beta as there is a later version. |
02-08-2020, 09:11 PM | #697 |
Member
Posts: 14
Karma: 10
Join Date: Oct 2011
Location: Melbourne, Australia
Device: kindle
|
Calibre Plugin - Find Duplicates
For some reason this plugin isn't showing up in the main toolbar. As Calibre loads it does show up but when loaded it's not there - nor is Edit Book. If I try to modify the main toolbar then Find Duplicates and Edit Book both show as being there but when the library is loaded it's not there.
I don't recall changing anything but can't think what could be wrong. |
02-08-2020, 10:57 PM | #698 |
null operator (he/him)
Posts: 20,998
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Do you have a device attached, there are separate toolbars and menus when a device is attached
BR |
02-09-2020, 12:49 AM | #699 |
creator of calibre
Posts: 44,546
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
there are probably too many icons on your toolbar, click the little dots at the edge of the toolbar to expand it and see the missing icons.
|
02-15-2020, 04:20 PM | #700 |
Addict
Posts: 256
Karma: 2092424
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
|
Running Calibre 4.9.1 here. Thanks for the beta - I was getting an xrange error switching libraries and the beta seems to have fixed that.
I mostly use the plugin to weed out publisher variations. If I do Find Metadata variations->check "Publisher", and then press "Search", I get this error: Code:
calibre, version 4.9.1 ERROR: Unhandled exception: <b>TypeError</b>:'cmp' is an invalid keyword argument for this function calibre 4.9.1 embedded-python: False is64bit: True Linux-4.19.97-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.6 Linux ('64bit', 'ELF') ('Linux', '4.19.97-gentoo', '#2 SMP PREEMPT Sat Feb 1 18:45:22 CST 2020') Python 3.6.9 Linux: ('Gentoo Base System', '2.6', '') Interface language: None Successfully initialized third party plugins: Count Pages (1, 9, 0) && Diaps Editing Toolbag (0, 3, 6) && EpubSplit (2, 9, 0) && Extract ISBN (1, 4, 4) && Find Duplicates (1, 6, 5) && Goodreads Sync (1, 14, 2) && KindleUnpack - The Plugin (0, 82, 1) && Kobo Books (1, 8, 0) && Modify ePub (1, 4, 0) && Quality Check (1, 9, 11) Traceback (most recent call last): File "calibre_plugins.find_duplicates.dialogs", line 705, in _refresh_results File "calibre_plugins.find_duplicates.variation_algorithms", line 49, in run_variation_check File "calibre_plugins.find_duplicates.variation_algorithms", line 117, in _flatten_candidates_for_item File "calibre_plugins.find_duplicates.variation_algorithms", line 136, in _clean_dup_groups TypeError: 'cmp' is an invalid keyword argument for this function |
02-15-2020, 07:17 PM | #701 | |
Resident Curmudgeon
Posts: 76,432
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
02-15-2020, 09:15 PM | #702 | |
Bibliophagist
Posts: 40,549
Karma: 157444380
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
calibre 4.10.1 [64bit] embedded-python: True is64bit: True Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.18362') Python 2.7.16+ Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free') Interface language: None Analysing 2404 publisher for duplicates... Completed duplicate analysis in: 0.195999860764 Found 249 duplicate groups |
|
02-15-2020, 09:44 PM | #703 | |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Last edited by davidfor; 06-13-2020 at 03:10 AM. Reason: Removed beta as there is a later version. |
|
02-16-2020, 07:47 PM | #704 |
Addict
Posts: 256
Karma: 2092424
Join Date: Oct 2011
Location: Arlington, TX
Device: Kindle PW4, Moon+ Reader on a cheap Android tablet
|
Thsnk you - that fixed it.
|
03-08-2020, 02:44 PM | #705 |
Guru
Posts: 773
Karma: 340954
Join Date: Sep 2017
Location: Argentina
Device: moon+ reader, kindle paperwhite
|
I would like to make my contribution to translate it into Spanish, since it is being remodeled.
|
Tags |
cross library duplicates, in library duplicates |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1208 | Today 11:22 AM |
[GUI Plugin] Generate Cover | kiwidude | Plugins | 834 | Yesterday 01:39 AM |
[GUI Plugin] View Manager | kiwidude | Plugins | 415 | 05-11-2024 04:28 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 09:39 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |