creating a tar file with python

Brian McCann Brian.McCann at viziant.net
Thu Aug 23 23:27:33 EDT 2007


 
<mailto:brian.mccann at viziant.net> 
Steve,
 
I ran the code as you suggested, didn't work, tried variations of it didn't work,
If you don't know the answer don't pretend you do!

Apology not accepted, please don't wake up!

Future correspondence on any python questions from you go to trash.
May your pillow not have pity on your head!
 
--Brian
 

________________________________

From: Steve Holden [mailto:steve at holdenweb.com]
Sent: Thu 8/23/2007 11:15 PM
To: Brian McCann
Cc: python-list at python.org
Subject: Re: creating a tar file with python



Brian McCann wrote:
>
> Hi,
> 
> I'm now getting this error
> any ideas?
> Thanks,
> Brian
>
>
> Traceback (most recent call last):
>   File "./tarup.py", line 25, in ?
>     tar = tarfile.open("test.xml","sample.tar.gz", 'w:gz')
>   File "/usr/lib64/python2.4/tarfile.py", line 929, in open
>     raise ValueError, "undiscernible mode"
> ValueError: undiscernible mode
> ############################################################
> #!/usr/bin/python
> import string
> import os
> import sys
> import time
> import errno
> import shutil
> import tarfile
>
> tar = tarfile.open(test.xml","sample.tar.gz", 'w:gz')
> 
Well, my first idea is that you took the time to think beyond the
mistake exhibited in your first response. But since a soft mattress is
currently looking about a hundred times more attractive than actually
trying to debug your code I am sorry to tell you I am going to punt on
this one and trust that some other c.l.py netizen will take pity on you
and probably help you with less crabby comments than me. Good luck!

regards
  Steve
--
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070823/49c56df1/attachment.html>


More information about the Python-list mailing list