View Single Post
Old 03-23-2015, 08:38 PM   #1
huang5307
Junior Member
huang5307 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2015
Device: Kindle Paper White 2
How to setup Python debug environment for Calibre Recipes

I am trying to develop a recipe. I want to setup a Python debug environment for Calibre Recipes (in Windows 8.1).

Firstly, I include Calibre lib to Python IDLE but still failed. Does anyone know to do that?
Quote:
>>> sys.path.insert(0, r"C:\Program Files\Calibre2\pylib.zip")
>>> from calibre.web.feeds.recipes import BasicNewsRecipe

Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
from calibre.web.feeds.recipes import BasicNewsRecipe
File "site-packages\calibre\__init__.py", line 17, in <module>
File "site-packages\calibre\constants.py", line 203, in <module>
File "site-packages\calibre\constants.py", line 187, in __getitem__
File "site-packages\calibre\constants.py", line 162, in load_plugin
AttributeError: 'module' object has no attribute 'extensions_location'
>>>
huang5307 is offline   Reply With Quote