Recently when I tried to install a new package and launched the Command Palette with
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
My current setup is:
|Sublime Text version||
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 use
Browse Packages...from the menu and go back one up directory to locate the
- Backup your
Package Control.sublime-packagewhich should be found under the
- Copy the
Package.Control.sublime-packageyou downloaded in step one to the
Installed Packagesfolder. Rename it to
Package Control.sublime-package. Notice how you renamed a
- Restart Sublime Text
Now hopefully that fixes your Package Control issues. If not check back on the linked issues for other resolutions.