Re: speech_to_text python command not working
With that information, my guess would be that the way the web service reports errors has changed, and the Python library is failing to handle errors nicely for you, but the basic functionality still works. So that's somewhat good news, as you can at least handle anything that *would* work, even if it's going to be hard to understand the reason for failures without a friendly message like "File too big"... On 18 September 2017 at 10:09, pizza pythonwrote: >Hi all. I tried the same command with a different, smaller file. This file >is a 90-kilobyte ogg file. The other one was a 26-megabyte ogg file. > >Wtih this smaller file, there was no error. > > > speech_to_text -u myUsername -p myPassword -f html -i audio-file.ogg >transcript.html >Starting Upload. > > [===] >100% >Upload finished. Waiting for Transcript >Speech > Text finished. > > >In the same folder as the ogg file was an html file with the transcript. >So I guess the python command works some times. I'm still not sure if it >just doesn't work on large files. > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list
Re: speech_to_text python command not working
Hi all. I tried the same command with a different, smaller file. This file is a 90-kilobyte ogg file. The other one was a 26-megabyte ogg file. Wtih this smaller file, there was no error. speech_to_text -u myUsername -p myPassword -f html -i audio-file.ogg transcript.html Starting Upload. [===] 100% Upload finished. Waiting for Transcript Speech > Text finished. In the same folder as the ogg file was an html file with the transcript. So I guess the python command works some times. I'm still not sure if it just doesn't work on large files. -- https://mail.python.org/mailman/listinfo/python-list
Re: speech_to_text python command not working
On Mon, Sep 18, 2017 at 1:11 AM, Paul wrote: On 18 September 2017 at 09:03, pizza python wrote: > Your error occurs because what the "external service" has delivered > it not what "speech-to-text" has expected. More precisely, > "speech-to-text" has excepted as result a dict with a "results" key -- > but this is missing (likely because some input is wrong or there > is a version mismatch between your "speech-to-text" and the "external > service"). > > >Someone else also thought there is a version mismatch between the >"speech-to-text" and the "external service". The external service has been >update four times since the "speech-to-text" library was put together. So it's pretty likely you need a new version of the "speech-to-text" library. Hi, Paul. Thanks for your reply. Appreciate it a lot. I've informed the developer of this issue on both his blog and his github. Hope he can update his "speech-to-text" library to make it work with IBM Watson. It was so good when it was working that the lead of the "developer advocacy team" at IBM Watson reached out to him! > I expect that the "data" mentioned in the traceback above contains > some clues for what went wrong. I would use the Python debugger > to investigate along these lines. As you are not yourself a Python > programmer, find one in your region to support you. > > >Could someone kindly advise how to use "the Python debugger"? [1]https://docs.python.org/3.6/library/pdb.html - but I would reiterate the advice that if you're not a programmer, you should get someone who is to assist you with this, as the debugger will not be easy to use without programming experience (and fixing the problem even more so). Thanks for your sound advice. As I'm already quite overwhelmed with this error as it is, I'll recognize my current limitations and seek help from the more experienced. Thanks References Visible links 1. https://docs.python.org/3.6/library/pdb.html -- https://mail.python.org/mailman/listinfo/python-list
Re: speech_to_text python command not working
On 18 September 2017 at 09:03, pizza pythonwrote: > Your error occurs because what the "external service" has delivered > it not what "speech-to-text" has expected. More precisely, > "speech-to-text" has excepted as result a dict with a "results" key -- > but this is missing (likely because some input is wrong or there > is a version mismatch between your "speech-to-text" and the "external > service"). > > >Someone else also thought there is a version mismatch between the >"speech-to-text" and the "external service". The external service has been >update four times since the "speech-to-text" library was put together. So it's pretty likely you need a new version of the "speech-to-text" library. > I expect that the "data" mentioned in the traceback above contains > some clues for what went wrong. I would use the Python debugger > to investigate along these lines. As you are not yourself a Python > programmer, find one in your region to support you. > > >Could someone kindly advise how to use "the Python debugger"? https://docs.python.org/3.6/library/pdb.html - but I would reiterate the advice that if you're not a programmer, you should get someone who is to assist you with this, as the debugger will not be easy to use without programming experience (and fixing the problem even more so). Paul -- https://mail.python.org/mailman/listinfo/python-list
Re: speech_to_text python command not working
Speech to text conversion is not a pure Python solution. It must be based on some kind of "external service". From the details you have provided, it looks like some web service. Yes, you are right. It's based on IBM Watson's web/cloud service. Your error occurs because what the "external service" has delivered it not what "speech-to-text" has expected. More precisely, "speech-to-text" has excepted as result a dict with a "results" key -- but this is missing (likely because some input is wrong or there is a version mismatch between your "speech-to-text" and the "external service"). Someone else also thought there is a version mismatch between the "speech-to-text" and the "external service". The external service has been update four times since the "speech-to-text" library was put together. I expect that the "data" mentioned in the traceback above contains some clues for what went wrong. I would use the Python debugger to investigate along these lines. As you are not yourself a Python programmer, find one in your region to support you. Could someone kindly advise how to use "the Python debugger"? -- https://mail.python.org/mailman/listinfo/python-list
Re: speech_to_text python command not working
"pizza python"writes: >I'm on Linux Mint 18.2 Cinnamon 64-bit. > >I am trying to get IBM Watson BlueMix Speech-To-Text to transcribe my >spoken-word audio files. Because I'm not a coder, I tried to find the >simplest way to use BlueMix Speech-to-Text. And what I found >is [1]https://github.com/rmotr/speech-to-text > ... Traceback (most recent call last): > ... > speech_to_text formatted_output = FormatterClass().format(result) File > "/usr/local/lib/python2.7/dist-packages/speech_to_text/formatters.py", line > 36, > in format for obj in self._parse(data)) File > "/usr/local/lib/python2.7/dist-packages/speech_to_text/formatters.py", line > 10, > in _parse for obj in data[`results']) KeyError: `results' > ... >__ > >I was expecting an html with the transcript. So why did I get the errors >above? Speech to text conversion is not a pure Python solution. It must be based on some kind of "external service". From the details you have provided, it looks like some web service. Your error occurs because what the "external service" has delivered it not what "speech-to-text" has expected. More precisely, "speech-to-text" has excepted as result a dict with a "results" key -- but this is missing (likely because some input is wrong or there is a version mismatch between your "speech-to-text" and the "external service"). I expect that the "data" mentioned in the traceback above contains some clues for what went wrong. I would use the Python debugger to investigate along these lines. As you are not yourself a Python programmer, find one in your region to support you. -- https://mail.python.org/mailman/listinfo/python-list
speech_to_text python command not working
Hello all. I'm on Linux Mint 18.2 Cinnamon 64-bit. I am trying to get IBM Watson BlueMix Speech-To-Text to transcribe my spoken-word audio files. Because I'm not a coder, I tried to find the simplest way to use BlueMix Speech-to-Text. And what I found is [1]https://github.com/rmotr/speech-to-text It's in PyPi Libary: https://pypi.python.org/pypi/speech-to-text/0.0.1 Step 1: "pip install speech-to-text". I ran it with sudo to make it work. Step 2: I then ran: speech_to_text -u myUserNameGoesHere -p myPasswordGoesHere -f html -i voice2.ogg transcript.html Starting Upload. [=] 100% Upload finished. Waiting for Transcript Traceback (most recent call last): File "/usr/local/bin/speech_to_text", line 11, in sys.exit(speech_to_text()) File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/speech_to_text/command.py", line 60, in speech_to_text formatted_output = FormatterClass().format(result) File "/usr/local/lib/python2.7/dist-packages/speech_to_text/formatters.py", line 36, in format for obj in self._parse(data)) File "/usr/local/lib/python2.7/dist-packages/speech_to_text/formatters.py", line 10, in _parse for obj in data[`results']) KeyError: `results' __ I was expecting an html with the transcript. So why did I get the errors above? python Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 __ dpkg -l python Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==---= ii python 2.7.11-1 amd64interactive high-level object-ori python3 Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux dpkg -l python3 Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==---= ii python33.5.1-3 amd64interactive high-level object-ori References Visible links 1. https://github.com/rmotr/speech-to-text -- https://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On Friday, August 14, 2015 at 6:13:37 AM UTC-5, sam.h...@gmail.com wrote: On Wednesday, April 22, 2009 at 8:36:21 AM UTC+1, David Cournapeau wrote: On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python snip You can do it easily by adding the Python path (in my case C:\Python27) to your system PATH. This thread is 6 years old, OP has probably gone on to other things... -- https://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On Wednesday, April 22, 2009 at 8:36:21 AM UTC+1, David Cournapeau wrote: On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an internal command, external command, program, or command file. The installer does not add the path of python into your %PATH% variable, You have to do it manually or call the full command path (C:\Python25\python.exe or something) David You can do it easily by adding the Python path (in my case C:\Python27) to your system PATH. Simply go to Control Panel System Advanced system settings, select 'Advanced' tab, click 'Environment Variables'. There you need to add the path to Python (C:\Python27) to the Path BOTH: - User variables and - System variables For each one click 'Edit' and paste the path (C:\Python27) at the end of the line with a ';' to separate it Restart your shell window and it should work! -- https://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On 23 Apr, 02:25, Dave Angel da...@ieee.org wrote: 83nini wrote: Christian, at last i made the bat file (python25.bat) that contains the following contents: --- @C:\Python25\python.exe %* --- could you tell me how to call python25 in the batch files? what batch files do you mean? where do i find them? Your original question was how to get an interactive interpreter from a command prompt. There are at least 3 ways: 1) just specify the full path to the executable on the command line e:\mysource\ c:\python25\python.exe 2) add c:\python25 to your PATH, either by using the SET statement, or control panel. then you'll be able to just use: e:\mysource\ python 3) create a batch file in a directory on your PATH #3 is probably the best way. You've created that batch file, now just use it. e:\mysource\ python25 The remark about using call python25 refers only to the case where you write additional batch files that use this one. Since you're not likely to, don't worry about it yet. If typing python25 in a command box doesn't work, then you don't have that file on the PATH. If that's the case, tell us exactly where the file is. Thanks a million, it worked. :D -- http://mail.python.org/mailman/listinfo/python-list
python command not working
Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an internal command, external command, program, or command file. anybody has a clue how do i solve this? thanks in advance, cheers, Lina -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an internal command, external command, program, or command file. The installer does not add the path of python into your %PATH% variable, You have to do it manually or call the full command path (C:\Python25\python.exe or something) David -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On 22 Apr, 09:36, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an internal command, external command, program, or command file. The installer does not add the path of python into your %PATH% variable, You have to do it manually or call the full command path (C:\Python25\python.exe or something) David thanks for the tip, how do i add the path of python into my %PATH%? -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
83nini 83n...@gmail.com writes: I'm new to python, i downloaded version 2.5 What exactly did you download? Give us the URL to the file if possible. opened windows (vista) command line and wrote python The Python interpreter and libraries, like any other application, needs to be installed into your system before you can start using it properly. If you only downloaded it, then it's just bits in a file, nothing more. Did you run the installer? -- \ “If you're not part of the solution, you're part of the | `\ precipitate.” —Steven Wright | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On Wed, Apr 22, 2009 at 4:44 PM, 83nini 83n...@gmail.com wrote: thanks for the tip, how do i add the path of python into my %PATH%? From the command line (and from memory, I don't use windows regularly): set PATH=C:\python25;%PATH% And you can set it up permanently in the advanced settings panel of windows (the one where you set up things like amount of swap, restoration and the likes, I don't know the exact name in English) David -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On 22 Apr, 09:59, Ben Finney ben+pyt...@benfinney.id.au wrote: 83nini 83n...@gmail.com writes: I'm new to python, i downloaded version 2.5 What exactly did you download? Give us the URL to the file if possible. opened windows (vista) command line and wrote python The Python interpreter and libraries, like any other application, needs to be installed into your system before you can start using it properly. If you only downloaded it, then it's just bits in a file, nothing more. Did you run the installer? -- \ “If you're not part of the solution, you're part of the | `\ precipitate.” —Steven Wright | _o__) | Ben Finney yes i did -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
--- On Wed, 4/22/09, karlos barlos karlosbar...@yahoo.com wrote: From: karlos barlos karlosbar...@yahoo.com Subject: Re: python command not working To: Ben Finney ben+pyt...@benfinney.id.au Date: Wednesday, April 22, 2009, 3:05 AM look for envaroment variables__ in system menu__path_paste the python path in ___- done i recomend you add scripts too ... -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On 22 Apr, 10:04, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 4:44 PM, 83nini 83n...@gmail.com wrote: thanks for the tip, how do i add the path of python into my %PATH%? From the command line (and from memory, I don't use windows regularly): set PATH=C:\python25;%PATH% And you can set it up permanently in the advanced settings panel of windows (the one where you set up things like amount of swap, restoration and the likes, I don't know the exact name in English) David thanks David, the PATH=C:\python25;%PATH% worked, but i still don't know how to do it perminantly -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
83nini wrote: On 22 Apr, 10:04, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 4:44 PM, 83nini 83n...@gmail.com wrote: thanks for the tip, how do i add the path of python into my %PATH%? From the command line (and from memory, I don't use windows regularly): set PATH=C:\python25;%PATH% And you can set it up permanently in the advanced settings panel of windows (the one where you set up things like amount of swap, restoration and the likes, I don't know the exact name in English) David thanks David, the PATH=C:\python25;%PATH% worked, but i still don't know how to do it perminantly Well you can do by selecting [System] from the Control Panel, selecting the [Advanced] tab, the [Environment Variables] button and then finding the PATH (user or system) and editing it in the agonisingly small edit control which doesn't seem to have changed since Windows 3.1. (He says, exaggerating only a little)... ... or, I was going to say, you could run Christian Heimes' win_add2path.py script which is in c:\python26\lib\tools. Except that it wasn't added until python26 and uses _winreg.ExpandEnvironmentStrings which also wasn't added until then. (I think). But for anyone else still watching the show... TJG -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On 22 Apr, 10:31, Tim Golden m...@timgolden.me.uk wrote: 83nini wrote: On 22 Apr, 10:04, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 4:44 PM, 83nini 83n...@gmail.com wrote: thanks for the tip, how do i add the path of python into my %PATH%? From the command line (and from memory, I don't use windows regularly): set PATH=C:\python25;%PATH% And you can set it up permanently in the advanced settings panel of windows (the one where you set up things like amount of swap, restoration and the likes, I don't know the exact name in English) David thanks David, the PATH=C:\python25;%PATH% worked, but i still don't know how to do it perminantly Well you can do by selecting [System] from the Control Panel, selecting the [Advanced] tab, the [Environment Variables] button and then finding the PATH (user or system) and editing it in the agonisingly small edit control which doesn't seem to have changed since Windows 3.1. (He says, exaggerating only a little)... ... or, I was going to say, you could run Christian Heimes' win_add2path.py script which is in c:\python26\lib\tools. Except that it wasn't added until python26 and uses _winreg.ExpandEnvironmentStrings which also wasn't added until then. (I think). But for anyone else still watching the show... TJG- Dölj citerad text - - Visa citerad text - thanks guyz for the nice info -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
David Cournapeau schrieb: On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an internal command, external command, program, or command file. The installer does not add the path of python into your %PATH% variable, You have to do it manually or call the full command path (C:\Python25\python.exe or something) I highly recommend against adding C:\Python25 to your %PATH%. You can get the same effect by adding a simple bat file to C:\Windows\System32 --- @C:\Python25\python.exe %* --- Call it python25.bat and you are done. Apropos call, don't forget to call python25 in batch files. :) Christian -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On 22 Apr, 11:24, Christian Heimes li...@cheimes.de wrote: David Cournapeau schrieb: On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an internal command, external command, program, or command file. The installer does not add the path of python into your %PATH% variable, You have to do it manually or call the full command path (C:\Python25\python.exe or something) I highly recommend against adding C:\Python25 to your %PATH%. You can get the same effect by adding a simple bat file to C:\Windows\System32 --- @C:\Python25\python.exe %* --- Call it python25.bat and you are done. Apropos call, don't forget to call python25 in batch files. :) Christian THIS IS REALLY KILLING ME!!! i've been trying everything you adviced me to do, none works!!! all i want to do is to type python in the cmd and get the python command line i want to run a server writing python manage.py runserver that is not working either, of course cos python command is not working. is this one of the stupid things that vista causes? or what??? -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On 22 Apr, 12:06, 83nini 83n...@gmail.com wrote: On 22 Apr, 11:24, Christian Heimes li...@cheimes.de wrote: David Cournapeau schrieb: On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an internal command, external command, program, or command file. The installer does not add the path of python into your %PATH% variable, You have to do it manually or call the full command path (C:\Python25\python.exe or something) I highly recommend against adding C:\Python25 to your %PATH%. You can get the same effect by adding a simple bat file to C:\Windows\System32 --- @C:\Python25\python.exe %* --- Call it python25.bat and you are done. Apropos call, don't forget to call python25 in batch files. :) Christian THIS IS REALLY KILLING ME!!! i've been trying everything you adviced me to do, none works!!! all i want to do is to type python in the cmd and get the python command line i want to run a server writing python manage.py runserver that is not working either, of course cos python command is not working. is this one of the stupid things that vista causes? or what???- Dölj citerad text - - Visa citerad text - Ok, it's not killing me anymore :P I uninstalled python and reinstalled it again, and now it's working -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On Wed, Apr 22, 2009 at 6:24 PM, Christian Heimes li...@cheimes.de wrote: I highly recommend against adding C:\Python25 to your %PATH%. You can get the same effect by adding a simple bat file to C:\Windows\System32 I am curious, what's the difference ? And does this work if you want to add it to your user PATH (not the system one) ? David -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
David Cournapeau schrieb: On Wed, Apr 22, 2009 at 6:24 PM, Christian Heimes li...@cheimes.de wrote: I highly recommend against adding C:\Python25 to your %PATH%. You can get the same effect by adding a simple bat file to C:\Windows\System32 I am curious, what's the difference ? And does this work if you want to add it to your user PATH (not the system one) ? My way doesn't add the dlls to the search path. It allows you to have multiple python commands at once, too. I have shortcuts for python24, python25 and python26 on my Windows box. Christian -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes li...@cheimes.de wrote: My way doesn't add the dlls to the search path. It allows you to have multiple python commands at once, too. I have shortcuts for python24, python25 and python26 on my Windows box. Ah, thanks, that's really useful. I need this too, and did it the unix way, which did not work so well for various reasons. This is much better, David -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On 22 Apr, 13:45, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes li...@cheimes.de wrote: My way doesn't add the dlls to the search path. It allows you to have multiple python commands at once, too. I have shortcuts for python24, python25 and python26 on my Windows box. Ah, thanks, that's really useful. I need this too, and did it the unix way, which did not work so well for various reasons. This is much better, David Excuse me guys, could you please help me and tell me step by step how to make the bat file that Christian is talking about and save it in the System32? I'm trying to save anything there but it's not working, though i'm the administrator, vista keeps telling me that i can't save anything to the system32 folder and that i have to contact my admin. in order to fix it! thanks for the help. cheers, Lina -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
On 22 Apr, 16:23, 83nini 83n...@gmail.com wrote: On 22 Apr, 13:45, David Cournapeau courn...@gmail.com wrote: On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes li...@cheimes.de wrote: My way doesn't add the dlls to the search path. It allows you to have multiple python commands at once, too. I have shortcuts for python24, python25 and python26 on my Windows box. Ah, thanks, that's really useful. I need this too, and did it the unix way, which did not work so well for various reasons. This is much better, David Excuse me guys, could you please help me and tell me step by step how to make the bat file that Christian is talking about and save it in the System32? I'm trying to save anything there but it's not working, though i'm the administrator, vista keeps telling me that i can't save anything to the system32 folder and that i have to contact my admin. in order to fix it! thanks for the help. cheers, Lina Christian, at last i made the bat file (python25.bat) that contains the following contents: --- @C:\Python25\python.exe %* --- could you tell me how to call python25 in the batch files? what batch files do you mean? where do i find them? -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
83nini wrote: ... at last i made the bat file (python25.bat) that contains the following contents: --- @C:\Python25\python.exe %* --- could you tell me how to call python25 in the batch files? what batch files do you mean? where do i find them? python25.bat or python25.cmd are acceptable names for that file. Assuming you have a command window, if you enter the command, C:\WhereEver echo %path% you will see a semicolon-separated list of directories. Put the file in any of the directories on that list. You should then be able to use the command: C:\WhereEver python25 whatever Personally, I would use the name python25.cmd, but that may just be superstition on my part about the difference between .bat and .cmd files. --Scott David Daniels scott.dani...@acm.org -- http://mail.python.org/mailman/listinfo/python-list
Re: python command not working
83nini wrote: Christian, at last i made the bat file (python25.bat) that contains the following contents: --- @C:\Python25\python.exe %* --- could you tell me how to call python25 in the batch files? what batch files do you mean? where do i find them? Your original question was how to get an interactive interpreter from a command prompt. There are at least 3 ways: 1) just specify the full path to the executable on the command line e:\mysource\ c:\python25\python.exe 2) add c:\python25 to your PATH, either by using the SET statement, or control panel. then you'll be able to just use: e:\mysource\ python 3) create a batch file in a directory on your PATH #3 is probably the best way. You've created that batch file, now just use it. e:\mysource\ python25 The remark about using call python25 refers only to the case where you write additional batch files that use this one. Since you're not likely to, don't worry about it yet. If typing python25 in a command box doesn't work, then you don't have that file on the PATH. If that's the case, tell us exactly where the file is. -- http://mail.python.org/mailman/listinfo/python-list