Open gojimmypi opened 3 years ago
The pip error message indicated that your version of Jinja2 was to old as I would expect.
If you would like pip to automatically upgrade required dependencies then you need to give it a --upgrade
. See https://pip.pypa.io/en/stable/cli/pip_install/#overview ;
Note that
pip install
prefers to leave the installed version as-is unless--upgrade
is specified.
there's an install_requires section that checks... do you think it would be good to prompt the user as to exactly what should be done? The error is a bit long and intimidating. Perhaps give the option to install Edalize with a similar --upgrade
option that also does the pip upgrade? (btw: note that my pip
needed to be specified as pip3
)
pip typically does not change system-wide dependencies, and Jinja is installed in that way on your machine.
The error message isn't great and it's not how it normally looks. But either way, this is something edalize cannot do anything about, since we use the standard ways to install packages. Most likely something is wrong in your Python installation. I'd recommend asking in a general Python forum, since I don't really have more insight into what's going on here.
I tried installing
edalize
via the instructions from my fresh fork but I saw an error that looked dependency-related: Note there's aContextualVersionConflict
warning aboutJinja2
. This is on WSL, so admittedly perhaps not the ideal environment.Here's the result of
pip freeze
and
pip3 freeze
:I tried doing this
Jinja2
update. It took quite some time. Eventually it seemed to work:It looks like the next attempt was successful:
Perhaps this is a feature request to more gracefully check dependency versions and optionally prompt to automatically update them?