View Single Post
Old 06-20-2016, 09:28 AM   #19
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: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by excaliber View Post
@BetterRed: OK, I have found Embed Metadata tool and it works great! I can see the basic metadata as well as all extra metadata from Calibre.
I know "PDF-XChange Viewer", I use it on Windows.

If I am not wrong Zotero fetches metadata from google scholar. If there was a functioning plugin for fetching metadata from google scholar or other site then we could enter all this kind of docs directly into Calibre. As I mentioned before there is actually such a plugin but at least for me it doesn't work. When I click at "Configure selected source" I get errors like these:

calibre 2.59 embedded-python: True is64bit: True
Linux-4.4.0-22-generic-x86_64-with-debian-jessie-sid Linux ('64bit', 'ELF')
('Linux', '4.4.0-22-generic', '#40~14.04.1-Ubuntu SMP Fri May 13 17:27:45 UTC 2016')
Python 2.7.9
Linux: ('debian', 'jessie/sid', '')
Successfully initialized third party plugins: Clean Metadata && Count Pages && Author Book Count && Reading List && View Manager && Search The Internet && Generate Cover && Find Duplicates && Drop Search Results && Get PDF Metadata && Import List && BOL_DE && Walk Search History && Get DJVU Metadata && Google Scholar && Diaps Editing Toolbag && MultiColumnSearch && Save To Format && Author Book Count Hierarchy && Favourites Menu && Annotations && Extract ISBN && User Category && Open With && Goodreads && English Noun Frequency && Recoll Full Text Search && Wiki Reader && Job Spy && Quality Check && Quick Preferences && Consolidate All Library Metadata && Manage Series && Library Codes && Astro-ph
Traceback (most recent call last):
File "site-packages/calibre/gui2/preferences/metadata_sources.py", line 329, in configure_plugin
File "site-packages/calibre/gui2/preferences/metadata_sources.py", line 334, in do_config
File "site-packages/calibre/gui2/preferences/metadata_sources.py", line 274, in __init__
File "calibre_plugins.googlescholar_metadata.__init __", line 35, in config_widget
File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
File "calibre_plugins.googlescholar_metadata.config ", line 10, in <module>
ImportError: No module named PyQt4



calibre, version 2.59.0
ERROR: Unhandled exception: <b>ImportError</b>:cannot import name ConfigWidget
calibre 2.59 embedded-python: True is64bit: True
Linux-4.4.0-22-generic-x86_64-with-debian-jessie-sid Linux ('64bit', 'ELF')
('Linux', '4.4.0-22-generic', '#40~14.04.1-Ubuntu SMP Fri May 13 17:27:45 UTC 2016')
Python 2.7.9
Linux: ('debian', 'jessie/sid', '')
Successfully initialized third party plugins: Clean Metadata && Count Pages && Author Book Count && Reading List && View Manager && Search The Internet && Generate Cover && Find Duplicates && Drop Search Results && Get PDF Metadata && Import List && BOL_DE && Walk Search History && Get DJVU Metadata && Google Scholar && Diaps Editing Toolbag && MultiColumnSearch && Save To Format && Author Book Count Hierarchy && Favourites Menu && Annotations && Extract ISBN && User Category && Open With && Goodreads && English Noun Frequency && Recoll Full Text Search && Wiki Reader && Job Spy && Quality Check && Quick Preferences && Consolidate All Library Metadata && Manage Series && Library Codes && Astro-ph
Traceback (most recent call last):
File "site-packages/calibre/gui2/preferences/metadata_sources.py", line 329, in configure_plugin
File "site-packages/calibre/gui2/preferences/metadata_sources.py", line 334, in do_config
File "site-packages/calibre/gui2/preferences/metadata_sources.py", line 274, in __init__
File "calibre_plugins.googlescholar_metadata.__init __", line 35, in config_widget
ImportError: cannot import name ConfigWidget


I have already installed python-qt4 on my machine. I don't know why the plugin complains. Maybe a developer could look into it.
Calibre uses its own Python installation. This includes Qt5. The plugin is old and has not been updated to Qt5. I've had a look at it and fixed this. I have attached this. It works at least to load and do a search. I have no idea if the results it returns are correct or not.

Edit: I should have looked more. The github site for the plugin says the author moved to Zotero, so hasn't continued with the plugin. I doubt if the version posted works and I have no interest in working on it. But, I'll leave it here in case someone is interested.
Attached Files
File Type: zip googlescholar-metadata-beta.zip (31.8 KB, 193 views)

Last edited by davidfor; 06-20-2016 at 09:35 AM.
davidfor is offline   Reply With Quote