FS#65868 - [python-language-server] requires python-jedi<0.16
Attached to Project:
Community Packages
Opened by Svyatoslav Gryaznov (nightuser) - Tuesday, 17 March 2020, 19:31 GMT
Last edited by Morten Linderud (Foxboron) - Thursday, 14 May 2020, 10:39 GMT
Opened by Svyatoslav Gryaznov (nightuser) - Tuesday, 17 March 2020, 19:31 GMT
Last edited by Morten Linderud (Foxboron) - Thursday, 14 May 2020, 10:39 GMT
|
Details
Description:
After the update of python-jedi to the latest 0.16 version, python-language-server stopped working because it requires jedi<0.16. pyls exits with an error: pkg_resources.DistributionNotFound: The 'jedi<0.16,>=0.14.1' distribution was not found and is required by python-language-server |
This task depends upon
Closed by Morten Linderud (Foxboron)
Thursday, 14 May 2020, 10:39 GMT
Reason for closing: Fixed
Additional comments about closing: python-language-server-0.32.0-1 has been pushed
Thursday, 14 May 2020, 10:39 GMT
Reason for closing: Fixed
Additional comments about closing: python-language-server-0.32.0-1 has been pushed
1) in `python-language-server` deps `python-jedi` should be replaced to `python-jedi<0.16,python-jedi>=0.14.1` as in its own `setup.py`
2) `python-jedi` should be downgraded to 0.15 as there are no other packages who depend on python-jedi>=0.16
https://github.com/palantir/python-language-server/pull/781
FS#66247is not a bugreport discussing if python-jedi should be downgraded, of course it was closed as a duplicate.You would look for version specifiers, eg.
https://github.com/palantir/python-language-server/blob/0.31.10/setup.py#L38
https://www.python.org/dev/peps/pep-0440/#version-specifiers
https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-dependencies
https://python-poetry.org/docs/pyproject/#dependencies-and-dev-dependencies
> Alright. As there are only 7 packages depending on python-jedi, I may have time to do this after work. Thank you.
At this point, you're probably better off testing https://github.com/palantir/python-language-server/pull/781 to see if there's anything missing. I think this will be merged and released shortly, but if not it could be backported.
The other option would have been to make a `python-jedi0151` package for the meantime.
I don't know if it takes less effort to just introduce a temporary python-jedi0151 package, but if this pull request remains unmerged, I have no problems looking up the version specifiers of all python-jedi dependencies during the weekend.
"<heftig|M> or ship jedi 0.15 with it (either a renamed module or by installing it in another path and editing sys.path)"
Either we build the package from the current develop branch or we wait for the milestone.
The supported jedi version is specified as jedi>=0.17.0,<0.18.0.