View Single Post
Old 12-27-2008, 09:00 PM   #19
junkml
Addict
junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.junkml ought to be getting tired of karma fortunes by now.
 
junkml's Avatar
 
Posts: 277
Karma: 1004969
Join Date: Mar 2007
Device: Sony Reader
Kovid,

I'm trying to get a handle on your plugins.

I copied your "Hello World" script, and pasted it into a file. When I try to add it to Calibre, I get this error:
invalid syntax (, line 1)
Detailed traceback:
Traceback (most recent call last):
File "calibre\gui2\dialogs\config.pyo", line 251, in add_plugin
File "C:\Program Files\calibre\library.zip\calibre\customize\ui.py" , line 173, in add_plugin
File "C:\Program Files\calibre\library.zip\calibre\customize\ui.py" , line 52, in load_plugin
File "", line 1
import os
^
SyntaxError: invalid syntax
Maybe I'm missing something simple, but it seems to be having an invalid syntax error on "import os".

Can you give me any hints?

Thanks.
junkml is offline   Reply With Quote