Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-05 Thread Rick Dooling
> Sorry for keeping you guys busy with such a mistake ;) No apologies necessary, especially since you reported the final outcome. Now anybody searching on that message will find a complete thread and a lesson learned. rick -- http://mail.python.org/mailman/listinfo/python-list

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-04 Thread Bruno Desthuilliers
dirkheld a écrit : >>How exactly are you starting the Python interpreter? "No such file or >>directory" on file creation can happen when you try to create a file >>in a directory that has ceased to exist: > > > Damn...now it's time to be ashamed. Because of my new installation of > leopard I use

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-04 Thread dirkheld
> How exactly are you starting the Python interpreter? "No such file or > directory" on file creation can happen when you try to create a file > in a directory that has ceased to exist: Damn...now it's time to be ashamed. Because of my new installation of leopard I used another computername. So

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread Hrvoje Niksic
dirkheld <[EMAIL PROTECTED]> writes: > I don't have a file called 'a_file.txt' > I want to create that file and write some data to it. How exactly are you starting the Python interpreter? "No such file or directory" on file creation can happen when you try to create a file in a directory that ha

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread Diez B. Roggisch
dirkheld wrote: > On 3 dec, 14:54, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> dirkheld wrote: >> > Hi, >> >> > I upgraded my system from tiger to leopard. With leopard came a new >> > version of python 2.5 >> >> > Now I trying to run some python code that previously worked on tiger >> > (whi

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread dirkheld
On 3 dec, 14:54, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > dirkheld wrote: > > Hi, > > > I upgraded my system from tiger to leopard. With leopard came a new > > version of python 2.5 > > > Now I trying to run some python code that previously worked on tiger > > (which included an older versio

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread Rick Dooling
On Dec 3, 7:47 am, dirkheld <[EMAIL PROTECTED]> wrote: > IOError: [Errno 2] No such file or directory: 'a_file.txt' I sometimes see that error on Linux when trying to run a script with DOS line endings. Is it an imported file? I don't know Macs, but start by making sure both your script and the f

Re: python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread Diez B. Roggisch
dirkheld wrote: > Hi, > > I upgraded my system from tiger to leopard. With leopard came a new > version of python 2.5 > > Now I trying to run some python code that previously worked on tiger > (which included an older version of python). > > This is the error I'm receiving : > > Traceback (mos

python 2.5 - f=open('a_file.txt','w') gives [Errno 2]

2007-12-03 Thread dirkheld
Hi, I upgraded my system from tiger to leopard. With leopard came a new version of python 2.5 Now I trying to run some python code that previously worked on tiger (which included an older version of python). This is the error I'm receiving : Traceback (most recent call last): File "test.py",