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

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-13-2019, 03:48 PM   #1261
thiago.eec
Zealot
thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.thiago.eec knows who John Galt is.
 
Posts: 121
Karma: 71600
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Thanks, @davidfor.

It worked perfectly here!
thiago.eec is online now   Reply With Quote
Old 07-21-2019, 12:20 PM   #1262
BlackDogWhite
Member
BlackDogWhite began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Feb 2017
Location: Los Angeles
Device: iPad, Kindle (oldold) & Gen6 Fire, Gen8 Fire
I'm having the same problem (No identifiers for selected download sources). This is after using Count Pages successfully for quite a while. It quit working after updating to calibre 3.46. (Calibre Companion is giving me fits too, which is how I link my PC to iPad).

I already have the appropriate columns and identifiers (remember, it _used_ to work). I also reinstalled the plugin, but that seems to have had no effect.

I don't really know what the error message is trying to tell me!

Ron
BlackDogWhite is offline   Reply With Quote
Old 07-21-2019, 02:48 PM   #1263
BlackDogWhite
Member
BlackDogWhite began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Feb 2017
Location: Los Angeles
Device: iPad, Kindle (oldold) & Gen6 Fire, Gen8 Fire
BTW, I am on Win10.

Somewhat embarrassingly I've discovered I was running 32 bit code - thought I was on 64. Seeing some other post about 3.46 difficulties, I installed 3.44 (which is when I noticed the 32/64 issue. So I uninstalled everything (which does not seem to really uninstall _everything_) and reinstalled 3.44-64bit. Having the same issues.

I only use this plugin for page/word counts, so in ad debug effort I added a Gunning Fog column and variable. Still get the same message which is leading me to believe it does not understand the link to either Goodreads or whatever the heck lubimyczytac is. But it is not clear to me how I am supposed to add/modify the download sources.
BlackDogWhite is offline   Reply With Quote
Old 07-21-2019, 08:51 PM   #1264
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 17,142
Karma: 26480038
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Firstly, the "No identifiers for selected download sources" is specific to the book you are trying to download the page count for. You need the identifier for each book you want to download the page count for.

Have you checked the configuration? There have been some problems related to how calibre stores configurations. I don't think they would have affected this plugin, but, it would be a good idea to check.

Which version of the plugin are you using? The released version? Or the beta I posted above? If the latter, I might have messed up the configuration. It wouldn't surprise me if Skoob was selected when it shouldn't have been.

If the configuration looks good, can you post the contents of the configuration file? To get to it, go to the miscellaneous page of the calibre preferences and press the "Open calibre configuration directory" button. Then go to the "plugins" directory. The file I want is "Count Pages.json". And if you could run calibre in debug mode, do the count and post the log, that should tell me what has happened.
davidfor is offline   Reply With Quote
Old 07-22-2019, 12:34 AM   #1265
BlackDogWhite
Member
BlackDogWhite began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Feb 2017
Location: Los Angeles
Device: iPad, Kindle (oldold) & Gen6 Fire, Gen8 Fire
No identifiers for selected download sources

Quote:
Originally Posted by davidfor View Post
Firstly, the "No identifiers for selected download sources" is specific to the book you are trying to download the page count for.
OK, so the error message has nothing to do with the download site, but the book we are looking up? I've tried doing a page count on a book for which I had already done the page count (last week) and it failed. FWIW. This sounds like my calibre library is corrupted - like it can't find the index for an entry???

Quote:
Have you checked the configuration?
I'm not sure how to do that, nor what that even means, to asses the configuration.

Quote:
If the configuration looks good, can you post the contents of the configuration file?
The version number for Count Pages is 1.8.2. Here is the Count Pages.json contents:
{
"Options": {
"askForConfirmation": true,
"buttonDefault": "Download",
"checkAllSources": true,
"downloadSources": [
[
"goodreads",
true,
true
],
[
"lubimyczytac.pl",
true,
true
]
],
"overwriteExisting": true,
"showTryAllSources": true,
"updateIfUnchanged": true,
"useIcuWordcount": true,
"usePreferredOutput": false
}
}

Quote:
And if you could run calibre in debug mode, do the count and post the log, that should tell me what has happened.
I'll do that as a separate message. Where is the log to which you refer?

Thank you so much for taking the time to respond! I really do appreciate it.


Ron
BlackDogWhite is offline   Reply With Quote
Old 07-22-2019, 12:39 AM   #1266
BlackDogWhite
Member
BlackDogWhite began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Feb 2017
Location: Los Angeles
Device: iPad, Kindle (oldold) & Gen6 Fire, Gen8 Fire
Quote:
Originally Posted by davidfor View Post
And if you could run calibre in debug mode, do the count and post the log, that should tell me what has happened.
I did two page counts, the first on a book previously "counted", the second one on a new book. Here is the debug log:

