![]() |
#2581 |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2011
Device: generic android 4.0
|
|
![]() |
![]() |
#2582 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,027
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
If you delete Generate Cover and try FFDL without it installed, that will definitely tell you if GC is the problem. |
|
![]() |
Advert | |
|
![]() |
#2583 |
Member
![]() Posts: 11
Karma: 10
Join Date: Nov 2011
Device: generic android 4.0
|
I Feel ;ike I'm jinxed. Now I get this message for everything I attempt to download:
Status Title Author Comment URL Bad A Working Title: Part Three IBACULLEN File contains no section headers. file: <???>, line: 1 u' [epub]\n' https://www.fanfiction.net/s/9396602/1/ Bad Baby HelliesWorld File contains no section headers. file: <???>, line: 1 u' [epub]\n' https://www.fanfiction.net/s/10213016/1/ Bad Barely Breathing chocaholic123 File contains no section headers. file: <???>, line: 1 u' [epub]\n' https://www.fanfiction.net/s/10241842/1/ |
![]() |
![]() |
#2584 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,027
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Code:
calibre-debug -g But this is really looking like something wrong with your computer or your install, not the software. |
|
![]() |
![]() |
#2585 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
|
Quote:
Code:
calibre, version 1.33.0 ERROR: Unhandled exception: <b>InvalidPlugin</b>:The plugin in u'/Users/sue/Downloads/FanFictionDownLoaderPlugin_fictioning.zip' is invalid. It does not contain a top-level __init__.py file calibre 1.33 isfrozen: True is64bit: True Darwin-10.8.0-i386-64bit Darwin ('64bit', '') ('Darwin', '10.8.0', 'Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386') Python 2.7.5 OSX: ('10.6.8', ('', '', ''), 'i386') Traceback (most recent call last): File "site-packages/calibre/gui2/preferences/plugins.py", line 308, in add_plugin File "site-packages/calibre/customize/ui.py", line 375, in add_plugin File "site-packages/calibre/customize/ui.py", line 53, in load_plugin File "site-packages/calibre/customize/zipplugin.py", line 188, in load File "site-packages/calibre/customize/zipplugin.py", line 282, in _locate_code InvalidPlugin: The plugin in u'/Users/sue/Downloads/FanFictionDownLoaderPlugin_fictioning.zip' is invalid. It does not contain a top-level __init__.py file Calibre 1.33 Ver of plugin modified Version 1.8.18 I've added my modded files zip. |
|
![]() |
Advert | |
|
![]() |
#2586 | |
Occassional Beta Tester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
|
Quote:
|
|
![]() |
![]() |
#2587 | ||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,027
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
I don't know how easy zip files are to work with on mac, but in windows & linux it's easy to update files in an existing zip file. So you might try adding your files to the official zip. Quote:
Code:
python makeplugin.py |
||
![]() |
![]() |
#2588 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
|
Quote:
The good news is that I finally downloaded the correct files (yay) and added/edited the two files (yay) and even compiled the plugin using Terminal (after swearing in 2002 that I'd never use Linux/Unix again. Darn... but yay). Installed with no issues. However, when I try to download a story from my site, I get the error: Code:
Status Title Author Comment URL Bad Unknown Unknown 'NoneType' object has no attribute 'strftime' http://www.fictioning.net/viewstory.php?sid=503 Edited: the good news is though I can change the fictioning.net site if there's a problem there, as I "own" it. But I'm not sure what I'd have to change... Last edited by skb; 04-25-2014 at 05:46 PM. |
|
![]() |
![]() |
#2589 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,027
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
But experience tells me that you're probably calling story.setMetadata for dateUpdated with a None value. When you get this adapter working, I'd be willing to add it to FFDL if you like. Just because I don't want to do small sites doesn't mean other people can't. |
|
![]() |
![]() |
#2590 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
|
Quote:
Anyway, I seem to be throwing this error Code:
FFDL:ERROR:calibre_plugins.fanfictiondownloader_plugin.dialogs(600):Exception: {u'comment': u"'NoneType' object has no attribute 'strftime'", u'begin': None, u'good': False, u'end': None, u'author': [u'Unknown'], u'url': u'http://www.fictioning.net/viewstory.php?sid=434', u'listorder': 0, u'author_sort': [u'Unknown'], u'site': 'www.fictioning.net', u'comments': u'', u'calibre_id': None, u'added': False, u'title': u'Unknown'}:'NoneType' object has no attribute 'strftime' |
|
![]() |
![]() |
#2591 | ||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,027
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Quote:
|
||
![]() |
![]() |
#2592 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
|
I gave up the DOS prompt at the same time. It's not really working out for me, though, is it? But actually, I too love linux (so stable!) but these days need a GUI because I'm old & grumpy and though I code HTML, I'm not really a developer, by any stretch of the imagination.
Code:
DEBUG: 0.0 KoboUtilites::action.py - loading translations DEBUG: 0.0 KoboUtilites::dialogs.py - loading translations DEBUG: 0.0 KoboUtilites::action.py - loading translations FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin(156):Plugin FanFictionDownLoader macmenuhack file_path:/Users/sue/Library/Preferences/calibre/plugins/fanfictiondownloader_macmenuhack.txt macmenuhack file_path:/Users/sue/Library/Preferences/calibre/plugins/fanfictiondownloader_macmenuhack.txt DEBUG: 3.4 No Kobo Touch, Glo or Mini appears to be connected DEBUG: 3.4 rebuild_menus - self.supports_ratings=False Started up in 9.97 seconds with 3292 books FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin(726):FanFictionDownLoader v1.8.18 FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin(761):url:http://www.fictioning.net/viewstory.php?sid=434 FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.adapter_fictioningnet(68):URL: http://www.fictioning.net/viewstory.php?sid=434&index=1 FFDL:ERROR:calibre_plugins.fanfictiondownloader_plugin.dialogs(600):Exception: {u'comment': u"'NoneType' object has no attribute 'strftime'", u'begin': None, u'good': False, u'end': None, u'author': [u'Unknown'], u'url': u'http://www.fictioning.net/viewstory.php?sid=434', u'listorder': 0, u'author_sort': [u'Unknown'], u'site': 'www.fictioning.net', u'comments': u'', u'calibre_id': None, u'added': False, u'title': u'Unknown'}:'NoneType' object has no attribute 'strftime' Traceback (most recent call last): File "calibre_plugins.fanfictiondownloader_plugin.dialogs", line 590, in do_loop File "calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin", line 839, in prep_download_loop File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.base_adapter", line 261, in getStoryMetadataOnly File "calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.story", line 269, in setMetadata AttributeError: 'NoneType' object has no attribute 'strftime' I have NO idea what I'm doing. Okay, so it's a date/time error. So, I'm guessing I have an issue with something like updated or published date. I'll investigate & experiment further. Thanks for all the help. If I get through this alive, I might put together an "Idiot's Guide" procedure (let's face it, I'm qualified). |
![]() |
![]() |
#2593 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 401
Karma: 1597305
Join Date: Mar 2010
Device: Ipod G4, MacOS 10.12, Calibre, Pocketbook Touch HD 3
|
Hmm, well, I truly have "fixed" it now. Now when I try to add a story I get "No valid story URLs entered".
Could this particular thing be a permissions issue or even a file encoding type error? I ask this because when I compile the plugin, all the files have the same date except the ones I edited/created. Does this matter. Could it be a Win/Unix file format thing (I always made that error in the old days). Edited: Okay, getting somewhere now. Compiled again. now getting Code:
object of type 'NoneType' has no len() Last edited by skb; 04-26-2014 at 04:28 AM. |
![]() |
![]() |
#2594 |
Occassional Beta Tester
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 284
Karma: 3516
Join Date: Nov 2010
Location: Hungary
Device: none
|
Is there some kind of adapter how-to? I tried to put together an adapter for an efiction archive and kept running into different combinations of 'NoneType' object has no attribute 'strftime' and 'NoneType' object has no attribute __getitem__' depending on the skin I viewed the site with. After a few hours I gave up. I have some experience with pascal, python and coding, but this type of thing (adapter writing) is very new to me.
Last edited by Firedancer885; 04-26-2014 at 08:05 AM. |
![]() |
![]() |
#2595 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,027
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
For serious debugging of adapters, I use the CLI (command line interface) of FFDL and skip calibre all together. That way I'm not recreating the zip and restarting calibre every time I change something.
I'm on windows, so I have a run.bat file containing: Code:
set PYTHONIOENCODING=UTF-8 c:\Python27\python.exe downloader.py -d %1 %2 %3 %4 %5 %6 %7 %8 %9 I also use lots of print statements (or logger.debug()) for debugging. The errors skb & Firedancer885 are reporting from their adapters are from not collecting or setting all the appropriate metadata. If the track traces aren't enough to tell you which metadata you're not setting, I'd use print statements in the adapter to show what metadata you are setting. |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Count Pages | kiwidude | Plugins | 1849 | 08-30-2025 01:22 PM |
[GUI Plugin] Resize Cover | kiwidude | Plugins | 100 | 07-10-2025 08:50 AM |
[GUI Plugin] Find Duplicates | kiwidude | Plugins | 1124 | 04-18-2025 09:19 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |