Package Control Is Missing On Sublime Text 4 On macOSX
We use Package Control to install most packages we need with Sublime Text. While there are other ways this is the most convenient and provides access to the packages listed on packagecontrol.io.
Recently when I tried to install a new package and launched the Command Palette with CMD+SHIFT+P, I was surprised
to find that I couldn’t find the Package Control commands.
I opened the console panel with ^+`, to look for any errors. I found an error related to the ctypes not loading:
Traceback (most recent call last):
File "../Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_openssl/_libcrypto_ctypes.py", line 305, in <module>
File "./python3.3/ctypes/__init__.py", line 366, in __getattr__
File "./python3.3/ctypes/__init__.py", line 371, in __getitem__
AttributeError: dlsym(0x7f876fc44440, EVP_PKEY_size): symbol not found
Cryptic.
My current setup is:
| Software | Version |
|---|---|
| macOS version | Ventura 13.4.1 |
| Sublime Text version | Build 4152 |
After a bit of digging around on Sublime Text Issues I came across Package Control Commands Missing issue which linked to [ST3/4] Package Control not working on macOS issue on Package Control.
As far as I can tell the issue was related to an OpenSSL version mismatch. While Sublime Text ships with its own OpenSSL library, Package Control relies on the OpenSSL version provided by the OS - macOS in this case.
The workaround that worked for me was:
- Download the latest release (beta) of Package Control
- Close Sublime Text
- Open a terminal and go to your
Installed Packagesfolder for Sublime Text. This can be found at/Users/YOUR_USER/Library/Application Support/Sublime Text/Installed Packages. You can also useSublime Text>Settings...>Browse Packages...from the menu and go back one up directory to locate theInstalled Packagesfolder. - Backup your
Package Control.sublime-packagewhich should be found under theInstalled Packagesfolder. - Copy the
Package.Control.sublime-packageyou downloaded in step one to theInstalled Packagesfolder. Rename it toPackage Control.sublime-package. Notice how you renamed aPackage.Controlto aPackage Control. - Restart Sublime Text
Now hopefully that fixes your Package Control issues. If not check back on the linked issues for other resolutions.