python command not working

2009-04-22 Thread 83nini
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

2009-04-22 Thread 83nini
On 22 Apr, 09:36, 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

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

2009-04-22 Thread 83nini
On 22 Apr, 09:59, Ben Finney  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

2009-04-22 Thread 83nini
On 22 Apr, 10:04, David Cournapeau  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

2009-04-22 Thread 83nini
On 22 Apr, 10:31, Tim Golden  wrote:
> 83nini wrote:
> > On 22 Apr, 10:04, David Cournapeau  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

2009-04-22 Thread 83nini
On 22 Apr, 11:24, Christian Heimes  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

2009-04-22 Thread 83nini
On 22 Apr, 12:06, 83nini <83n...@gmail.com> wrote:
> On 22 Apr, 11:24, Christian Heimes  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

2009-04-22 Thread 83nini
On 22 Apr, 13:45, David Cournapeau  wrote:
> On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes  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

2009-04-22 Thread 83nini
On 22 Apr, 16:23, 83nini <83n...@gmail.com> wrote:
> On 22 Apr, 13:45, David Cournapeau  wrote:
>
> > On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes  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

2009-04-23 Thread 83nini
On 23 Apr, 02:25, Dave Angel  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 not importing mysqldb

2009-04-24 Thread 83nini
hi guys,

i've been sweating the whole day trying to make python work with mysql
but in vain!
i'm doing the following:
1. visiting http://sourceforge.net/projects/mysql-python
2. dowloading mysql-python-test-1.2.3c1
3. extracting the files to C:\Python26\Lib\site-packages
4. writing "import MySQLdb" in the python prompt

getting

Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python26\lib\site-packages\MySQLdb\__init__.py", line 19,
in 

import _mysql
ImportError: No module named _mysql

WHY Y
why does it have to be so complicated what am i doing wrong for
god's sake?


thanks in advance,
cheers,
Lina
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python not importing mysqldb

2009-04-25 Thread 83nini
On 25 Apr, 18:35, Marco Bizzarri  wrote:
> On Fri, Apr 24, 2009 at 10:04 PM, 83nini <83n...@gmail.com> wrote:
> > hi guys,
>
> > i've been sweating the whole day trying to make python work with mysql
> > but in vain!
> > i'm doing the following:
> > 1. visitinghttp://sourceforge.net/projects/mysql-python
> > 2. dowloading mysql-python-test-1.2.3c1
> > 3. extracting the files to C:\Python26\Lib\site-packages
> > 4. writing "import MySQLdb" in the python prompt
>
> > getting
>
> > Traceback (most recent call last):
> >  File "", line 1, in 
> >  File "C:\Python26\lib\site-packages\MySQLdb\__init__.py", line 19,
> > in 
>
> >    import _mysql
> > ImportError: No module named _mysql
>
> > WHY Y
> > why does it have to be so complicated what am i doing wrong for
> > god's sake?
>
> Suggestion: install python2.5 for windows, and then download this one:
>
> http://sourceforge.net/project/downloading.php?group_id=22307&filenam...
>
> I'm sure you'll save yourself a lot of time.
>
> Regards
> Marco
>
> --
> Marco 
> Bizzarrihttp://notenotturne.blogspot.com/http://iliveinpisa.blogspot.com/- 
> Dölj citerad text -
>
> - Visa citerad text -

Thanx guys for the helpful information, i did as Marco suggested and
it worked.
FINAY :D

cheers,
Lina
--
http://mail.python.org/mailman/listinfo/python-list