You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 #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:
Add export PYTHONPATH=/opt/homebrew/Cellar/xrootd/5.5.3/lib/python3.11/site-packages:$PYTHONPATH to .zshrc/.bashrc/...
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.
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.
The text was updated successfully, but these errors were encountered:
Note that the current Python bindings in Homebrew are installed for Python3.10, not 3.11. Have you tried with that version of Python? Also, maybe what you want to use is in XRootD instead of pyxrootd?
Okay looks like this was just me failing to read the documentation properly, I thought it was outdated but the examples are actually a lot more extensive than I first realised. Thanks for the help
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 #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:
export PYTHONPATH=/opt/homebrew/Cellar/xrootd/5.5.3/lib/python3.11/site-packages:$PYTHONPATH
to .zshrc/.bashrc/...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.
So, nothing I can use?
help(xrd)
indicates that there's aclient
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.
The text was updated successfully, but these errors were encountered: