-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
pip install cwltool failed with mypy-extension==0.4.0 #872
Comments
mypy_extensions 0.4.0 is released yesterday (I think 2018-08-16 ??). |
The relevant change in mypy-extensions was python/mypy@d9581fe, which added a dependency on the install_requires=[
'typing >= 3.5.3; python_version < "3.5"',
] Unfortunately, setuptools doesn't support environment markers (like However, setuptools does support environment markers in |
@inutano Can you confirm that using recent |
Thank you @anowlcalledjosh! I've confirmed that the installation succeeded by updating setuptools beforehand:
However,
I've found
Seems all went fine, but another error happens when I tried to validate a CWL workflow:
Google saved me again:
😢
looks like it worked. wooo. So far what I'm wondering is if there's a smarter way to specify minimum requirement versions of these python package dependencies. I'm not an expert for python package, but how do we improve this |
wrt six: cwltool depends on six >= 1.8.0, but Apparently the ruamel.ordereddict: no idea. Do things go more smoothly if you |
Building this Dockerfile successfully finished and installed I found an error message while
|
I've also confirmed that
|
The problem is basically that Pip doesn't actually have a proper dependency resolver yet: pypa/pip#988, so Pip sees that cwltool depends on six >=1.8.0 and decides that the installed version of six (1.8.0) is ok, but when it looks at prov's dependencies, it's not clever enough to realise that it should install six 1.9.0 instead. (This is getting a bit sidetracked from the original issue of "mypy-extensions 0.4.0 doesn't work with old setuptools", which I've just submitted a PR to fix.) |
A PR to bump up |
cwltool itself doesn't depend on six 1.9.0, but prov does, and having matching dependencies helps Pip find a correct set of packages to install (see common-workflow-language#872).
cwltool itself doesn't depend on requests 2.6.1, but CacheControl does, and having matching dependencies helps Pip find a correct set of packages to install (see common-workflow-language#872).
Fixed in #877 |
cwltool itself doesn't depend on six 1.9.0, but prov does, and having matching dependencies helps Pip find a correct set of packages to install (see #872).
cwltool itself doesn't depend on requests 2.6.1, but CacheControl does, and having matching dependencies helps Pip find a correct set of packages to install (see #872).
Expected Behavior
pip install cwltool
will give youcwltool
Actual Behavior
pip install cwltool
failed with error ofDownloading/unpacking mypy-extensions
.I guess the recent version of
mypy-extension==0.4.0
will cause the problem, sincepip install mypy-extension==0.3.0
followed bypip install cwltool
goes fine.Full Traceback
This Dockerfile
Failed.
Your Environment
pip install
The text was updated successfully, but these errors were encountered: