View Single Post
Old 11-27-2014, 12:11 PM   #28
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,455
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Josieb1 View Post
I'm not sure exactly what i'm supposed to see.

I opened a new Notepad page (using Notepad + +) and copied the code into that. then saved it with the correct name.
Then I ran the command prompt screen and got the usual Welcome to the Interactive Calibre Shell.
Nothing has happened in Calibre. I guess I was execting to see a new format of 'txt'
And no books have a txt file showing.
And when I went back into my Calibre Library (which is where the file is) its gone.

I'm out of options now. Can anyone guide me on what I'm doing wrong please
First, you should not get the "usual Welcome". That means that the file name you passed is not correct.

Here is an example of what starting the script should look like. The file names are not what you would use, but the form is correct. The first command (dir) checks that the file name of the test script is correct by printing some information about it. The second command, calibre-debug, actually runs the script. I added the -e option so that calibre-debug knows to expect a script. I suggest you do the same thing.

If all goes well when you start the script, it won't say anything but will take a fair amount of time to run. Do not start calibre while it is running! If you get bored after a time, use CTRL-C to kill the script, at which point you can start calibre to see if any txt formats have appeared.

Be sure that calibre is not running when you start the script.
Code:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

d:\CBH_Data\calibre.git>dir "D:\CBH_Data\calibre.git\tests\all_tags.py"
 Volume in drive D is CBH_DATA
 Volume Serial Number is C63D-6515

 Directory of D:\CBH_Data\calibre.git\tests

03/03/2014  14:15               378 all_tags.py
               1 File(s)            378 bytes
               0 Dir(s)  688,465,313,792 bytes free

d:\CBH_Data\calibre.git>calibre-debug -e "D:\CBH_Data\calibre.git\tests\all_tags.py"
chaley is offline   Reply With Quote