Ask Your Question

Ken.C's profile - activity

2021-02-02 12:13:24 +0000 received badge  Taxonomist
2020-12-16 03:29:39 +0000 received badge  Famous Question (source)
2020-12-16 03:29:39 +0000 received badge  Notable Question (source)
2020-12-16 03:29:39 +0000 received badge  Popular Question (source)
2018-08-10 02:21:36 +0000 marked best answer BinDecHex.lua: Error - bad argument to module(..., package.seeall);

Hello, I am having trouble setting wireshark to read OMCI package in Ubuntu 18.04. I was trying to use the https://github.com/antran-ptit/omci-w... omci.lua and BinDecHex.lua to read OMCI package, which was suggested by Wireshark contribute wiki (https://wiki.wireshark.org/Contrib).

I tried to copy these two files into the my global wireshark lua folder

/usr/lib/x86_64-linux-gnu/wireshark/plugins

and then adding the line

dofile(DATA_DIR.."omci.lua")

in my init.lua.

While running the omci-example.pcap, I received the following 2 error:

[string "/usr/lib/x8664-linux-gnu/wireshark/plugins/o..."]:43: module 'BinDecHex' not found: no field package.preload['BinDecHex'] no file '/usr/local/share/lua/5.2/BinDecHex.lua' no file '/usr/local/share/lua/5.2/BinDecHex/init.lua' no file '/usr/local/lib/lua/5.2/BinDecHex.lua' no file '/usr/local/lib/lua/5.2/BinDecHex/init.lua' no file '/usr/share/lua/5.2/BinDecHex.lua' no file '/usr/share/lua/5.2/BinDecHex/init.lua' no file './BinDecHex.lua' no file '/usr/local/lib/lua/5.2/BinDecHex.so' no file '/usr/lib/x8664-linux-gnu/lua/5.2/BinDecHex.so' no file '/usr/lib/lua/5.2/BinDecHex.so' no file '/usr/local/lib/lua/5.2/loadall.so' no file './BinDecHex.so'

Lua: Error during loading: [string "/usr/lib/x86_64-linux-gnu/wireshark/plugins/B..."]:53: bad argument #1 to 'module' (string expected, got nil)

Appearently the BinDecHex.lua doesn't recognize the module(...,package.seeall)? Any idea how to solve this problem?

2018-08-10 02:21:36 +0000 received badge  Scholar (source)
2018-08-10 02:21:24 +0000 commented answer BinDecHex.lua: Error - bad argument to module(..., package.seeall);

Thanks alot! I didn't realize you don't need to add dofile(DATA_DIR.."omci.lua") anymore. Most of all, that module("BinD

2018-08-09 03:43:54 +0000 edited question BinDecHex.lua: Error - bad argument to module(..., package.seeall);

BinDecHex.lua: Error - bad argument to module(..., package.seeall); Hello, I am having trouble setting wireshark to read

2018-08-09 03:43:37 +0000 received badge  Editor (source)
2018-08-09 03:43:37 +0000 edited question BinDecHex.lua: Error - bad argument to module(..., package.seeall);

BinDecHex.lua: Error - bad argument to module(..., package.seeall); Hello, I am having trouble setting wireshark to read

2018-08-09 03:43:10 +0000 asked a question BinDecHex.lua: Error - bad argument to module(..., package.seeall);

BinDecHex.lua: Error - bad argument to module(..., package.seeall); Hello, I am having trouble setting wireshark to read