search for: shutil

Displaying 20 results from an estimated 41 matches for "shutil".

2019 Sep 21
4
Samba 4.11 "Stale file handle"
...temp fail when run against samba cifs mounts. Before I submit a bug report, could someone else try this out so it's not just my setup? How to reproduce: 1. Mount a Samba 4.11 share using the mount command: mount //server1/share /tmp/share1 2. Run python script that is using mkstemp: import shutil import tempfile tmp_dest_fd, tmp_dest_name = tempfile.mkstemp(prefix=b'.file_tmp', dir='/tmp/share1', suffix='test.pdf') shutil.move('testfile', tmp_dest_name) Result: Traceback (most recent call last): File "./test.py", line 9, in <modul...
2019 Sep 22
0
Samba 4.11 "Stale file handle"
...gt; mounts. Before I submit a bug report, could someone else try this out > so it's not just my setup? > > How to reproduce: > 1. Mount a Samba 4.11 share using the mount command: mount > //server1/share /tmp/share1 > 2. Run python script that is using mkstemp: > import shutil > import tempfile > > tmp_dest_fd, tmp_dest_name = tempfile.mkstemp(prefix=b'.file_tmp', > dir='/tmp/share1', suffix='test.pdf') > shutil.move('testfile', tmp_dest_name) > > Result: > Traceback (most recent call last): > File...
2019 Sep 22
0
Samba 4.11 "Stale file handle"
...t; mounts. Before I submit a bug report, could someone else try this out > so it's not just my setup? > > How to reproduce: > 1. Mount a Samba 4.11 share using the mount command: mount > //server1/share /tmp/share1 > 2. Run python script that is using mkstemp: > import shutil > import tempfile > > tmp_dest_fd, tmp_dest_name = tempfile.mkstemp(prefix=b'.file_tmp', > dir='/tmp/share1', suffix='test.pdf') > shutil.move('testfile', tmp_dest_name) > > Result: > Traceback (most recent call last): > F...
2009 Sep 14
2
[PATCH node-image] add livecd-iso-to-iscsi script to support iscsi root booting setup
...ic License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +from optparse import OptionParser +from tempfile import mkdtemp +import dbus +import dbus.glib +import sys +import os +import subprocess +import shutil + +parser = OptionParser() +parser.add_option("--iso", dest="iso", help="LiveCD iso filename") +parser.add_option("--target", dest="target", help="iSCSI target ip address") +parser.add_option("--targetname", dest="targetname...
2023 Nov 20
2
Online Backup failed....
...ht exception - [Errno 39] Directory not empty: 'sam.ldb.d' File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 185, in _run return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 303, in run shutil.rmtree(tmpdir) File "/usr/lib/python3.9/shutil.py", line 718, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.9/shutil.py", lin...
2023 Nov 20
1
Online Backup failed....
...xception - [Errno 39] Directory not empty: 'sam.ldb.d' File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 185, in _run return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 303, in run shutil.rmtree(tmpdir) File "/usr/lib/python3.9/shutil.py", line 718, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.9/shutil.py"...
2023 Nov 20
4
Online Backup failed....
Hey, dir exisit.... root at dc01:/autofs/backup# ls -la /autofs/backup/linux/samba_dom/backup.tgz/ insgesamt 12484 drwxr-xr-x 4 root root 4096 20. Nov 14:02 . drwxr-xr-x 3 root root 4096 20. Nov 14:00 .. -rw-r--r-- 1 root root 12765535 20. Nov 14:03 samba-backup-samba.laurenz.ws-2023-11-20T14-02-51.306281.tar.bz2 drwx------ 2 root root 4096 20. Nov 14:00 tmpdz6serc_ drwx------ 7 root
2011 Aug 12
1
.call files in /var/spool/asterisk/outgoing
...sterisk/outgoing Sometimes...(in this case after 500 successfull calls) Asterisk don?t make the calls and the .call files are in the "outgoing" forever... Any Ideas? I'm using Asterisk 1.4.22 (in 1.4.36 was the same behavior) In my python script I move .call files using ... import shutil shutil.move('/var/tmp/1.call','/var/spool/asterisk/outgoing/1.call') -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110812/d319180a/attachment.htm>
2019 Sep 22
2
Samba 4.11 "Stale file handle"
...a bug report, could someone else try this out >> so it's not just my setup? >> >> How to reproduce: >> 1. Mount a Samba 4.11 share using the mount command: mount >> //server1/share /tmp/share1 >> 2. Run python script that is using mkstemp: >> import shutil >> import tempfile >> >> tmp_dest_fd, tmp_dest_name = tempfile.mkstemp(prefix=b'.file_tmp', >> dir='/tmp/share1', suffix='test.pdf') >> shutil.move('testfile', tmp_dest_name) >> >> Result: >> Traceback (most...
2023 Nov 20
1
Online Backup failed....
...tory > not empty: 'sam.ldb.d' > File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", > line 185, in _run > return self.run(*args, **kwargs) > File > "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line > 303, in run shutil.rmtree(tmpdir) > File "/usr/lib/python3.9/shutil.py", line 718, in rmtree > _rmtree_safe_fd(fd, path, onerror) > File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd > _rmtree_safe_fd(dirfd, fullname, onerror) > File "/usr/lib/pytho...
2016 Aug 16
8
RFC: A cross platform way of using shell commands in lit tests
...t library already. Complicated commands like awk, for example, could be absent. Chances are you need to simplify your test if you're using something like that (presently exactly 1 test in all of LLVM uses it). What I'm imagining is something like this: D:\src\llvmbuild\ninja>bin\llvm-shutil --help OVERVIEW: LLVM Shell Utility Program USAGE: llvm-shutil.exe [subcommand] [options] SUBCOMMANDS: cd - Change current working directory mkdir - Make a directory ln - Create a link grep - Search for content in a file sort - Sort lines // etc, rest of commands go here. Type &...
2020 May 05
0
samba-tool domain backup online fails
...xception - [Errno 39] Directory not empty: 'sam.ldb.d' File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 286, in run shutil.rmtree(tmpdir) File "/usr/lib/python3.7/shutil.py", line 491, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.7/shutil.py", line 429, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.7/shutil.py"...
2012 Dec 04
0
[LLVMdev] Minimum Python Version
...obias Grosser <tobias at grosser.es> wrote: > Support for python 3 seems a good thing. What constructs in our code block > the move to python 3? I haven't looked in-depth at this, but just trying to import a couple lit modules I get a lot of syntax errors like: >>> import ShUtil.py Traceback (most recent call last): File "<stdin>", line 1, in <module> File "ShUtil.py", line 119 raise ValueError,"Fast path failure: %r != %r" % (res, reference) ^ SyntaxError: invalid syntax On this machine I have had to i...
2023 Nov 20
1
Online Backup failed....
...ry > not empty: 'sam.ldb.d' > File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", > line 185, in _run > return self.run(*args, **kwargs) > File > "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line > 303, in run shutil.rmtree(tmpdir) > File "/usr/lib/python3.9/shutil.py", line 718, in rmtree > _rmtree_safe_fd(fd, path, onerror) > File "/usr/lib/python3.9/shutil.py", line 655, in _rmtree_safe_fd > _rmtree_safe_fd(dirfd, fullname, onerror) > File "/usr/lib/pytho...
2020 May 05
1
samba-tool domain backup online fails
...xception - [Errno 39] Directory not empty: 'sam.ldb.d' File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line 186, in _run return self.run(*args, **kwargs) File "/usr/lib/python3/dist-packages/samba/netcmd/domain_backup.py", line 286, in run shutil.rmtree(tmpdir) File "/usr/lib/python3.7/shutil.py", line 491, in rmtree _rmtree_safe_fd(fd, path, onerror) File "/usr/lib/python3.7/shutil.py", line 429, in _rmtree_safe_fd _rmtree_safe_fd(dirfd, fullname, onerror) File "/usr/lib/python3.7/shutil.py"...
2012 Dec 04
2
[LLVMdev] Minimum Python Version
On 12/04/2012 12:28 AM, Sean Silva wrote: > On Mon, Dec 3, 2012 at 6:56 AM, Tobias Grosser<tobias at grosser.es> wrote: >> The gcc compile farm currently only has python 2.4 and 2.5. I know Duncan is >> using it quiet extensively, especially all dragonegg buildbots run on it. >> >> I very much agree we should ensure our python scripts are valid python 2.7 >>
2012 Dec 04
5
[LLVMdev] Minimum Python Version
....es> wrote: > > Support for python 3 seems a good thing. What constructs in our code block > > the move to python 3? > > I haven't looked in-depth at this, but just trying to import a couple > lit modules I get a lot of syntax errors like: > > >>> import ShUtil.py > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "ShUtil.py", line 119 > raise ValueError,"Fast path failure: %r != %r" % (res, reference) > ^ > SyntaxError: invalid syntax Y...
2017 May 06
0
[Bug 1406906] [PATCH 3/3] python: add regression test for RHBZ#1406906
...POSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +import os +import shutil +import tempfile +import unittest + +import guestfs + + +class Test830RHBZ1406906(unittest.TestCase): + def setUp(self): + self.filename = "rhbz1406906.img" + self.tempdir = tempfile.mkdtemp() + self.guestfs = guestfs.GuestFS(python_return_dict=True) + + sel...
2010 Oct 09
1
cron.daily is tossing this strange message about xapian:
/etc/cron.daily/apt: Traceback (most recent call last): File "/usr/sbin/update-apt-xapian-index", line 581, in <module> import os.path, re, imp, glob, xapian, textwrap, shutil, fcntl, errno, itertools, time File "/usr/lib/python2.6/dist-packages/xapian.py", line 6, in <module> import _xapian ImportError: /usr/lib/python2.6/dist-packages/_xapian.so: undefined symbol: _ZNK6Xapian8Database19metadata_keys_beginERKSs I did a search in /etc/apt like...
2010 Oct 26
0
[PATCH node] add install.py
...isolinux folders +# default is /live +# +# bootparams - extra boot parameters like console=... +# default is $OVIRT_BOOTPARAMS +# +# reboot - reboot after install +# default is yes + +from ovirtfunctions import * +import shutil +import sys + +def ovirt_boot_setup(): + + log("installing the image.") + + if OVIRT_VARS["OVIRT_ROOT_INSTALL"] == "n": + log("done.") + return + + found_boot=False + rc = os.system("findfs LABEL=Boot 2>&1 >/dev/null&q...