require时报错:loop or previous error loading module "xxx"
来源:互联网 发布:linux pl2303驱动下载 编辑:程序博客网 时间:2024/06/11 12:36
语言:Lua
调用方法:require("xxx")
报错:lua: .\xxx.lua:1: loop or previous error loading module 'xxx'
原因:
(1)loop error,循环调用。也就是被require的xxx文件中,模块内部又调用该模块,导致死循环。
方法:修改文件名或者模块名,总之把循环解开。
(2)previous error,调用未定义完变量。在一个表中内部,某个变量调用了一个也是属于表内部的变量。在创建时整个表还压在栈中没完成创建,无法调用到。
方法:把要调用的变量放在最大的表之外,或者不要一次性涵盖在{ }中,分开 table.k = v 这样一句句创建。
阅读全文
0 0
- require时报错:loop or previous error loading module "xxx"
- 使用MySql时报错:Error loading MySQLdb module: No module named 'MySQLdb'
- Java-5-解决报错:Error Loading Project: Cannot load module xxx Details...
- 使用SRVCTL时报错:error while loading shared libraries
- 关于PyCharm导入自己写的module时报错:No Module Named XXX的解决方案
- fatal error: malformed or corrupted AST file: 'Unable to load module "/Users/xxx/Library/Developer/X
- nodejs express 启动报错:Error: Cannot find module 'xxx'
- django链接数据库报错Error loading MySQLdb module:No module named MySQLdb
- error while loading shared libraries: xxx
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- 运行错误:error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- error while loading shared libraries: xxx.so.0:cannot open shared object file: No such file or
- Error loading MySQLdb module: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
- gitlab push时报错error:failed to push some refs to 'git@xxx.xx.xx.xxx:xxxx/xxx.git'
- Error loading MySQLdb module: No module named MySQLdb
- django Error loading MySQLdb module:No module named MySQLdb
- python3 + Django :Error loading MySQLdb module No module named 'MySQLdb'
- 000040:在主方法中通过while循环将整数1~10相加,并将结果输出
- 微信扫码支付
- base64网络传输问题
- python学习之——字符串查找 find 和 index方法
- linux从官网安装mysql 5.6
- require时报错:loop or previous error loading module "xxx"
- 中国计算机学会CCF推荐国际学术会议和期刊目录-计算机网络
- js 多文件下载,不错
- IA插件文件编写
- clang++ for centos
- Spring AOP声明式事务异常回滚
- 【算法题】连续整数分解
- 将图片文件以流的方式写入到jsp页面
- Python logging模块详解