Re: [python-win32] Running a script
Roger Shuttleworth wrote: > Hello > > Windows XP SP2. > > I am a Python novice. I downloaded an application called rtf2xml that > converts RTF files to XML. I have Python 2.4 installed, and updated my > path to include c:\python24. The application has the following folder > structure: > > rtf2xml-1.2 (contains setup.py, which I have installed using the python > setup.py install command) > rtf2xml (contains a bunch of .py files) > scripts (contains rtf2xml.py and a test file called hello_world.rtf) > > The documentation says that I should be in the command prompt window and > simply type: > rtf2xml hello_world.rtf > > I've tried this but I get various errors, such as: > rtf2xml is not recognized as an internal or external command... > python: can't open file...[errno 13] permission denied > > Please can someone tell me (i) what directory I have to be in, and (ii) > what the command line should be? I tried from various folders, with and > without "python" in front, but nothing works. > Some basic information that might help: http://www.python.org/doc/faq/windows.html It sounds as though your instructions might be a git Unix-xentric. In the Windows environment a program ordinarily has to be something.py or something.pyw to be recognised as a Python program, whereas in Unix/Linux the interpreter is often identified by the "shebang" line (#!/usr/bin/python, or whatever). Get back to the list if none of hte FAQ advice helps. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.pycon.org ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Running a script
On 9/20/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Assuming your Python installation is viable (does typing "python" sansquotes at the command line launch the Python interpreter?), have you renamed the file from "rtf2xml" to "rtf2xml.py" as required to rununder MS Windows? I fear that may not be enough, he will have to try "python rtf2xml.py". Also scripts are installed in C:\Python24\Scripts, so unless rtf2xml comes with a batch file, and Scripts folder is in the path, he will have to either go to scripts folder of give complete path to python "python c:\python24\scripts\rtf2xmp.py args". -- Amit UpadhyayBlog: http://www.rootshell.be/~upadhyay+91-9867-359-701 ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Running a script
Hello Roger, Assuming your Python installation is viable (does typing "python" sans quotes at the command line launch the Python interpreter?), have you renamed the file from "rtf2xml" to "rtf2xml.py" as required to run under MS Windows? -- jv Hello Windows XP SP2. I am a Python novice. I downloaded an application called rtf2xml that converts RTF files to XML. I have Python 2.4 installed, and updated my path to include c:\python24. The application has the following folder structure: rtf2xml-1.2 (contains setup.py, which I have installed using the python setup.py install command) rtf2xml (contains a bunch of .py files) scripts (contains rtf2xml.py and a test file called hello_world.rtf) The documentation says that I should be in the command prompt window and simply type: rtf2xml hello_world.rtf I've tried this but I get various errors, such as: rtf2xml is not recognized as an internal or external command... python: can't open file...[errno 13] permission denied Please can someone tell me (i) what directory I have to be in, and (ii) what the command line should be? I tried from various folders, with and without "python" in front, but nothing works. Thanks. roger Roger ShuttleworthDocumentation Team LeadActivplant Corporation140 Fullarton Street, 9th FloorLondon, ON N6A 5P2 CanadaTel. 519 668-7336 Fax. 519 668-3227 www.activplant.com --- The information in this email is confidential and is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please contact [EMAIL PROTECTED] for cases where you have received this email and were not the intended recipient. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32 ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
[python-win32] Running a script
Hello Windows XP SP2. I am a Python novice. I downloaded an application called rtf2xml that converts RTF files to XML. I have Python 2.4 installed, and updated my path to include c:\python24. The application has the following folder structure: rtf2xml-1.2 (contains setup.py, which I have installed using the python setup.py install command) rtf2xml (contains a bunch of .py files) scripts (contains rtf2xml.py and a test file called hello_world.rtf) The documentation says that I should be in the command prompt window and simply type: rtf2xml hello_world.rtf I've tried this but I get various errors, such as: rtf2xml is not recognized as an internal or external command... python: can't open file...[errno 13] permission denied Please can someone tell me (i) what directory I have to be in, and (ii) what the command line should be? I tried from various folders, with and without "python" in front, but nothing works. Thanks. roger Roger ShuttleworthDocumentation Team LeadActivplant Corporation140 Fullarton Street, 9th FloorLondon, ON N6A 5P2 CanadaTel. 519 668-7336 Fax. 519 668-3227 www.activplant.com --- The information in this email is confidential and is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Please contact [EMAIL PROTECTED] for cases where you have received this email and were not the intended recipient. ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32