Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 12-07-2011, 12:31 PM   #1
shipley99
Junior Member
shipley99 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2011
Device: iPod
tab2opf

Hello everyone!
Trying to convert tab to opf (-utf8) with cmd and there's a syntax error: invalid syntax.
Anybody, please?
shipley99 is offline   Reply With Quote
Old 12-07-2011, 06:52 PM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
1) What exactly did you enter at the command line?
2) Did you make sure that the source has the correct format?
Doitsu is offline   Reply With Quote
Advert
Old 12-08-2011, 11:02 AM   #3
shipley99
Junior Member
shipley99 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2011
Device: iPod
Thanks for your reply.

1. "C:\Documents and Settings\user\Desktop\tab2opf.py" -utf "C:\Documents and Settings\user\My Documents\angpol.tab"
File "C:\Documents and Settings\user\Desktop\tab2opf.py", line 2
%s
^
SyntaxError: invalid syntax

2. Yes, I did.
shipley99 is offline   Reply With Quote
Old 12-08-2011, 01:00 PM   #4
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 27,549
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You usually have to preface a command with "python" so your computer knows what to interpret the script with:
Code:
python "C:\Documents and Settings\user\Desktop\tab2opf.py" -utf "C:\Documents and Settings\user\My Documents\angpol.tab"
But if that were the problem, the error would likely be different (unknown command/program or some-such).

It looks like tab2opf.py is a python 2.x.x script. You aren't, by chance, trying to run it with Python 3 are you? (If you just type "python" at a command prompt, you should be able to determine your Python version). That won't work.
DiapDealer is online now   Reply With Quote
Reply

Tags
conversion problems, invalid syntax, tab2opf


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
tab2opf.py <idx:key key="xxx"> Doitsu Kindle Formats 0 01-11-2011 11:57 AM


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


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