Print

Print


I've been trying to get the python bindings for xrootd installed but am having issues, specifically with the module that comes with the latest homebrew package, but also more generally. 

As per https://github.com/xrootd/xrootd/issues/1480, I tried to use the pre-compiled module that comes packaged with the latest brew formula (5.5.3). Following the two steps here:

1. Add `export PYTHONPATH=/opt/xrootd/lib/python3.11/site-packages:$PYTHONPATH` to .zshrc/.bashrc/...
2. Confirm that it is working by running `python3 -c "import pyxrootd"`

Allows me to import the pyxrootd module in a python 3.11 venv, but nothing is actually in the module when I inspect it, i.e. 
```python
>>> import pyxrootd as xrd
>>> dir(xrd)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
```
So, nothing I can use? `help(xrd)` indicates that there's a `client` object available in the module but this just results in an attribute error. 

I've also tried instead installing the pip package directly on a non-M1 mac environment and get the exact same thing. I feel I might be missing something crucial here but the python bindings documentation is outdated and not very useful so I don't know how else to proceed. 


-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1939
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