FS#64726 - [python-language-server] should depend on python-setuptools

Attached to Project: Community Packages
Opened by Chih-Hsuan Yen (yan12125) - Wednesday, 04 December 2019, 10:55 GMT
Last edited by Maxim Baz (maximbaz) - Wednesday, 04 December 2019, 14:06 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Morten Linderud (Foxboron)
Maxim Baz (maximbaz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The pyls module needs setuptools, even if it is not invoked via the script /usr/bin/pyls

$ python -m pyls
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.8/site-packages/pyls/__main__.py", line 12, in <module>
from .python_ls import (PythonLanguageServer, start_io_lang_server,
File "/usr/lib/python3.8/site-packages/pyls/python_ls.py", line 13, in <module>
from .config import config
File "/usr/lib/python3.8/site-packages/pyls/config/config.py", line 3, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Additional info:
* community/python-language-server 0.31.2-1

Steps to reproduce:
1. Make sure python-setuptools is not installed
2. Install python-language-server
3. Run it with `python -m pyls`
This task depends upon

Closed by  Maxim Baz (maximbaz)
Wednesday, 04 December 2019, 14:06 GMT
Reason for closing:  Fixed
Additional comments about closing:  Confirmed and fixed, thank you!

Loading...