-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pipenv won't install airflow #2583
Comments
The solution feels related to #1921, but I can't see what the |
The work around is to add |
Unless I'm holding it wrong, I don't think that works: > mkdir pipenv-test
> cd pipenv-test
> pipenv shell
> pipenv install airflow[mysql] Jinja2==2.8.1
... snip snip ...
Could not find a version that matches jinja2<2.9.0,==2.8.1,>=2.10,>=2.4,>=2.7.3,>=2.8 (from -r /var/folders/q9/f3z9clp117dc1t0860v0xj9hx5rgx5/T/pipenv-ii8_Hs-requirements/pipenv-SFquyt-constraints.txt (line 3))
Tried: 2.0, 2.1, 2.1.1, 2.2, 2.2.1, 2.3, 2.3.1, 2.4, 2.4.1, 2.5, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.5.5, 2.6, 2.7, 2.7.1, 2.7.2, 2.7.3, 2.8, 2.8, 2.8.1, 2.8.1, 2.9, 2.9, 2.9.1, 2.9.1, 2.9.2, 2.9.2, 2.9.3, 2.9.3, 2.9.4, 2.9.4, 2.9.5, 2.9.5, 2.9.6, 2.9.6, 2.10, 2.10 It's in the
|
Investigating the output of
At which point you might think it reasonable that we end up abandoning, since This suspicion is only heightened by the results after running > pipenv graph | grep -i jinja
- Jinja2 [required: >=2.4, installed: 2.8.1]
- Jinja2 [required: >=2.4, installed: 2.8.1]
- Jinja2 [required: >=2.4, installed: 2.8.1]
- Jinja2 [required: >=2.4, installed: 2.8.1]
- Jinja2 [required: >=2.4, installed: 2.8.1]
- Jinja2 [required: >=2.4, installed: 2.8.1]
- jinja2 [required: >=2.7.3,<2.9.0, installed: 2.8.1] Note that the most recent version, |
@maxgrenderjones Side note: you probably want the |
Thanks - am trying to replicate our current environment where we use a version from the `airflow` era. But regardless, `apache-airflow` doesn’t install either :(
… On 16 Jul 2018, at 21:55, Jacob Hayes ***@***.***> wrote:
@maxgrenderjones Side note: you probably want the apache-airflow package. airflow is the old 1.8 version while apache-airflow is 1.8+. Source
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Almost same thing happened to me when trying to install prospector with pipenv. Seems like pipenv is adding a additional restriction pipfile
Log for pipenv install --dev
Astroid version that pipenv is looking for is restricted by this
But when I installed using --skip-lock and check the graph, >=2.0.0 restriction is nowhere to be found.
I'm not sure whether this has something to do with pre-versions. But appreciate any helpful thought |
I’m closing this to guide people to #2596. That thread contains much more information, and should be much more useful to everyone. |
hi everyone, this is kind of unrelated but since the google search for "Pipenv airflow fails" brings to here I think I will also write that I solved my (dumb) problem by making sure I was doing
and not...
:) |
Issue description
When attempting to install airflow,
pipenv
refuses to create a lock file, even though (I think) there's not actually a problemBut it's not clear to me that there's a
>=2.10.0
dependency:Expected result
Airflow should install (with
Jinja2==2.8.1
)Actual result
Seems I can't have airflow and a lock file.
Looking at the output of
pipenv lock --verbose
(and setup.py) the issue appears to be thatairflow
requires a restricted set of versions ofJinja2
(<=2.9.0
) as well as specific versions offlask
and it's helpers e.g.flask-[admin|swagger]
(there are more), which themselves require>=2.10
of Jinja2. And so kaboom.But my project doesn't use
flask-admin
etc, and I've been happily using airflow for a long time now without issue - is there no way to force the issue? Sure, we could say this is an 'upstream' problem, but it feels like there ought to be a way to say 'please let me do this'!Steps to replicate
See above
$ pipenv --support
Pipenv version:
'2018.7.1'
Pipenv location:
'/Users/mgrenderjones/Library/Python/2.7/lib/python/site-packages/pipenv'
Python location:
'/usr/local/opt/python@2/bin/python2.7'
Other Python installations in
PATH
:2.7
:/Users/mgrenderjones/.local/share/virtualenvs/vulcan-pipenv-vMW1Zc4p/bin/python2.7
2.7
:/Users/mgrenderjones/.local/share/virtualenvs/vulcan-pipenv-vMW1Zc4p/bin/python2.7
2.7
:/usr/local/bin/python2.7
2.7
:/usr/bin/python2.7
2.7.15
:/Users/mgrenderjones/.local/share/virtualenvs/vulcan-pipenv-vMW1Zc4p/bin/python
2.7.15
:/usr/local/bin/python
2.7.10
:/usr/bin/python
2.7.15
:/Users/mgrenderjones/.local/share/virtualenvs/vulcan-pipenv-vMW1Zc4p/bin/python2
2.7.15
:/usr/local/bin/python2
PEP 508 Information:
System environment variables:
_OLD_VIRTUAL_PATH
SPARK_HOME
PYTHONDONTWRITEBYTECODE
LOGNAME
USER
HOME
PATH
TERM_PROGRAM
LANG
TERM
Apple_PubSub_Socket_Render
SHLVL
XPC_FLAGS
_OLD_FISH_PROMPT_OVERRIDE
PIPENV_ACTIVE
TERM_SESSION_ID
XPC_SERVICE_NAME
SSH_AUTH_SOCK
VIRTUAL_ENV
SHELL
TERM_PROGRAM_VERSION
PIP_PYTHON_PATH
TMPDIR
__CF_USER_TEXT_ENCODING
PWD
Pipenv–specific environment variables:
PIPENV_ACTIVE
:1
Debug–specific environment variables:
PATH
:/Users/mgrenderjones/.local/share/virtualenvs/vulcan-pipenv-vMW1Zc4p/bin:/Users/mgrenderjones/.cargo/bin:/Users/mgrenderjones/Library/Python/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki
SHELL
:/usr/bin/fish
LANG
:en_US.UTF-8
PWD
:/Users/mgrenderjones/Documents/workspace/airflow-pipenv
VIRTUAL_ENV
:/Users/mgrenderjones/.local/share/virtualenvs/vulcan-pipenv-vMW1Zc4p
Contents of
Pipfile
('/Users/mgrenderjones/Documents/workspace/airflow-pipenv/Pipfile'):The text was updated successfully, but these errors were encountered: