Trying to prepare any file for staging using the python bindings client.FileSystem.prepare() method results in an unexpected error and a core dump, specifically:

from XRootD import client
from XRootD.client.flags import PrepareFlags

myclient = client.FileSystem("root://server_name")
status, _ = myclient.prepare(["/path/to/file.txt"], PrepareFlags.STAGE)

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid
Aborted (core dumped)

Calling the equivalent prepare command with xrdfs prepare -s etc. works successfully on the same system. Slightly unsure what the format should be for the list of files (the documentation is not super clear on this). I have tried a list of File objects, and paths to the relevant files as strings, but to no avail.

Versions
xrootd==5.5.5
python==3.9.15


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/issues/2011@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/2011", "url": "https://github.com/xrootd/xrootd/issues/2011", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

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