Sublime Forum

Package control on ST 4113 - no option on command palette - MacOS Big Sur

#1

I have installed the package control and it shows the package is available in the folder

~/Library/Application Support/Sublime Text/Installed Packages
-rw-r–r-- 1 Suraj staff 471460 Aug 25 13:03 Package Control.sublime-package

However when I go to the command palette I don’t get see any commands with Package Control

Not sure what the issue here is.

Any help appreciated.

Thanks

0 Likes

#2

Any python errors in the console? Click on View > Show Console.

0 Likes

#3

If you do Sublime Text > Preferences > Settings, does it appear in the ignored_packages setting?

0 Likes

#4

Thanks for the reply…I did find the following errors in the console

   exec(compile(source, source_path, 'exec'), mod.__dict__)
  File "/Users/Suraj/Library/Application Support/Sublime Text/Installed Packages/Package Control.sublime-package/package_control/deps/oscrypto/_openssl/_libcrypto_ctypes.py", line 30, in <module>
  File "./python3.3/ctypes/__init__.py", line 353, in __init__
OSError: dlopen(/usr/local/lib/libcrypto.dylib, 6): no suitable image found.  Did find:
	/usr/local/lib/libcrypto.dylib: mach-o, but wrong architecture
	/usr/local/lib/libcrypto.1.1.dylib: mach-o, but wrong architecture
reloading python 3.3 plugin Package Control.Package Control
Traceback (most recent call last):

My Mac is apple M1 so homebrew has installed arm64 libcrypto files under /opt/homebrew. How do I get ST to refer those libraries instead of the ones in /usr/local/lib

Thanks.

0 Likes

#5

Does anybody have any pointers on how to resolve this issue.

Thanks.

0 Likes

#6

What architecture is /usr/local/lib/libcrypto.dylib?

0 Likes

#7

The output for your reference

Executable=/usr/local/lib/libcrypto.1.1.dylib
Identifier=libcrypto.1
Format=Mach-O thin (x86_64)
CodeDirectory v=20200 size=18635 flags=0x0(none) hashes=578+2 location=embedded

I am using a Macbook Pro M1 and the brew installs the crypto library in /opt/homebrew

/opt/homebrew:Suraj$ codesign -d --verbose=4 ./Cellar/openssl@1.1/1.1.1k/lib/libcrypto.1.1.dylib
Executable=/opt/homebrew/Cellar/openssl@1.1/1.1.1k/lib/libcrypto.1.1.dylib
Identifier=libcrypto.1
Format=Mach-O thin (arm64)
CodeDirectory v=20400 size=17092 flags=0x2(adhoc) hashes=529+2 location=embedded

Is there a way I could get sublimeText to refer to the opt/homebrew path for the librcrypto.1.1.dylib

Thanks.

0 Likes

#8

I just downloaded 4113 on Big Sur (fresh install) and it keeps telling me the download is broken when I click on the “Sublime Text.app”. I’ve redownloaded the file several times now.SublimeError

0 Likes

#9

Sublime Text ships with it’s own libcrypto and should be using that. Seems to be this issue: https://github.com/wbond/package_control/issues/1519.

0 Likes

#10

I also don’t think /usr/local/lib/libcrypto is provided by macOS. I don’t have those files on my end. Perhaps brew previously installed to this location?

0 Likes

#11

I think brew probably installed it as part of a dependency for another package. For now I just renamed the file and restarted Sublime and its working fine. I have to figure out which package requires this file.
Thanks for the help.

0 Likes