Python ValueError: source code string cannot contain null bytes unable to load app 0 (mountpoint=‘‘)
ValueError: source code string cannot contain null bytesunable to load app 0 (mountpoint=‘’) (callable not found or import error)*** no app loaded. going in full dynamic mode ***
·
1、今天,部署项目时,用django+uwsgi+nginx部署时,出现了一个错误,重要的信息如下:
ValueError: source code string cannot contain null bytes
unable to load app 0 (mountpoint=‘’) (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
2、原因,文件传输时,python目录底下的__init__py文件填充了值进去,不是空文件,如下图所示:
可以使用下面的命令,对其置空操作,命令如下:
> __init__.py
更多推荐
已为社区贡献2条内容
所有评论(0)