Re: IOError:[Errno 27] File too large

2013-03-14 Thread Dave Angel
On 03/14/2013 04:12 PM, ch.valdera...@gmail.com wrote: Taking a wild guess, I think that you are using a Samba share on a Linux server. A file "FILENAME.xml;" was accidentally creating on this share from the Linux filesystem layer, since Linux will allow you to use semicolons in file names.

Re: IOError:[Errno 27] File too large

2013-03-14 Thread ch . valderanis
> Taking a wild guess, I think that you are using a Samba share on a Linux > > server. A file "FILENAME.xml;" was accidentally creating on this share > > from the Linux filesystem layer, since Linux will allow you to use > > semicolons in file names. But samba enforces the same restrictions

Re: IOError:[Errno 27] File too large

2013-03-13 Thread Steven D'Aprano
On Wed, 13 Mar 2013 15:35:19 -0700, ch.valderanis wrote: > Traceback (most recent call last): > File "createsubmitfiles.py", line 12, in > newfile=open(newname,'w') > IOError: [Errno 27] File too large: 'FILENAME.sub;' > > I have chang

Re: IOError:[Errno 27] File too large

2013-03-13 Thread ch . valderanis
dvice: Here it the error: Traceback (most recent call last): File "createsubmitfiles.py", line 12, in newfile=open(newname,'w') IOError: [Errno 27] File too large: 'FILENAME.sub;' I have changed the actual filename reported by the traceback. FILENAME.xml does exist befor

Re: IOError:[Errno 27] File too large

2013-03-13 Thread Steven D'Aprano
On Wed, 13 Mar 2013 09:53:17 -0700, ch.valderanis wrote: > Hi, > > Relatively newcomer here. > The following code fails with the above error: python version used 2.6.2 > under linux Which part of the code fails? Please copy and paste the entire traceback, starting with the line "Traceback (most

IOError:[Errno 27] File too large

2013-03-13 Thread ch . valderanis
Hi, Relatively newcomer here. The following code fails with the above error: python version used 2.6.2 under linux filestring='somestring' for files in glob.glob('*'): f2=open(files.replace('.xml','.sub'),'w') f2.write(filestring+files) f2.close() The glob commands retur