xrootd / xrootd-python

Python bindings for XRootD are now part of the main repository.
https://github.com/xrootd/xrootd
6 stars 8 forks source link

examples/copy.py results in SystemError #2

Closed chaen closed 10 years ago

chaen commented 10 years ago

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 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

$ 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

jlsalmon commented 10 years ago

Thanks for reporting this @chaen. This is now fixed in the master branch.

Cheers, Justin