Alfred-Colors-workflow
Alfred-Colors-workflow copied to clipboard
Cannot load chunky_png
I am running Alfred v4.6.1 on an M1 Max MacBook Pro and I am running into the following issue:
[21:26:55.746] Logging Started...
[21:27:07.846] Colors[Script Filter] Queuing argument '#'
[21:27:08.007] Colors[Script Filter] Script with argv '(null)' finished
[21:27:08.011] ERROR: Colors[Script Filter] Code 1: <internal:/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- chunky_png (LoadError)
from <internal:/opt/homebrew/Cellar/ruby/3.0.3/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from colors.rb:4:in `<main>'
I have Ruby v3.0.3 and chunky_png
installed so thinking it may be a symlink issue?
➜ ~ ruby -v
ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [arm64-darwin21]
➜ ~ gem list --local | grep chunky_png
chunky_png (1.4.0)
Any ideas?
Thanks in advance :)
Maybe something wrong with PATHS
. Can u show me the output of the gem environment
?
@sungentim Can u show me the output of the gem environment
?
Seems ruby
and gem
have mismatched versions. You can see gem
is from the rvm
manager but the workflow expects homebrew installed ruby
.
The solution is very ez, you can edit the workflow script to replace the corresponding bin/ruby
if it's not from homebrew:

Seems
ruby
andgem
have mismatched versions. You can seegem
is from thervm
manager but the workflow expects homebrew installedruby
.The solution is very ez, you can edit the workflow script to replace the corresponding
bin/ruby
if it's not from homebrew:![]()

@LevyLizzz Should be placed in else
because your machine is an arm architecture.
tried it, can' work eithe
r
@LevyLizzz Turning on debug mode may show why the error is occurring:

@g1eny0ung solved, appreciate it!