icecube / nuflux

A library for calculating atmospheric neutrino fluxes.
https://docs.icecube.aq/nuflux/main
GNU Lesser General Public License v3.0
15 stars 5 forks source link

Running "setup.py" does not find default or manual prefixes, causing installation failure. #16

Closed 329gkp closed 1 year ago

329gkp commented 2 years ago

In building nuflux for GolemFit use, attempting to run setup.py for nuflux does not work on cvmfs for the default or manually-specified prefixes. So far, I still do not have a fix. Error output is below:

` ERROR: Command errored out with exit status 1: command: /cvmfs/icecube.opensciencegrid.org/py3-v4.1.1/RHEL_7_x8664/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-rwp99j4/setup.py'"'"'; file='"'"'/tmp/pip-req-build-rwp99j4_/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-kpfellt/install-record.txt --single-version-externally-managed --compile --user --prefix= --home=/tmp/pip-target-8zleredw cwd: /tmp/pip-req-build-rwp99j4/ Complete output (2 lines): running install error: can't combine user with prefix, execprefix/home, or install(plat)base

ERROR: Command errored out with exit status 1: /cvmfs/icecube.opensciencegrid.org/py3-v4.1.1/RHEL_7_x8664/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-rwp99j4/setup.py'"'"'; file='"'"'/tmp/pip-req-build-rwp99j4_/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-kpfell_t/install-record.txt --single-version-externally-managed --compile --user --prefix= --home=/tmp/pip-target-8zleredw Check the logs for full command output.`

kjmeagher commented 2 years ago

everything works fine for me on cobalt if i do

$ eval `/cvmfs/icecube.opensciencegrid.org/py3-v4.1.1/setup.sh`
$ PREFIX=${SROOT} pip install --user git+https://github.com/icecube/nuflux

If you need more help, you will need to provide a more detailed description of what you did