当前位置:网站首页>[Q&A]AttributeError: module ‘signal‘ has no attribute ‘SIGALRM‘
[Q&A]AttributeError: module ‘signal‘ has no attribute ‘SIGALRM‘
2022-07-07 12:34:00 【Sickle leek】
AttributeError: module 'signal' has no attribute 'SIGALRM'
Problem description :
When using spellpy When parsing log files , The following error occurred :
The code executed is :
for log_name in ['openstack_abnormal.log', 'openstack_normal2.log', 'openstack_normal1.log']:
parser.parse(log_name)
The error message is :
Traceback (most recent call last):
File "preprocess.py", line 62, in <module>
parser.parse(log_name)
File "D:\Anaconda\lib\site-packages\spellpy\spell.py", line 188, in parse
self.load_data()
File "D:\Anaconda\lib\site-packages\spellpy\spell.py", line 300, in load_data
self.df_log = self.log_to_dataframe(os.path.join(self.path, self.logname), regex, headers, self.logformat)
File "D:\Anaconda\lib\site-packages\spellpy\spell.py", line 316, in log_to_dataframe
signal.signal(signal.SIGALRM, self._log_to_dataframe_handler)
AttributeError: module 'signal' has no attribute 'SIGALRM'
Problem analysis
spell Called signal modular , This module can be used in linux Under normal use , But in windows But there are some restrictions :
“On Windows, signal() can only be called with SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, or SIGTERM. A ValueError will be raised in any other case.”
stay Windows Only these signal types are allowed to be used in the environment :
- SIGABRT
- SIGFPE
- SIGILL
- SIGINT
- SIGSEGV
- SIGTERM
边栏推荐
- wallys/Qualcomm IPQ8072A networking SBC supports dual 10GbE, WiFi 6
- 【PyTorch实战】用RNN写诗
- leetcode刷题:二叉树25(二叉搜索树的最近公共祖先)
- 数据库系统原理与应用教程(008)—— 数据库相关概念练习题
- 普乐蛙小型5d电影设备|5d电影动感电影体验馆|VR景区影院设备
- Attack and defense world ----- summary of web knowledge points
- 开发一个小程序商城需要多少钱?
- 2022A特种设备相关管理(锅炉压力容器压力管道)模拟考试题库模拟考试平台操作
- Tutorial on the principle and application of database system (008) -- exercises on database related concepts
- Hi3516 full system type burning tutorial
猜你喜欢

Processing strategy of message queue message loss and repeated message sending

leetcode刷题:二叉树22(二叉搜索树的最小绝对差)

Pule frog small 5D movie equipment | 5D movie dynamic movie experience hall | VR scenic area cinema equipment

SQL head injection -- injection principle and essence

Epp+dis learning road (2) -- blink! twinkle!

Minimalist movie website

(to be deleted later) yyds, paid academic resources, please keep a low profile!

The road to success in R & D efficiency of 1000 person Internet companies

OSPF exercise Report

Idea 2021 Chinese garbled code
随机推荐
平安证券手机行开户安全吗?
What are the top-level domain names? How is it classified?
"Series after reading" my God! It's so simple to understand throttling and anti shake~
Configure an encrypted web server
PowerShell cs-utf-16le code goes online
leetcode刷题:二叉树20(二叉搜索树中的搜索)
Tutorial on principles and applications of database system (009) -- conceptual model and data model
【PyTorch实战】用RNN写诗
About sqli lab less-15 using or instead of and parsing
解密GD32 MCU产品家族,开发板该怎么选?
数据库系统原理与应用教程(009)—— 概念模型与数据模型
EPP+DIS学习之路(2)——Blink!闪烁!
Attack and defense world ----- summary of web knowledge points
gcc 编译报错
VSCode的学习使用
Solutions to cross domain problems
Cenos openssh upgrade to version 8.4
About web content security policy directive some test cases specified through meta elements
《看完就懂系列》天哪!搞懂节流与防抖竟简单如斯~
编译 libssl 报错