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
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:
$ 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-zyixqehl/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.7and then was able to install successfully. Edit: I spoke too soon. With the symlink, I actually get:
./install.sh: line 35: cd: ../bindings/python: No such file or directory
python3.7: can't open file 'setup.py': [Errno 2] No such file or directory
Since I have to use pyenv on this system, I suspected that it might be the underlying issue, but it seems to work with pyenv if I'm not in a virtualenv. Since it fails on changing the directory, I guess it must be related to finding files in the virtualenv.
Thanks!
The text was updated successfully, but these errors were encountered:
When I install it outside of my virtualenv instead, I get a library issue:
>>> from XRootD import client
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/clusterfs4/rehlers/install/lib/python3.7/site-packages/XRootD/client/__init__.py", line 3, in <module>
from .glob_funcs import glob, iglob
File "/clusterfs4/rehlers/install/lib/python3.7/site-packages/XRootD/client/glob_funcs.py", line 26, in <module>
from XRootD.client.filesystem import FileSystem
File "/clusterfs4/rehlers/install/lib/python3.7/site-packages/XRootD/client/filesystem.py", line 26, in <module>
from pyxrootd import client
ImportError: libXrdXml.so.2: cannot open shared object file: No such file or directory
>>>
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:
I added a symlink inEdit: I spoke too soon. With the symlink, I actually get:env/bin
frompython3
->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 it seems to work with pyenv if I'm not in a virtualenv. Since it fails on changing the directory, I guess it must be related to finding files in the virtualenv.
Thanks!
The text was updated successfully, but these errors were encountered: