torhve / weechat-matrix-protocol-script

A WeeChat script in Lua that implements the matrix.org chat protocol
349 stars 52 forks source link

matrix.lua fails to load due to lua error #102

Closed paanvaannd closed 6 years ago

paanvaannd commented 6 years ago

The following error shows upon starting weechat after installing the plugin via the README instructions:

lua: unable to execute file "/home/pan/.weechat/lua/autoload/matrix.lua" lua: error: /home/pan/.weechat/lua/autoload/matrix.lua:46: module 'cjson' not found: no field package.preload['cjson'] no file './cjson.lua' no file '/usr/local/share/lua/5.1/cjson.lua' no file '/usr/local/share/lua/5.1/cjson/init.lua' no file '/usr/local/lib/lua/5.1/cjson.lua' no file '/usr/local/lib/lua/5.1/cjson/init.lua' no file '/usr/share/lua/5.1/cjson.lua' no file '/usr/share/lua/5.1/cjson/init.lua' no file './cjson.so' no file '/usr/local/lib/lua/5.1/cjson.so' no file '/usr/lib/x86_64-linux-gnu/lua/5.1/cjson.so' no file '/usr/lib/lua/5.1/cjson.so' no file '/usr/local/lib/lua/5.1/loadall.so'

System: Ubuntu 17.10 (Artful Aardvark)

any help on how to resolve this would be appreciated!

erdnaxeli commented 6 years ago

You need the cjson lua package.

paanvaannd commented 6 years ago

Thanks!

e: Ah... just read to the end of the README file and it mentions that I need to install lua-cjson as it is a dependency... oops :+)