Re: Temat:, Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-25 Thread ryniek
On 25 Sie, 07:33, Dennis Lee Bieber wrote: > On Mon, 24 Aug 2009 14:23:41 -0700 (PDT), ryniek > declaimed the following in gmane.comp.python.general: > > > C:\Users\Ryniek's WinSe7en\Documents\My Dropbox\Aplikacje > > \Moje_aplikacje\Pythonowe_aplikacje\Skrypty>python ba > > ckuper.py -f E:\APLIK

Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread Tim Roberts
Ryniek90 wrote: > >Sorry, but i don't know where those pipes came from : P > >The proper path is "C:\\Users\\Ryniek's >WinSe7en\\MyNewGGBackup(2009-08-23 14:59:02).tar.bz2" >and that string literal is "\U", without any pipes :) > >The truth is that script works on linux (ubuntu) but not on windo

Re: Temat:,Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread Erik Max Francis
ryniek wrote: On 24 Sie, 22:34, ryniek wrote: On 24 Sie, 16:56, John Machin wrote: On Aug 25, 12:46 am, Tim Golden wrote: Dave Angel wrote: You still haven't gotten rid of those illegal colons in the filename. They're not legal in Windows, as has been pointed out a couple of times in th

Re: Temat:, Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread Dave Angel
You shouldn't want either a colon or a pipe symbol in the filename string (not counting the drive letter prefix). A single colon gives you surprising behavior, and two will give you Invalid Argument. See inline responses. ryniek wrote: On 24 Sie, 22:34, ryniek wrote: Ok, but ho

Re: Temat:, Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread ryniek
On 24 Sie, 22:34, ryniek wrote: > On 24 Sie, 16:56, John Machin wrote: > > > On Aug 25, 12:46 am, Tim Golden wrote: > > > > Dave Angel wrote: > > > > You still haven't gotten rid of those illegal colons in the filename.   > > > > They're not legal in Windows, as has been pointed out a couple of

Re: Temat:, Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread ryniek
On 24 Sie, 16:56, John Machin wrote: > On Aug 25, 12:46 am, Tim Golden wrote: > > > Dave Angel wrote: > > > You still haven't gotten rid of those illegal colons in the filename.   > > > They're not legal in Windows, as has been pointed out a couple of times > > > in this thread. > > > Ummm.. Colo

Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread Stephen Hansen
> > The proper path is "C:\\Users\\Ryniek's > WinSe7en\\MyNewGGBackup(2009-08-23 14:59:02).tar.bz2" > and that string literal is "\U", without any pipes :) > > The truth is that script works on linux (ubuntu) but not on windows > (neither Win7 nor WinXP). > Maybe it's good idea to use raw string f

Re: Temat:, Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread John Machin
On Aug 25, 12:46 am, Tim Golden wrote: > Dave Angel wrote: > > You still haven't gotten rid of those illegal colons in the filename.   > > They're not legal in Windows, as has been pointed out a couple of times > > in this thread. > > Ummm.. Colons are of course legal in Windows filenames as desig

Re: Temat:,Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread Tim Golden
Dave Angel wrote: You still haven't gotten rid of those illegal colons in the filename. They're not legal in Windows, as has been pointed out a couple of times in this thread. Ummm.. Colons are of course legal in Windows filenames as designating the Alternate Data Streams: with open ("c:/t

Re: Temat:,Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread Dave Angel
Ryniek90 wrote: John Machin wrote: Erik Max Francis alcyone.com> writes: I also suspect the "pipe" symbol. I don't know if it's an invalid character to Windows, but it's certainly a bad idea. The '|' character means something special to the shell. The "pipe" character

IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread Ryniek90
>> John Machin wrote: >>> Erik Max Francis alcyone.com> writes: >> I also suspect the "pipe" symbol. I don't know if it's an invalid >> character to Windows, but it's certainly a bad idea. The '|' character >> means something special to the shell. > The "pipe" character is not a valid charact

Temat:,Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-24 Thread Ryniek90
John Machin wrote: Erik Max Francis alcyone.com> writes: I also suspect the "pipe" symbol. I don't know if it's an invalid character to Windows, but it's certainly a bad idea. The '|' character means something special to the shell. The "pipe" character is not a vali

Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-23 Thread John Machin
Dave Angel ieee.org> writes: > John Machin wrote: > > Erik Max Francis alcyone.com> writes: > I also suspect the "pipe" symbol. I don't know if it's an invalid > character to Windows, but it's certainly a bad idea. The '|' character > means something special to the shell. The "pipe" cha

Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-23 Thread Dave Angel
John Machin wrote: Erik Max Francis alcyone.com> writes: Ryniek90 wrote: Is its the '|\U' literal fault in path '|C:\\Users\\Ryniek's WinSe7en\\MyNewGGBackup(2009-08-23 14:59:02).tar.bz2|' ? What is "the '|\U' literal fault" ??? It's probably a misleading error from

Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-23 Thread John Machin
Erik Max Francis alcyone.com> writes: > > Ryniek90 wrote: > > Is its the '|\U' literal fault in path '|C:\\Users\\Ryniek's > > WinSe7en\\MyNewGGBackup(2009-08-23 14:59:02).tar.bz2|' ? What is "the '|\U' literal fault" ??? > > It's probably a misleading error from the OS; I would guess the p

Re: IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-23 Thread Erik Max Francis
Ryniek90 wrote: I've got my backup script which opens tarfile for add chosen file to it. But while setting it up, i've got Traceback: here's the url: -->http://paste.ubuntu.com/258081/<-- I have searched among google's result but didn't found anything useful. Only found info that it may be the

IOError: [Errno 22] invalid mode ('wb') or filename: in windows xp while making tarfile

2009-08-23 Thread Ryniek90
Hi I've got my backup script which opens tarfile for add chosen file to it. But while setting it up, i've got Traceback: here's the url: -->http://paste.ubuntu.com/258081/<-- I have searched among google's result but didn't found anything useful. Only found info that it may be the backslashes