admin avatar

openwork luci no field package.preload['luci.cbi.datatypes'] 解决方法

🕥 by admin

openwork luci no field package.preload['luci.cbi.datatypes'] 解决方法

报错信息如下

1
2
3
4
5
6
7
8
9
10
11
12
13
14

Runtime error

Unhandled exception during request dispatching
/usr/lib/lua/luci/ucodebridge.lua:23: /usr/lib/lua/luci/passwall/api.lua:8: module 'luci.cbi.datatypes' not found: no field package.preload['luci.cbi.datatypes'] no file './luci/cbi/datatypes.lua' no file '/usr/share/lua/luci/cbi/datatypes.lua' no file '/usr/share/lua/luci/cbi/datatypes/init.lua' no file '/usr/lib/lua/luci/cbi/datatypes.lua' no file '/usr/lib/lua/luci/cbi/datatypes/init.lua' no file './luci/cbi/datatypes.so' no file '/usr/lib/lua/luci/cbi/datatypes.so' no file '/usr/lib/lua/loadall.so' no file './luci.so' no file '/usr/lib/lua/luci.so' no file '/usr/lib/lua/loadall.so'  In error(), file [C] called from function [anonymous function] (/usr/lib/lua/luci/ucodebridge.lua:23) called from function ((tail call)) 
In [anonymous function](), file /usr/share/ucode/luci/runtime.uc, line 148, byte 45:
  called from function build_pagetree (/usr/share/ucode/luci/dispatcher.uc:382:73)
  called from function menu_json (/usr/share/ucode/luci/dispatcher.uc:439:26)
  called from function [anonymous function] (/usr/share/ucode/luci/dispatcher.uc:898:24)
  called from anonymous function (/www/cgi-bin/luci:39:13)

 `        return lcall.call(modname, method, ...args);`
  Near here ----------------------------------------^

解决方法如下

opkg install luci-compat

写一条评论