calibre Debug log
calibre 3.44 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.17763-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.17763')
Python 2.7.15+
Windows: ('10', '10.0.17763', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Count Pages (1, 8, 2)
calibre 3.44 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.17763-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.17763')
Python 2.7.15+
Windows: ('10', '10.0.17763', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Count Pages (1, 8, 2)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 94.1467181467 x 94.0740740741
Using calibre Qt style: True
[0.00] Starting up...
[0.02] Showing splash screen...
[0.06] splash screen shown
[0.06] Initializing db...
[0.11] db initialized
[0.11] Constructing main UI...
[1.59] main UI initialized...
[1.59] Hiding splash screen
SMART_DEV ( 0.00: 0.001) _attach_to_port try ip address "" on port 9090
SMART_DEV ( 0.88: 0.804) _startup_on_demand listening on port 9090
SMART_DEV ( 0.93: 0.000) _attach_to_port try ip address "" on port 54982
SMART_DEV ( 0.95: 0.000) _startup_on_demand broadcast socket listening on port 54982
[2.72] splash screen hidden
[2.72] Started up in 2.72 seconds with 1547 books
SMART_DEV ( 1.99: 1.007) run All IP addresses {'{C27DD5DD-C967-4473-8C41-58C3EF7536C4}': [{'addr': u'192.168.10.204', 'broadcast': u'192.168.10.204', 'netmask': u'255.255.255.255'}], '{476EA27F-4ED3-11E9-9027-806E6F6E6963}': [{'addr': u'127.0.0.1', 'broadcast': u'127.0.0.1', 'netmask': u'255.255.255.255'}]}
toolbar_triggered - mode= Download
toolbar_triggered - mode= Download
toolbar_triggered - download_source= None
QueueProgressDialog - self.input_order= [u'epub', u'azw3', u'mobi', u'lit', u'prc', u'fb2', u'html', u'htm', u'xhtm', u'shtml', u'xhtml', u'zip', u'docx', u'odt', u'rtf', u'pdf', u'txt']
toolbar_triggered - mode= Download
toolbar_triggered - mode= Download
toolbar_triggered - download_source= None
QueueProgressDialog - self.input_order= [u'epub', u'azw3', u'mobi', u'lit', u'prc', u'fb2', u'html', u'htm', u'xhtm', u'shtml', u'xhtml', u'zip', u'docx', u'odt', u'rtf', u'pdf', u'txt']
BlackDogWhite is offline   Reply With Quote
Old 07-22-2019, 04:13 AM   #1267
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 17,142
Karma: 26480038
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Quote:
Originally Posted by BlackDogWhite View Post
OK, so the error message has nothing to do with the download site, but the book we are looking up? I've tried doing a page count on a book for which I had already done the page count (last week) and it failed. FWIW. This sounds like my calibre library is corrupted - like it can't find the index for an entry???
No it is both. If you have the plugin configured to download the page count from a particular site, the books must have the identifier for that site. So, if you want the page count from Goodreads, the books must have a Goodreads identifier.
Quote:
I'm not sure how to do that, nor what that even means, to asses the configuration.
I just meant to look at the configuration for the plugin and make sure it is how you want it. Do you intend for it to download the page count rather than calculate it? Does it have the correct sites selected? If you don't have any Polish books, it might not make sense to have "lubimyczytac.pl" selected. And if you only have Polish books, it might not be sensible to have Goodreads selected.
Quote:
The version number for Count Pages is 1.8.2.
That is the released version.
Quote:
Here is the Count Pages.json contents:
{
"Options": {
"askForConfirmation": true,
"buttonDefault": "Download",
"checkAllSources": true,
"downloadSources": [
[
"goodreads",
true,
true
],
[
"lubimyczytac.pl",
true,
true
]
],
"overwriteExisting": true,
"showTryAllSources": true,
"updateIfUnchanged": true,
"useIcuWordcount": true,
"usePreferredOutput": false
}
}
That looks fine. But, you have enabled both download sources and if a book does not have an id for one, you will see the error.
Quote:


I'll do that as a separate message. Where is the log to which you refer?
Unfortunately, the log isn't showing much. I'll have test at home to see what I can see there.

Last edited by davidfor; 07-28-2019 at 10:22 AM.
davidfor is offline   Reply With Quote
Old 07-30-2019, 10:08 PM   #1268
BlackDogWhite
Member
BlackDogWhite began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Feb 2017
Location: Los Angeles
Device: iPad, Kindle (oldold) & Gen6 Fire, Gen8 Fire
Finally got this working

It took forever for me to understand what was going on. Since I had Page Count working before, and did not recall any particular customization, I was flummoxed as to why I was getting this error.

So in case this helps anyone else, here is a summary of my particular issue.

I believe I took all the defaults on Page Count. And since I already had the necessary extra columns and tags for the fields I thought I was ready to go. The Page count was set to go to the custom column #pages using the algorithm Adobe Digital Editions; and word count was to go to #words and use the ICU algorithm (whatever that is).

My big mistake was on the "Other" tab for customizing Count Pages. It was defaulting to download from both Goodreads and lubimyczytac.pl. Unchecking those on the Download options fixed my problem. What was happening was, since I had Goodreads checked (e.g.), Page Count needed to find an Goodreads "ID" for each book I was trying to count. None of my books had that, so the Page Count would fail.

I hope this helps someone else. Or maybe my future self, the next time my computer hiccups!
BlackDogWhite is offline   Reply With Quote
Old 07-31-2019, 04:58 AM   #1269
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 17,142
Karma: 26480038
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo,Aura H2O,Glo HD,Aura ONE,Clara HD,Forma;tolino epos
Quote:
Originally Posted by BlackDogWhite View Post
It took forever for me to understand what was going on. Since I had Page Count working before, and did not recall any particular customization, I was flummoxed as to why I was getting this error.

So in case this helps anyone else, here is a summary of my particular issue.

I believe I took all the defaults on Page Count. And since I already had the necessary extra columns and tags for the fields I thought I was ready to go. The Page count was set to go to the custom column #pages using the algorithm Adobe Digital Editions; and word count was to go to #words and use the ICU algorithm (whatever that is).

My big mistake was on the "Other" tab for customizing Count Pages. It was defaulting to download from both Goodreads and lubimyczytac.pl. Unchecking those on the Download options fixed my problem. What was happening was, since I had Goodreads checked (e.g.), Page Count needed to find an Goodreads "ID" for each book I was trying to count. None of my books had that, so the Page Count would fail.
For the record, the plugins defaults only have Goodreads selected for downloading the page count. And the default action when pressing the button is "Estimate page/word counts". If the plugin was attempting to download the page count, that means you had either changed the default action to one of the download options, or were explicitly choosing the download option from menu.

The button action, or what you chose from the menu to start the count is the actual problem. If you use the "Estimate page/word counts", it doesn't care what download options are selected or identifiers the book has. It just does the stats using the book in the library.
davidfor is offline   Reply With Quote
Old 08-09-2019, 01:20 AM   #1270
simfin
Junior Member
simfin began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2019
Location: London, UK
Device: Kindle Oasis 3
Can't select custom column

Hello. I'm running Calibre 3.46.0 on a Mac (OS version 10.14.6 - Mojave) and would like to use this plugin but I can't configure it - the drop-down menus to select custom columns are empty and they won't let me select anything. Note - I have created 2 custom columns specifically and they do exist.

Is anyone else seeing this? Is there any way round it - e.g. can I manually edit the Count pages.json file to add the columns? If so what should I add?

Thanks
simfin is offline   Reply With Quote
Old 08-09-2019, 05:40 AM   #1271
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: 23,386
Karma: 25446786
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT, Galaxy Tab A, Kobo Aura2
Quote:
Originally Posted by simfin View Post
Hello. I'm running Calibre 3.46.0 on a Mac (OS version 10.14.6 - Mojave) and would like to use this plugin but I can't configure it - the drop-down menus to select custom columns are empty and they won't let me select anything. Note - I have created 2 custom columns specifically and they do exist.

Is anyone else seeing this? Is there any way round it - e.g. can I manually edit the Count pages.json file to add the columns? If so what should I add?

Thanks
Are the custom columns you created of the correct type? (Numeric:Integers (for pages), floating point (for the scores) )
theducks is offline   Reply With Quote
Old 08-09-2019, 06:33 AM   #1272
simfin
Junior Member
simfin began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2019
Location: London, UK
Device: Kindle Oasis 3
Can't select custom column - solved

Quote:
Originally Posted by theducks View Post
Are the custom columns you created of the correct type? (Numeric:Integers (for pages), floating point (for the scores) )
Ah - I'd overlooked that instruction - thank you! All sorted now.
simfin is offline   Reply With Quote
Reply

Tags
count pages, page count

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 933 08-17-2019 04:32 PM
[GUI Plugin] Open With kiwidude Plugins 332 08-31-2018 08:54 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 33 06-20-2018 03:00 AM
[GUI Plugin] Kindle Collections (old) meme Plugins 2070 08-11-2014 12:02 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 10:11 AM.


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