Dear XRootD users and developers,

I wanted to install the XRootD python bindings for python 3.5 via pip on
ScientificLinux 6, CentOS 7 and Ubuntu 18.04. For installation, I used
the syntax python3.5 -m pip install XRootD. Additionally, i tried to
install the XRootD python bindings for python 2.7.

Since I observed some unexpected behavior during the installation and
needed to find out and fix missing dependencies manually, I would
recommend to change the affected parts of the installation procedure.

  1. The pip output message

Even if the installation fails, pip states the installation as
successful ignoring any errors.

  1. The compilation of XRootD during pip installation

The installation procedure does not check if all prerequisites are
available.
It would be nice, if pip tells you to install the required packages
and you don't have to look into the debug output.

For CentOS7, the following packages need to be installed:

There may be additional requirements that were already installed on
my system.

  1. The python dependency in the installation script

If I understood correctly, pip uses the install.sh script for
installing the XRootD python bindings.

In line 32, python setup.py install calls the default python
version regardless of what python version was called for pip.
If I sourced python3.5, the installation continues with the default
python2.7 at this point.
I have temporarily fixed this by linking the default python to the
correct version to continue testing.

Additionally, I found that cmake in line 8 uses the default
python interpreter and library of the system instead of the version
called by pip.

-- Found PythonInterp: /usr/bin/python2 (found suitable version
"2.7.5", minimum required is "2.4")
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable
version "2.7.5", minimum required is "2.4")

This doesn't cause a failure of the installation, but I'm not sure
if it will cause issues later.

I finally managed to install the XRootD python bindings for both python
versions on all mentioned operating systems, but it was a long journey.

I would recommend to address these issues to make the XRootD python
bindings easily installable by everyone. At least, a small documentation
would be very helpful.

Best regards and many thanks,

Christoph


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/991?email_source=notifications\u0026email_token=AA7NRDXYISJ3GSQZPOFKR43PWKU4ZA5CNFSM4HOCHZ72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUXOMPA", "url": "https://github.com/xrootd/xrootd/issues/991?email_source=notifications\u0026email_token=AA7NRDXYISJ3GSQZPOFKR43PWKU4ZA5CNFSM4HOCHZ72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUXOMPA", "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