Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-10-2008, 04:11 PM   #1
Acey
Member
Acey began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Oct 2008
Device: Sony PRS-505
Question feeds2disk broken in 0.4.94?

Wanted to make sure it wasn't just me before adding a ticket, but when I run feeds2disk using my own recipe file (located in the same directory) it errors out every time. I also tried specifying the full path to the file but got the same error.

Code:
E:\ebooks\testing>feeds2disk --test --debug os.py
Traceback (most recent call last):
  File "main.py", line 175, in <module>
  File "main.py", line 170, in main
  File "main.py", line 136, in run_recipe
  File "calibre\web\feeds\recipes\__init__.pyo", line 74, in compile_recipe
  File "c:\docume~1\user\locals~1\temp\calibre_0.4.94_vf7mse_recipes\recipe1
.py", line 4, in <module>
    os.py
NameError: name 'os' is not defined

Last edited by Acey; 10-10-2008 at 04:13 PM. Reason: Corrected for readability.
Acey is offline   Reply With Quote
Old 10-10-2008, 04:22 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
works for me, but try naming the file something other than os (os is a built-in python module)
kovidgoyal is offline   Reply With Quote
Advert
Old 10-10-2008, 04:44 PM   #3
Acey
Member
Acey began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Oct 2008
Device: Sony PRS-505
Thanks Kovid. Turns out it was my file. I copied it from Calibre into WordPad and WordPad added lots of formatting codes which caused the error. Note to self: only use a programmer's editor (or an editor you know won't muck up your file!).
Acey is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken PRS-505; any place to buy chrome bottom piece? Or anyone with broken 505? erikk Sony Reader 1 12-09-2009 06:51 PM
Broken DR Grimulkan iRex 27 09-17-2009 11:23 PM
Broken Ipod works Fine! except that its broken Andybaby Lounge 1 06-04-2009 02:03 AM
Broken jeffoest Sony Reader 57 12-11-2007 03:15 PM
is it broken ? markiehill Sony Reader 5 02-15-2007 08:53 AM


All times are GMT -4. The time now is 09:03 AM.


MobileRead.com is a privately owned, operated and funded community.