[英]Am trying to launch in Cpanel, but am getting a Module not found error
enter image description here I'm new to Cpanel and am trying to launch my python Django project, I think I've set up everything correctly but am getting this error: File "/opt/alt/python38/lib64/python3.8/importlib/ init .py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named '<my_module_name>' [UID:2291][2142962] Child process with pid: 2149437 was killed by signal: 15, core dump: 0在此处输入图片描述我是 Cpanel 的新手,正在尝试启动我的 python Django 项目,我想我已经正确设置了所有内容,但出现此错误:文件“/opt/alt/python38/lib64/python3.8/ importlib/ init .py”,第 127 行,在 import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named '<my_module_name>' [UID:2291][2142962] 具有 pid 的子进程: 2149437 被信号杀死:15,核心转储:0
so I tried rearranging my apps in settings.py, which has led me to believe that the problem maybe due to the fact that, my app are not being identified.所以我尝试在 settings.py 中重新排列我的应用程序,这让我相信这个问题可能是因为我的应用程序没有被识别。 I had created my project using python version 3.9.10, but my cpanel can only support version 3.8.6, so I had to downgrade, and I think this maybe the root of all my issues.我使用 python 版本 3.9.10 创建了我的项目,但我的 cpanel 只能支持版本 3.8.6,所以我不得不降级,我认为这可能是我所有问题的根源。
Any help offered would be much appreciated, thanks in advance提供的任何帮助将不胜感激,在此先感谢
Ok so i found the answer a few days ago, just forgot to give it here.好的,所以我几天前找到了答案,只是忘了在这里给出。 So I simply just took all my files one directory back, and voila, problem solved.所以我只是把我所有的文件都放回一个目录,瞧,问题就解决了。 Sometimes, I guess when the complex solutions can't work, just take a step back and be a bit simplistic.有时候,我猜想当复杂的解决方案行不通时,就退后一步,简单一点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.