typeidea icon indicating copy to clipboard operation
typeidea copied to clipboard

关于djdt-flamegraph插件的AttributeError: module 'signal' has no attribute 'SIGALRM':《Django企业开发实战》2020年3月河北第6次印刷第268页

Open MaoningGuan opened this issue 5 years ago • 0 comments

系统环境:

Windows 10专业版, 64bit
python 3.7.4
Django 1.11.29
django-debug-toolbar 1.9.1
djdt-flamegraph 0.2.12

在Windows系统上使用djdt-flamegraph插件的时候,会报以下错误:

AttributeError: module 'signal' has no attribute 'SIGALRM'

这是因为在djdt-flamegraph插件的代码里面用到了 module 'signal'的SIGALRM属性 , image 但是在Windows系统上的 module 'signal'没有SIGALRM属性,所以才会报错。 因此,djdt-flamegraph插件暂不支持在Windows系统中使用,但是在Linux中可以正常使用(在MAC上没有测试过)。

官方github:https://github.com/23andMe/djdt-flamegraph 上也有说明: image

MaoningGuan avatar Jun 23 '20 04:06 MaoningGuan