![]() |
#3991 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
|
![]() |
![]() |
![]() |
#3992 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
#3993 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
I'm going to leave it for the next test version, since you can use it now with finestories.com if you want, it will just give a warning. Unless there's an outcry for it or something. ![]() |
|
![]() |
![]() |
![]() |
#3994 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 3804
Join Date: May 2016
Device: Kindle Oasis 2
|
Alright, I had this really long explanation written out as I figured it out, but after way too long narrowing it down to exactly what’s occurring, I think I can rewrite this and make it easier to understand and replicate.
First, this has been happening for a long time. It was just annoying to figure out and so I never could understand why it was happening until yesterday it suddenly occurred what it might be. I honestly thought it was a pure calibre problem for a while. Second, this is a problem with the FanFicFare Update (Date) column in my case it's named FFFCheck. Calibre Column Type is set to Date. The problem is an error I get a lot. It's a calibre error, now that I've had my epiphany and spent time narrowing it down, it looks like it comes from the interaction from FFF. …So here we go. I've got a calibre test database (and program) stripped down. Just running Calibre x64 and FanFicFare, both latest version. My test database has 2 files in it. a FFF story, in this case I just grabbed something tiny off ff.net. The second is a non FFF epub. The search I'm using in a database is: #fffcheck:<5daysago first time no problem. Highlight both, update. Of course the second file doesn't work. In Update Existing Dialog it says No Story URL Found. I update the files. Since the second has nothing to do with FFF, and there's no URL, I've never considered it might cause a problem. Update - doesn't matter if the Fanfic updates or not, as long as both files metadata is updated in the fffcheck column. Search again: #fffcheck:<5daysago ...... and Error: ValueError: astimezone() cannot be applied to a naive datetime (full error below) Spoiler:
I've tried dozens of variations. This has no problem whatsoever when everything is a FFF story (with URL), but anything missing a URL effects this as far as I can tell. Even files that were FFF downloaded and had the URL removed because of say rewrite (and removal of all the old chapters to do it, so I kept the old version). That's probably why I couldn't narrow this problem down and it just seemed to randomly occur, I rarely ever get non FFF stories selected when I try and update FFF stories. Still, it's an error that's happened a lot for me, and I'd love to see it fixed. Last edited by Atherton25; 03-24-2020 at 06:48 PM. |
![]() |
![]() |
![]() |
#3995 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2020-03-24 - Make sure all timestamps are using Calibre's local_tz. @Atherton25, I've tried to follow your steps exactly, but I cannot get an error from doing a #fffcheck:<5daysago search with anything I try. Are you talking about FFF's Last Checked Column feature? That is not the same thing as just setting a date column to the updated date metadata, which is what you appear to describe above. Because I can get an astimezone() cannot be applied to a naive datetime error while trying to update a non-FFF story while Last Checked Column is enabled, but it only appears in the debug log where it is otherwise ignored. It's very easy to argue that FFF shouldn't be setting anything for books that aren't from FFF, even if the user tries to. But there are cases when a book may have a had a valid story URL in past, but the site isn't supported anymore. And then I'd be left with only leaving out books with no URL at all, which is even more chaotic... On one occasion while working on this, I was able to get Calibre to give me an astimezone() cannot be applied to a naive datetime error while editing metadata after trying various updates. And now I cannot get that error trying to replicate it either way above. (sigh). So what I've done is looked at the few places in FFF that wasn't already explicitly assigning the same timezone as Calibre (a few datetime.now() calls) and forced them to Calibre's TZ also. That's my best guess, and it seems logical. So hopefully it will help. |
![]() |
![]() |
![]() |
#3996 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 124
Karma: 3804
Join Date: May 2016
Device: Kindle Oasis 2
|
Quote:
I was prepared to zip a copy my test database with stripped down personal.ini and and offer it for checking, and then I was finally able to narrow it down very specifically to discover what was doing it. I'm sorry my instructions weren't quite clear enough, but you saw it at least once. I probably missed a step when I was rewriting the instructions/situation. Yes, I was definitely using the Last Checked Column feature. I thought I'd said that right, but apparently I hadn't. And I understand the frustration. I've been having this error off and on for well over a year, probably closer to 2, if not longer. It seemed that, just randomly, I couldn't sort by a date column. And once I tried to sort by the wrong column (I think it was always my FFFCheck column) I got errors thrown anytime I tried to sort by another column I'd have to change databases, or restart Calibre. With the large database I work in getting back in takes a minute or two no matter how I did it, so it was *really* annoying particularly when I wanted to just upload the books onto my kindle and walk away. Thanks for the fix. |
|
![]() |
![]() |
![]() |
#3997 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 185
Karma: 1004974
Join Date: May 2013
Location: Solar system, Earth
Device: none
|
Calibre's FanFicFare plugin appears to stop working with ficbook.net
Both existing and new urls results in errors like this Статус (=Status) Название (=Name) Автор (=Author) Comment URL Ошибка (=Error) Mass Effect: Human Revolution Lightstorm 'NoneType' object has no attribute 'text' https://www.ficbook.net/readfic/8483426 Site itself appears to work fine from my computer. Attemp to use ./calibre-debug --run-plugin FanFicFare https://www.ficbook.net/readfic/8483426 results in Python function terminated unexpectedly: initial_value must be unicode or None, not str Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 187, in main return run_entry_point() File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 121, in run_entry_point return getattr(pmod, func)() File "site-packages/calibre/debug.py", line 327, in main File "calibre_plugins.fanficfare_plugin.__init__", line 139, in cli_main File "calibre_plugins.fanficfare_plugin.fanficfare.cli" , line 308, in main File "calibre_plugins.fanficfare_plugin.fanficfare.cli" , line 356, in do_download File "calibre_plugins.fanficfare_plugin.fanficfare.cli" , line 557, in get_configuration TypeError: initial_value must be unicode or None, not str |
![]() |
![]() |
![]() |
#3998 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
FYI, that second error with the Calibre CLI is unrelated and should be fixed in the latest test version. |
|
![]() |
![]() |
![]() |
#3999 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2020-03-25 - Fixes for ficbook.net site changes. - Correct comments for universe_as_series setting in defaults.ini. Note that the ficbook.net changes include putting all 'Tags' into 'genre' because they're all mixed together. Now including ships! |
![]() |
![]() |
![]() |
#4000 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 185
Karma: 1004974
Join Date: May 2013
Location: Solar system, Earth
Device: none
|
Quote:
Last test version mostly works but https://www.ficbook.net/readfic/8857583 results in Ошибка Unknown Unknown 'NoneType' object has no attribute 'find_next' https://www.ficbook.net/readfic/8857583 |
|
![]() |
![]() |
![]() |
#4001 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2020-03-25 - Fixes for ficbook.net site changes. - Correct comments for universe_as_series setting in defaults.ini. - Fix for adapter_ficbooknet when no ships/characters. |
![]() |
![]() |
![]() |
#4002 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 185
Karma: 1004974
Join Date: May 2013
Location: Solar system, Earth
Device: none
|
Looks like handling of utopiastories.com urls is not fully correct in Calibre's FanFicFare plugin.
only http://www.utopiastories.com/code/show_story.asp/recid/<story_id_number> URLs are handled but https://www.utopiastories.com/code/show_story.asp/recid/<story_id_number> are considered invalid by fanficfare even while same content is available at both URLs. Last edited by vikarti; 03-29-2020 at 05:51 AM. Reason: minor grammar fixes |
![]() |
![]() |
![]() |
#4003 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
I will add code in the next test version to accept https:// URLs for utopiastories.com, but FFF can't use https:// for downloads for that site at this time. |
|
![]() |
![]() |
![]() |
#4004 | |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Oct 2014
Device: Kindle Fire HD, Kindle Paperwhite, K1 (ret), K2 (ret)
|
![]()
I've been using the "get from email" feature for a long time now. It seems Google updated how the security is for 3rd party access to your account and now you have to turn on a flag to allow the "less secure" in (which I did). Even with that, I'm still getting an error. I haven't changed my credentials with gmail, and I did re-enter them in FFF just in case they were corrupted. I've restarted and I continue to get the same error.
Quote:
Thoughts on what could be the problem? |
|
![]() |
![]() |
![]() |
#4005 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
No idea, unfortunately. You are correct that the error is occurring during login, before it gets to fetching emails.
Back in Feb 2020 somebody else had the same or a similar issue that mysteriously went away. All I can say is that's working fine for me and I too use Google account for it. |
![]() |
![]() |
![]() |
Tags |
fanfiction |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 523 | 07-15-2025 06:45 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Marvin XD | Philantrop | Plugins | 126 | 01-29-2017 12:48 PM |
[GUI Plugin] KiNotes | -axel- | Plugins | 0 | 07-14-2013 06:39 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |