Print

Print


On 3/28/19 12:20 PM, Chris Burr wrote:
> Hi Adrian,
Hi!

> The third argument is the object this method is being called on (self.handler).
> I think the example is wrong and the function signature should actually be:
> 
> def end(self, jobId, results):
Thanks a lot! indeed this was the problem .. it would seem that the documentation
page for xrootd bindings is not updated ...

Adrian

> 
> Cheers,
> 
> Chris
> 
> On Thu, 28 Mar 2019 at 10:08, Adrian Sevcenco <[log in to unmask] <mailto:[log in to unmask]>> wrote:
> 
>     Hi! I am trying to use the xrootd python bindings as show in the example
>     http://xrootd.org/doc/python/xrootd-python/examples/copyprocess.html
> 
>     my implementation looks like this :
>     https://github.com/adriansev/jalien_py/blob/master/alien.py#L27
>     and actual usage :
>     https://github.com/adriansev/jalien_py/blob/master/alien.py#L335
> 
>     but i get :
>     Traceback (most recent call last):
>         File
>     "/usr/lib64/python3.6/site-packages/XRootD/client/copyprocess.py", line
>     44, in end
>           self.handler.end(jobId, results)
>     TypeError: end() takes 2 positional arguments but 3 were given
> 
>     Does anyone have an idea how i get 3 positional arguments when i define 2?
> 
>     Thank you!!
>     Adrian
> 
> 
>     ########################################################################
>     Use REPLY-ALL to reply to list
> 
>     To unsubscribe from the XROOTD-L list, click the following link:
>     https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1
> 



########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-L&A=1