In a new install of version 9.2 (on ubuntu) I was using sage -pip
install to install several packages which I need for LMFDB
development. All but one of these are normal pip packages which
install fine, but one is not: it is specified in the requirements.txt
file as
git+
https://github.com/jwbober/conrey-dirichlet-characters.git@master#egg=dirichlet_conrey
The installation of this (which has always worked fine up to now)
bailed out with the error:
Collecting dirichlet_conrey
Cloning
https://github.com/jwbober/conrey-dirichlet-characters.git
(to revision master) to /tmp/pip-install-r1tfb33j/dirichlet-conrey
ERROR: Command errored out with exit status 1:
command: /usr/local/sage/sage-9.2/local/bin/python3 -c 'import
sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-r1tfb33j/dirichlet-conrey/setup.py'"'"';
__file__='"'"'/tmp/pip-install-r1tfb33j/dirichlet-conrey/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
egg_info --egg-base /tmp/pip-pip-egg-info-xvkfdork
cwd: /tmp/pip-install-r1tfb33j/dirichlet-conrey/
Complete output (1 lines):
ERROR: The environment variable SAGE_PYTHON_VERSION must be defined.
I worked out that after putting
export SAGE_PYTHON_VERSION=3
and rerunning the pip install, all was well. Should Sage's
environment (e.g. what you see typing env after sage -sh) have this
set?
John