With a fresh installation, I am unable to have the copy example work.
$ cat examples/copy.py
"""
Copy a file
See :mod:XRootD.client.CopyProcess if you need multiple/more configurable
copy jobs.
"""
from XRootD import client
myclient = client.FileSystem('root://localhost')
status = myclient.copy(source="/tmp/spam", target="/tmp/eggs", force=True)
assert status.ok
$ python examples/copy.py
Traceback (most recent call last):
File "examples/copy.py", line 11, in
status = myclient.copy(source="/tmp/spam", target="/tmp/eggs", force=True)
File "/home/chaen/dirac/Linux_x86_64_glibc-2.12/lib/python2.6/site-packages/XRootD/client/filesystem.py", line 61, in copy
force=force)), []
SystemError: Python/getargs.c:1389: bad argument to internal function
This remains true whatever xrootd server I use, whatever source or destination file, and whatever the force flag.
Here are some information on the running system :
$ uname -a
Linux slc64 2.6.32-358.23.2.el6.x86_64 #1 SMP Thu Oct 17 10:27:22 CEST 2013 x86_64 x86_64 x86_64 GNU/Linux
Hi,
With a fresh installation, I am unable to have the copy example work.
$ cat examples/copy.py """
Copy a file
See :mod:
XRootD.client.CopyProcess
if you need multiple/more configurable copy jobs. """ from XRootD import clientmyclient = client.FileSystem('root://localhost') status = myclient.copy(source="/tmp/spam", target="/tmp/eggs", force=True) assert status.ok
$ python examples/copy.py Traceback (most recent call last): File "examples/copy.py", line 11, in
status = myclient.copy(source="/tmp/spam", target="/tmp/eggs", force=True)
File "/home/chaen/dirac/Linux_x86_64_glibc-2.12/lib/python2.6/site-packages/XRootD/client/filesystem.py", line 61, in copy
force=force)), []
SystemError: Python/getargs.c:1389: bad argument to internal function
This remains true whatever xrootd server I use, whatever source or destination file, and whatever the force flag.
Here are some information on the running system : $ uname -a Linux slc64 2.6.32-358.23.2.el6.x86_64 #1 SMP Thu Oct 17 10:27:22 CEST 2013 x86_64 x86_64 x86_64 GNU/Linux
$ rpm -qa | grep xrootd xrootd-client-devel-3.3.3-1.el6.x86_64 xrootd-python-0.1.2-1.slc6.x86_64 xrootd-libs-3.3.3-1.el6.x86_64 xrootd-devel-3.3.3-1.el6.x86_64 xrootd-client-libs-3.3.3-1.el6.x86_64 xrootd-client-3.3.3-1.el6.x86_64
Thanks,
Chris