Sublime Forum

LSP-ruff not loading , says installing but errors out

#1

I have Sublime installed on 2 Macs , same OS. I copied and pasted the user folder from one to another but on the new computer under tools I don’t see LSP under Developer. Also on the older computer I have a python file open and I can see LSP-Ruff, Line 228 & Column 15. I don’t see this on the newer computer. I seem to remember Java having to be installed and I say that because at one time when opening sublime I thought I saw a quick flash of Java… Not 100 % sure. What am I missing.
TIA

0 Likes

#2

Press ctrl+backtick (Sublime Text console) and there probably some error messages you can provide.

The shortcut key is on Windows. I don’t know what it is on a Mac though.

0 Likes

#3

The problem has been corrected so I can’t not display the error. Below are suggestions given by Google Gemini. Solution 3 corrected the error for me.

This error indicates that your Python environment does not have the updated root certificates required to verify the identity of the PyPI (Python Package Index) servers. This is a very common issue on macOS when using Python installers from python.org.

Here are three ways to fix this, ordered from the proper long-term fix to the immediate workaround.

Solution 1: Run the Certificate Installer (Recommended)

If you installed Python via the official installer (python.org), there is a specific script included to fix exactly this issue.

  1. Open your terminal.
  2. Copy and run the following command (this attempts to run the script for the most common Python versions):

Bash

/Applications/Python\ 3.*/Install\ Certificates.command

If that command doesn’t work (e.g., “command not found”), navigate to your Applications folder in Finder, look for the Python 3.x folder, and double-click the file named Install Certificates.command .

Solution 2: The “Trusted Host” Workaround

If Solution 1 fails or you need to install the package immediately without fixing the underlying certificate store, you can tell pip to trust the specific PyPI servers explicitly.

Run this command:

Bash

pip3 install --trusted-host pypi.org --trusted-host files.pythonhosted.org python-lsp-ruff

Solution 3: Reinstall/Upgrade certifi manually

Sometimes the certifi package (which provides the certificates) is outdated or corrupt. You can try to force an upgrade, though this might fail with the same SSL error (in which case, use Solution 2 to run this upgrade).

Bash

pip3 install --upgrade certifi --trusted-host pypi.org --trusted-host files.pythonhosted.org

Why is this happening?

MacOS does not use the system’s global certificate store for Python by default; it relies on its own internal store. When the certificates in that internal store get old, they no longer recognize the security signatures used by websites like pypi.org , resulting in the “certificate is not standards compliant” error.

0 Likes