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

module 'ffi' not found #20

Open
rhurds opened this issue Mar 20, 2021 · 5 comments
Open

module 'ffi' not found #20

rhurds opened this issue Mar 20, 2021 · 5 comments

Comments

@rhurds
Copy link

rhurds commented Mar 20, 2021

[mpv_discordRPC] Discord Rich Presence integration for mpv Media Player 
[mpv_discordRPC] Upstream: https://github.com/cniw/mpv-discordRPC 
[mpv_discordRPC] Version: 1.4.1-UNKNOWN 
 (+) Video --vid=1 (*) (vp9 1920x1080 29.970fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 44100Hz)
AO: [pulse] 44100Hz stereo 2ch float
[mpv_discordRPC] 
[mpv_discordRPC] stack traceback:
[mpv_discordRPC] 	[C]: in function 'require'
[mpv_discordRPC] 	...nd/.config/mpv/scripts/mpv-discordRPC/lua-discordRPC.lua:1: in main chunk
[mpv_discordRPC] 	[C]: in function 'require'
[mpv_discordRPC] 	[string "/home/uend/.config/mpv/scripts/mpv-discordRPC..."]:228: in function 'cb'
[mpv_discordRPC] 	mp.defaults:351: in function 'process_timers'
[mpv_discordRPC] 	mp.defaults:520: in function 'dispatch_events'
[mpv_discordRPC] 	mp.defaults:493: in function <mp.defaults:492>
[mpv_discordRPC] 	[C]: in ?
[mpv_discordRPC] 	[C]: in ?
[mpv_discordRPC] Lua error: ...nd/.config/mpv/scripts/mpv-discordRPC/lua-discordRPC.lua:1: module 'ffi' not found:
[mpv_discordRPC] 	no field package.preload['ffi']
[mpv_discordRPC] 	no file '/home/uend/.config/mpv/scripts/mpv-discordRPC/ffi.lua'
[mpv_discordRPC] 	no file '/usr/local/share/lua/5.2/ffi.lua'
[mpv_discordRPC] 	no file '/usr/local/share/lua/5.2/ffi/init.lua'
[mpv_discordRPC] 	no file '/usr/local/lib/lua/5.2/ffi.lua'
[mpv_discordRPC] 	no file '/usr/local/lib/lua/5.2/ffi/init.lua'
[mpv_discordRPC] 	no file '/usr/share/lua/5.2/ffi.lua'
[mpv_discordRPC] 	no file '/usr/share/lua/5.2/ffi/init.lua'
[mpv_discordRPC] 	no file '/usr/local/lib/lua/5.2/ffi.so'
[mpv_discordRPC] 	no file '/usr/lib/x86_64-linux-gnu/lua/5.2/ffi.so'
[mpv_discordRPC] 	no file '/usr/lib/lua/5.2/ffi.so'
[mpv_discordRPC] 	no file '/usr/local/lib/lua/5.2/loadall.so'
@martin-sweeny
Copy link

same

@cniw
Copy link
Owner

cniw commented Jan 20, 2022

Sorry late response, i've been inactive in long time

To use lua-discordRPC wrapper you guys need mpv build with luajit instead of lua like the default, anyways what is distro you guys use?
Maybe i can help give a guide to build it on for your distro.

@martin-sweeny
Copy link

I'm running artix

@cniw
Copy link
Owner

cniw commented Jan 20, 2022

Since that distro also based on Arch Linux i think this gist note relevant Build mpv package with luajit support for Arch Linux

@ALEX5402
Copy link

ALEX5402 commented May 2, 2024

[mpv_discordRPC] Discord Rich Presence integration for mpv Media Player
[mpv_discordRPC] Upstream: https://github.com/cniw/mpv-discordRPC
[mpv_discordRPC] Version: 1.4.1-UNKNOWN
(+) Video --vid=1 () (vp9 1920x1080 29.970fps)
(+) Audio --aid=1 --alang=eng (
) (aac 2ch 44100Hz)
AO: [pulse] 44100Hz stereo 2ch float
[mpv_discordRPC]
[mpv_discordRPC] stack traceback:
[mpv_discordRPC] [C]: in function 'require'
[mpv_discordRPC] ...nd/.config/mpv/scripts/mpv-discordRPC/lua-discordRPC.lua:1: in main chunk
[mpv_discordRPC] [C]: in function 'require'
[mpv_discordRPC] [string "/home/uend/.config/mpv/scripts/mpv-discordRPC..."]:228: in function 'cb'
[mpv_discordRPC] mp.defaults:351: in function 'process_timers'
[mpv_discordRPC] mp.defaults:520: in function 'dispatch_events'
[mpv_discordRPC] mp.defaults:493: in function mp.defaults:492
[mpv_discordRPC] [C]: in ?
[mpv_discordRPC] [C]: in ?
[mpv_discordRPC] Lua error: ...nd/.config/mpv/scripts/mpv-discordRPC/lua-discordRPC.lua:1: module 'ffi' not found:
[mpv_discordRPC] no field package.preload['ffi']
[mpv_discordRPC] no file '/home/uend/.config/mpv/scripts/mpv-discordRPC/ffi.lua'
[mpv_discordRPC] no file '/usr/local/share/lua/5.2/ffi.lua'
[mpv_discordRPC] no file '/usr/local/share/lua/5.2/ffi/init.lua'
[mpv_discordRPC] no file '/usr/local/lib/lua/5.2/ffi.lua'
[mpv_discordRPC] no file '/usr/local/lib/lua/5.2/ffi/init.lua'
[mpv_discordRPC] no file '/usr/share/lua/5.2/ffi.lua'
[mpv_discordRPC] no file '/usr/share/lua/5.2/ffi/init.lua'
[mpv_discordRPC] no file '/usr/local/lib/lua/5.2/ffi.so'
[mpv_discordRPC] no file '/usr/lib/x86_64-linux-gnu/lua/5.2/ffi.so'
[mpv_discordRPC] no file '/usr/lib/lua/5.2/ffi.so'
[mpv_discordRPC] no file '/usr/local/lib/lua/5.2/loadall.so'

same issue also on me

image

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

4 participants