View Single Post
Old 06-24-2013, 12:02 PM   #1496
RadiantPhoenix
Linux User
RadiantPhoenix began at the beginning.
 
RadiantPhoenix's Avatar
 
Posts: 5
Karma: 10
Join Date: Jun 2013
Device: none
The plugin doesn't seem to work for me.

Does anyone have any idea what's going wrong and how to fix it?

I'm running Calibre "0.9.31+dfsg-1~ppa1" from https://launchpad.net/~n-muench/+archive/calibre2 on 64-bit Xubuntu 12.04, and have python version "2.7.3-0ubuntu2.2"

Code:
$ calibre

Plugin FanFictionDownLoader macmenuhack file_path:~/.config/calibre/plugins/fanfictiondownloader_macmenuhack.txt
FanFictionDownLoader v1.7.28
url:http://www.fanfiction.net/s/5398503/1/
FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.adapter_fanfictionnet(79):URL: http://www.fanfiction.net/s/5398503/1/
FFDL:DEBUG:calibre_plugins.fanfictiondownloader_plugin.fanficdownloader.adapters.adapter_fanfictionnet(112):=Trying newer chapter: http://www.fanfiction.net/s/5398503/83/
Exception: {u'comment': u"'function' object has no attribute 'Markdown'", u'publisher': u'www.fanfiction.net', u'begin': None, u'good': False, u'end': None, u'author': [u'Vathara'], u'url': u'http://www.fanfiction.net/s/5398503/1/', u'listorder': 0, u'author_sort': [u'Vathara'], u'all_metadata': {'rating': u'T', 'author': u'Vathara', 'series': None, 'numWords': u'713,824', 'site': u'www.fanfiction.net', 'datePublished': u'2009-09-24', 'authorHTML': u"<a class='authorlink' href='http://www.fanfiction.net/u/77482/Vathara'>Vathara</a>", 'storyUrl': u'http://www.fanfiction.net/s/5398503/1/', 'storyId': u'5398503', 'category': u'Avatar: Last Airbender', 'lastupdate': u'Last Update Year/Month: 2013/06, Last Update: 2013/06/06', 'formatext': None, 'title': u'Embers', 'ships': None, 'seriesHTML': None, 'formatname': None, 'version': u'FanFictionDownLoader v1.7.28', 'dateUpdated': u'2013-06-06', 'numChapters': u'82', 'status': u'In-Progress', 'langcode': u'en', 'description': u'Dragon\'s fire is not so easily extinguished; when Zuko rediscovers a lost firebending technique, shifting flames can shift the world... Follows "Theft Absolute".', 'warnings': None, 'dateCreated': u'2013-06-24 11:53:51', 'output_css': None, 'authorId': u'77482', 'authorUrl': u'http://www.fanfiction.net/u/77482/Vathara', 'characters': u'Iroh, Zuko', 'genre': u'Adventure, Family', 'favs': u'2,975', 'language': u'English', 'follows': u'2,321', 'seriesUrl': None, 'reviews': u'6,551', 'siteabbrev': u'ffnet', 'extratags': u'FanFiction'}, u'comments': u'', u'calibre_id': None, u'added': False, u'title': u'Embers', u'tags': [u'Iroh', u'Avatar: Last Airbender', u'Zuko', u'Family', u'In-Progress', u'FanFiction', u'Adventure']}:'function' object has no attribute 'Markdown'
Traceback (most recent call last):
  File "calibre_plugins.fanfictiondownloader_plugin.dialogs", line 527, in do_loop
  File "calibre_plugins.fanfictiondownloader_plugin.ffdl_plugin", line 772, in prep_download_loop
  File "/usr/lib/calibre/calibre/library/comments.py", line 137, in sanitize_comments_html
    md = markdown.Markdown(safe_mode=True)
AttributeError: 'function' object has no attribute 'Markdown'
Fetched metadata for 1 of 1
Code:
$ calibre --version
calibre (calibre 0.9.31)
Code:
$ python --version
Python 2.7.3
EDIT: the standalone CLI python program seems to run fine, but I was hoping to take easy advantage of the Calibre library stuff.

Last edited by RadiantPhoenix; 06-24-2013 at 12:04 PM.
RadiantPhoenix is offline