Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua: ./init.lua:2: module 'sketchybar' not found: #56

Open
NightProg opened this issue Jul 6, 2024 · 1 comment
Open

lua: ./init.lua:2: module 'sketchybar' not found: #56

NightProg opened this issue Jul 6, 2024 · 1 comment

Comments

@NightProg
Copy link

When testing your sketchybar configuration i got this error:

lua: ./init.lua:2: module 'sketchybar' not found:
        no field package.preload['sketchybar']
        no file '/usr/local/share/lua/5.4/sketchybar.lua'
        no file '/usr/local/share/lua/5.4/sketchybar/init.lua'
        no file '/usr/local/lib/lua/5.4/sketchybar.lua'
        no file '/usr/local/lib/lua/5.4/sketchybar/init.lua'
        no file './sketchybar.lua'
        no file './sketchybar/init.lua'
        no file '/usr/local/lib/lua/5.4/sketchybar.so'
        no file '/usr/local/lib/lua/5.4/loadall.so'
        no file './sketchybar.so'
        no file '/Users/antoine/.local/share/sketchybar_lua/sketchybar.so'
stack traceback:
        [C]: in function 'require'
        ./init.lua:2: in main chunk
        [C]: in function 'require'
        /Users/.../.config/sketchybar/sketchybarrc:5: in main chunk
        [C]: in ?

maybe i forgot to config something . If you can help me please

@dagrlx
Copy link

dagrlx commented Jul 9, 2024

You need to compile SbarLua.

Run this in your terminal:

(git clone https://github.com/FelixKratz/SbarLua.git /tmp/SbarLua && cd /tmp/SbarLua/ && make install && rm -rf /tmp/SbarLua/)

The error is because it doesn't get mainly '/Users/antoine/.local/share/sketchybar_lua/sketchybar.so'.
When compiling automatically in that path the sketchybar.so file is created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants