Print

Print


I'm not able to read a file in a minimal example:

```python
import pyxrootd.client

url = "root://lcg-lrz-rootd.grid.lrz.de:1094/pnfs/lrz-muenchen.de/data/atlas/dq2/atlaslocalgroupdisk/rucio/user/ivukotic/47/a2/000210A8-D2D1-E511-BC43-001E67DFF4F6.root"
file = pyxrootd.client.File()
response = file.open(url)
data = file.read()
```
this results in `UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 6: invalid continuation byte`.

The response seems to be ok:
```python
({'status': 0, 'code': 0, 'errno': 0, 'message': '[SUCCESS] ', 'shellcode': 0, 'error': False, 'fatal': False, 'ok': True}, None)
```

I can also download the file with xrdcp and open it with uproot, so the file itself is ok.

I'm using python3.10 and the very latest xrootd (master) since the latest release seems to be not pip-installable.
```bash
$  pip freeze | grep xrootd                                                                                                                                                                                                                                                       
xrootd @ git+https://github.com/xrootd/xrootd.git@db6c96453fa46d74a9525c7ba3e17489a82e97f6
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/2038
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

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