python - 如何修复 Django/python free() : invalid pointer?

标签 python django

当我运行 django manage.py 应用程序时,出现 free(): invalid point 错误。

示例:

>python manage.py check
System check identified no issues (0 silenced).
free(): invalid pointer
Abortado (imagem do núcleo gravada)

django 应用程序运行良好,但我正在尝试摆脱此消息。

如何修复此错误或获取更多信息来调试它?

Python 3.8.10 (default, Jun 22 2022, 20:18:18) 
[GCC 9.4.0] on linux (Ubuntu 20.04)
Django==2.2.28
with virtualenv

最佳答案

我已经使用相同的 Django 版本在相同的环境中进行了测试,并且运行了 check 命令,这没有产生此问题。我认为这是 Pytorch 的问题,如下所述: GitHub issue #21018

要解决此问题,您可以采取以下步骤(从该答案复制粘贴:https://stackoverflow.com/a/56363390/2696165)


There is a known issue with importing both open3d and PyTorch. A few possible workarounds exist:

(1) Some people have found that changing the order in which you import the two packages can resolve the issue, though in my personal testing both ways crash.

(2) Other people have found compiling both packages from source to help.

(3) Still others have found that moving open3d and PyTorch to be called from separate scripts resolves the issue.

关于python - 如何修复 Django/python free() : invalid pointer?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73313134/

相关文章:

python - ZeroMQ:发送前必须 sleep

python - 在 Windows 的 anaconda 提示符下访问 root

django dumpdata 挂起

python - Django:使用 Javascript 解析我的模板中的 JSON

python - 在设置中使用 debug=false 的 Django-Compress 给出错误

python - 如何在没有 numpy 和 scipy 的情况下找到特征向量和特征值?

python - 在 Python 中不使用 Replace 函数替换多个字母

python - jupyter 笔记本上找不到 PhantomJS

django - 制作 : *** [port-target] Error 2 When trying to install GDAL for GeoDjango using Ubuntu 18. 04

django - 无法在 django 的数据库中存储散列密码