Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MaoningGuan opened this issue Jun 23, 2020 · 0 comments

Comments

@MaoningGuan
Copy link

MaoningGuan commented Jun 23, 2020

系统环境:

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 MaoningGuan changed the title 关于 djdt-flamegraph插件的 attributeerror: module 'signal' has no attribute 'sigalrm':《Django企业开发实战》2020年3月河北第6次印刷第268页 关于 djdt-flamegraph插件的AttributeError: module 'signal' has no attribute 'SIGALRM':《Django企业开发实战》2020年3月河北第6次印刷第268页 Jun 23, 2020
@MaoningGuan MaoningGuan changed the title 关于 djdt-flamegraph插件的AttributeError: module 'signal' has no attribute 'SIGALRM':《Django企业开发实战》2020年3月河北第6次印刷第268页 关于djdt-flamegraph插件的AttributeError: module 'signal' has no attribute 'SIGALRM':《Django企业开发实战》2020年3月河北第6次印刷第268页 Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant