Sublime Forum

macOS Ventura (13.0) breaks Package Control

#1

It would seem that the beta of macOS Ventura breaks the Package Control subsystem for Sublime Text. I’ve been unable to use the package control system. Indeed it doesn’t show up in the command pallet at all. I deleted all of my preferences believing that it might have been a currupted install of the Package System at some point, but that didn’t help restore functionality. For reference macOS Ventura 13.0 beta comes with Python 3.8.9 and I do have Xcode installed in release and beta versions. Can anyone help me restore and or track down where the problem is?

What I’ve tired so far:

  1. Manual reinstall of Package Control.
  2. Reverting Sublime Text to a Fresh Install State.
    a. This worked, because it de-registered my copy of Sublime Text.
  3. Deleting Sublime Text 3 Application and redownloading latest version
    a. Again, this worked, because it de-registered again.
  4. Manual reinstall of Package control again.

After all of these steps, I still do not have to a working Package Control. It simply doesn’t show up in the command pallet even after the manual reinstall.

0 Likes

#2

Do you see any errors in the ST console?

0 Likes

#3

This issue might be caused by Package Control relying on wbond’s oscrypto library which in turn requires OpenSSL 1.1.1. which is no longer installed by default.

see: https://github.com/wbond/package_control/issues/1612

0 Likes

#4

Nothing relevant.

startup, version: 4126 osx arm64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/sublime_text
application: /Applications/Sublime Text.app
working dir: /
packages path: /Users/dygear/Library/Application Support/Sublime Text/Packages
state path: /Users/dygear/Library/Application Support/Sublime Text/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/dygear/Library/Application Support/Sublime Text/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.223693
OpenGL Context Information:
  GL API Version: 4.1 Metal - 83
  GLSL Version: 4.10
  Vendor: Apple
  Renderer: Apple M1 Pro
startup time: 0.281854
first paint time: 0.288998

I don’t even see. the option to install package control. Even going to Sublime Text -> Preferences -> Package Control doesn’t have any options available to me. This is even with the Package Control.sublime-package file in the ~/Library/Application Support/Sublime Text/Installed Packages/ directory. Checking the version of OpenSSL with openssl version produces LibreSSL 3.3.6.

So I installed Homebrew …
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Added it to my profile…
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/dygear/.profile

And made it available right away.
eval "$(/opt/homebrew/bin/brew shellenv)"

Following faelin commented on Jun 3 I ran …
brew install openssl@1.1 && ln -sf $(set --brew --cellar openssl@1.1/1.1.1? && echo "$1")/lib/libcrypto.dylib /usr/local/lib/
And then I had to modify the linking line, for two reasons, the path it links to wasn’t made and my version was different for OpenSSL.

sudo mkdir -p /usr/local/lib/
sudo ln -sf /opt/homebrew/opt/openssl\@1.1/lib/libcrypto.dylib /usr/local/lib/

And after all that … drop roll please … It still doesn’t work. LOL. Oh well, thanks for giving me things to try.

0 Likes

#5

I don’t even see. the option to install package control.

It means ST already found Package Control being present. So items to install it are hidden.

I may be missing something, but IIRC, Sublime Text supports python-3.8 plugin-host when run natively on Apple Silicon only, because python 3.3 it too old to be compiled for arm64.

Package Control 3.4 however runs on python 3.3 only. So it is available only when running ST via rosetta. Same applies for plugins which require dependencies.

0 Likes

#6

Found it, maybe, just can’t use it. I don’t have any options to install a package with package control :frowning:.

0 Likes

#7

We support python 3.3 on macOS arm - we backported some patches. You can confirm this by right-clicking in the ST console and selecting python 3.3. If Package Control is failing to load then it should be logging errors in the ST console. You can manually install packages as described here: https://www.youtube.com/watch?v=vSULNfmn5xE.

0 Likes

#8

Experiencing some similar issues here, with the following error log when starting sublime text 4:
Not sure if this can be fixed.

startup, version: 4152 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/sublime_text
application: /Applications/Sublime Text.app
working dir: /
packages path: /Users/user1/Library/Application Support/Sublime Text/Packages
state path: /Users/user1/Library/Application Support/Sublime Text/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/user1/Library/Application Support/Sublime Text/Installed Packages
ignored_packages: [“Vintage”]
pre session restore time: 0.323912
OpenGL Context Information:
GL API Version: 4.1 ATI-4.12.7
GLSL Version: 4.10
Vendor: ATI Technologies Inc.
Renderer: AMD Radeon Pro 5500M OpenGL Engine
startup time: 0.518298
git: using configuration from system git install
git: tracking working dir /Users/user1/personal/dev_tools
git: ignoring working dir /Users/user1
git: tracking working dir /Users/user1/Library/Application Support/Sublime Text/Packages/SublimeLinter
git: tracking working dir /Users/user1/
first paint time: 0.664708
environment variables loaded using: /bin/bash -l
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.html_print
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading python 3.3 plugin Package Control.1_reloader
reloading python 3.3 plugin Package Control.2_bootstrap
reloading plugin Default.keymap
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
Traceback (most recent call last):
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_openssl/_libcrypto_ctypes.py”, line 305, in
File “./python3.3/ctypes/init.py”, line 366, in getattr
File “./python3.3/ctypes/init.py”, line 371, in getitem
AttributeError: dlsym(0x7ff91929cc60, EVP_PKEY_size): symbol not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 308, in reload_plugin
m = importlib.import_module(modulename)
File “./python3.3/importlib/init.py”, line 90, in import_module
File “”, line 1584, in _gcd_import
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/2_bootstrap.py”, line 26, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/bootstrap.py”, line 20, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/download_manager.py”, line 24, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/downloaders/init.py”, line 20, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/downloaders/oscrypto_downloader.py”, line 44, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/tls.py”, line 11, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_mac/tls.py”, line 39, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_mac/util.py”, line 208, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_openssl/_libcrypto.py”, line 15, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_openssl/_libcrypto_ctypes.py”, line 688, in
Package Control.package_control.deps.oscrypto._ffi.FFIEngineError: Error initializing ctypes
reloading python 3.3 plugin Package Control.Package Control
Traceback (most recent call last):
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_openssl/_libcrypto_ctypes.py”, line 305, in
File “./python3.3/ctypes/init.py”, line 366, in getattr
File “./python3.3/ctypes/init.py”, line 371, in getitem
AttributeError: dlsym(0x7ff91929cc60, EVP_PKEY_size): symbol not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 308, in reload_plugin
m = importlib.import_module(modulename)
File “./python3.3/importlib/init.py”, line 90, in import_module
File “”, line 1584, in _gcd_import
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/Package Control.py”, line 89, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/commands/init.py”, line 3, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/commands/advanced_install_package_command.py”, line 10, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/package_manager.py”, line 34, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/downloaders/init.py”, line 20, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/downloaders/oscrypto_downloader.py”, line 44, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/tls.py”, line 11, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_mac/tls.py”, line 39, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_mac/util.py”, line 208, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_openssl/_libcrypto.py”, line 15, in
File “”, line 1565, in _find_and_load
File “”, line 1532, in _find_and_load_unlocked
File “/Applications/Sublime Text.app/Contents/MacOS/Lib/python33/sublime_plugin.py”, line 1692, in load_module
exec(compile(source, source_path, ‘exec’), mod.dict)
File “/Users/user1/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_openssl/_libcrypto_ctypes.py”, line 688, in
Package Control.package_control.deps.oscrypto._ffi.FFIEngineError: Error initializing ctypes

0 Likes

#9

This issue is caused by OpenSSL3.

Package Control 3.x requires OpenSSL 1.1 and is not compatible with the newer one.

see https://github.com/wbond/package_control/issues/1612

0 Likes

#10

Thanks for the quick reply, fixed it. :pray:

0 Likes