简体   繁体   English

我正在尝试在 Cpanel 中启动,但收到模块未找到错误

[英]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.

相关问题 我收到来自我尝试使用的 Tkinter 模块的错误消息 - I am getting an error message from a Tkinter module I am trying to use 尝试将Python 2.7脚本移植到Python 3.6(队列模块…)时,出现“模块不可调用”错误? - I am getting “module is not callable” error while trying to port Python 2.7 script to Python 3.6 (the queue module…)? 尝试替换时出现类型错误 - I am getting a type error when I am trying to replace 我收到错误:在 django 中找不到页面 - I am getting error: Page not found in django 我正在尝试安装 PyQt6 并收到元数据错误 - I am trying to install PyQt6 and am getting metadata error 我在使用 hashlib 模块时遇到错误 - I am getting an error with hashlib module 我正在尝试拟合 CuDNNLSTM 模型,但出现错误 - I am trying to fit an CuDNNLSTM model and I am getting an error 我正在尝试登录 discord 但我收到错误代码 - I am trying to log in discord but i am getting an error code 我正在尝试下载 Django-heroku。 但我收到此错误:找不到 pg_config 可执行文件。,如何解决? - I am trying to download Django-heroku. But I am getting this Error: pg_config executable not found., how to solve it? 我正在尝试从另一个模块获取 API 一切都正确我不知道为什么会出现此错误? - I am trying to get the API from another module everything is corrects i dont know why i am getting this error?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM