[ python-Bugs-1362587 ] Problem with tapedevices and the tarfile module
Bugs item #1362587, was opened at 2005-11-21 08:44 Message generated for change (Comment added) made by gustaebel You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1362587&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 7 Submitted By: Henrik (esshenrik) Assigned to: Nobody/Anonymous (nobody) Summary: Problem with tapedevices and the tarfile module Initial Comment: Problem to read a archive from tape that was created with the tarfile module in python. Error: >>> tar = tarfile.open("/dev/st0", "r") Traceback (most recent call last): File "", line 1, in ? File "/usr/local/lib/python2.4/tarfile.py", line 916, in open return func(name, "r", fileobj) File "/usr/local/lib/python2.4/tarfile.py", line 933, in taropen return cls(name, mode, fileobj) File "/usr/local/lib/python2.4/tarfile.py", line 811, in __init__ fileobj = file(self.name, self.mode) IOError: [Errno 16] Device or resource busy: '/dev/st0' I was creating the archive with succes: >>> tar.close() >>> tar = tarfile.open("/dev/st0", "w") >>> tar.add("/tmp/bin1.tar") >>> tar.add("/tmp/bin2.tar") >>> tar.close() >>> When I try to read the tape without pyton the folowing error: [EMAIL PROTECTED] tmp]# tar tvbf 20 /dev/st0 tar: Record size = 8 blocks -rw-r--r-- root/root 128614400 2005-11-20 19:53:11 tmp/bin1.tar tar: /dev/st0: Cannot read: Cannot allocate memory tar: /dev/st0: Cannot read: Cannot allocate memory tar: /dev/st0: Cannot read: Cannot allocate memory tar: /dev/st0: Cannot read: Cannot allocate memory tar: /dev/st0: Cannot read: Cannot allocate memory tar: /dev/st0: Cannot read: Cannot allocate memory tar: /dev/st0: Cannot read: Cannot allocate memory .. Can anyone help me with this problem or have another module for tarfile that works with tapedevices? /Henrik -- Comment By: Lars Gustäbel (gustaebel) Date: 2005-11-21 09:40 Message: Logged In: YES user_id=642936 Could try and use tarfile's stream interface for writing and reading and see if that works? Just append a pipe symbol to the mode, e.g.: tar = tarfile.open("/dev/st0", "w|") -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1362587&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1363104 ] spawnlp is missing
Bugs item #1363104, was opened at 2005-11-21 15:16 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1363104&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: Greg MacDonald (gtm256) Assigned to: Nobody/Anonymous (nobody) Summary: spawnlp is missing Initial Comment: spawnlp is missing from my os module. I am running 2.4.2 on windows 2000. >>> dir(os) ['F_OK', 'O_APPEND', 'O_BINARY', 'O_CREAT', 'O_EXCL', ' O_NOINHERIT', 'O_RANDOM', 'O_RDONLY', 'O_RDWR', 'O_SEQU ENTIAL', 'O_SHORT_LIVED', 'O_TEMPORARY', 'O_TEXT', 'O_T RUNC', 'O_WRONLY', 'P_DETACH', 'P_NOWAIT', 'P_NOWAITO', 'P_OVERLAY', 'P_WAIT', 'R_OK', 'TMP_MAX', 'UserDict', 'W_OK', 'X_OK', '_Environ', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '_copy_reg', '_execv pe', '_exists', '_exit', '_get_exports_list', '_make_st at_result', '_make_statvfs_result', '_pickle_stat_resul t', '_pickle_statvfs_result', 'abort', 'access', 'altse p', 'chdir', 'chmod', 'close', 'curdir', 'defpath', 'de vnull', 'dup', 'dup2', 'environ', 'error', 'execl', 'ex ecle', 'execlp', 'execlpe', 'execv', 'execve', 'execvp' , 'execvpe', 'extsep', 'fdopen', 'fstat', 'fsync', 'get cwd', 'getcwdu', 'getenv', 'getpid', 'isatty', 'linesep ', 'listdir', 'lseek', 'lstat', 'makedirs', 'mkdir', 'n ame', 'open', 'pardir', 'path', 'pathsep', 'pipe', 'pop en', 'popen2', 'popen3', 'popen4', 'putenv', 'read', 'r emove', 'removedirs', 'rename', 'renames', 'rmdir', 'se p', 'spawnl', 'spawnle', 'spawnv', 'spawnve', 'startfil e', 'stat', 'stat_float_times', 'stat_result', 'statvfs _result', 'strerror', 'sys', 'system', 'tempnam', 'time s', 'tmpfile', 'tmpnam', 'umask', 'unlink', 'unsetenv', 'urandom', 'utime', 'waitpid', 'walk', 'write'] -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1363104&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com