Print

Print


When trying to install xrootd in a virtualenv on Ubuntu 18.04.4 with python 3.7 via pyenv, the installation fails at the last step with `python3.7: command not found`.

The abridged error is:

```bash
$ pip install xrootd
.......
    -- Installing: /clusterfs4/rehlers/software/pyenv/versions/3.7.6/lib/python3.7/site-packages/pyxrootd/include/xrootd/private/XrdCl/XrdClFileSystemOperations.hh
    ./install.sh: line 35: cd: ../bindings/python: No such file or directory
    pyenv: python3.7: command not found

    The `python3.7' command exists in these Python versions:
      3.7.6

    Note: See 'pyenv help global' for tips on allowing both
          python2 and python3 to be found.
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-zyixqehl/xrootd/setup.py", line 137, in <module>
        'bdist_wheel': CustomWheelGen
      File "/clusterfs4/rehlers/software/pyenv/versions/3.7.6/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/clusterfs4/rehlers/software/pyenv/versions/3.7.6/lib/python3.7/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/clusterfs4/rehlers/software/pyenv/versions/3.7.6/lib/python3.7/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/clusterfs4/rehlers/software/pyenv/versions/3.7.6/lib/python3.7/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/tmp/pip-install-zyixqehl/xrootd/setup.py", line 97, in run
        raise Exception( 'Install step failed!' )
    Exception: Install step failed!
    ----------------------------------------
ERROR: Command errored out with exit status 1: /clusterfs4/rehlers/software/pyenv/versions/3.7.6/bin/python -u -c 'import sys,
setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-zyixqehl/xrootd/setup.py'"'"'; __file__='"'"'/tmp/pip-install-zyixqeh
l/xrootd/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');
f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-mqmugb95/install-record.txt --single-
version-externally-managed --compile Check the logs for full command output.
```

I added a symlink in `env/bin` from `python3` -> `python3.7`and then was able to install successfully.

Since I have to use pyenv on this system, I suspected that it might be the underlying issue, but looking at other systems which don't rely on pyenv, it looks like `python3.7` often isn't created in a virtualenv. So I don't think `pyenv` itself isn't the issue. Can it be less specific about the python version that it looks for? (ie. `python3` instead of `python3.7`).

Thanks!

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

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