Ask Your Question
3

Why are the installed editable packages not being detected by pylsp?

asked 2023-06-21 12:12:16 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-06-21 12:35:02 +0000

ladyg gravatar image

There could be several reasons why the installed editable packages are not being detected by pylsp:

  1. The editable package may not have been installed in the correct location. Ensure that the package is installed in the appropriate site-packages directory where Python can discover it.

  2. The package may not have a valid metadata file. Check that the package contains a valid setup.py file with the required metadata and that it has been installed correctly.

  3. The pylsp server may not have been configured to look for editable packages. Check the configuration settings for the pylsp server and ensure that it is configured to detect editable packages.

  4. There may be a conflict with other installed packages. Check that there are no conflicting dependencies or versions of other packages that could be causing issues.

  5. Restarting the IDE or the pylsp server might be necessary. Sometimes, a simple restart can solve the issue.

If none of the above solutions work, there may be a deeper issue that requires more investigation.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-21 12:12:16 +0000

Seen: 10 times

Last updated: Jun 21 '23