当前位置:网站首页>[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
边栏推荐
- What is a LAN domain name? How to parse?
- Is it safe to open an account in Ping An Securities mobile bank?
- Completion report of communication software development and Application
- The left-hand side of an assignment expression may not be an optional property access.ts(2779)
- Tutorial on the principle and application of database system (011) -- relational database
- Baidu digital person Du Xiaoxiao responded to netizens' shouts online to meet the Shanghai college entrance examination English composition
- Cenos openssh upgrade to version 8.4
- 【二叉树】删点成林
- 《看完就懂系列》天哪!搞懂节流与防抖竟简单如斯~
- (待会删)yyds,付费搞来的学术资源,请低调使用!
猜你喜欢
关于 Web Content-Security-Policy Directive 通过 meta 元素指定的一些测试用例
Pule frog small 5D movie equipment | 5D movie dynamic movie experience hall | VR scenic area cinema equipment
金融数据获取(三)当爬虫遇上要鼠标滚轮滚动才会刷新数据的网页(保姆级教程)
ENSP MPLS layer 3 dedicated line
Idea 2021 Chinese garbled code
IPv6 experiment
leetcode刷题:二叉树27(删除二叉搜索树中的节点)
Session
Hi3516 full system type burning tutorial
How to use PS link layer and shortcut keys, and how to do PS layer link
随机推荐
RHSA first day operation
[statistical learning methods] learning notes - improvement methods
SQL Lab (36~40) includes stack injection, MySQL_ real_ escape_ The difference between string and addslashes (continuous update after)
Idea 2021 Chinese garbled code
ES底层原理之倒排索引
SQL blind injection (WEB penetration)
ps链接图层的使用方法和快捷键,ps图层链接怎么做的
Is it safe to open an account in Ping An Securities mobile bank?
The IDM server response shows that you do not have permission to download the solution tutorial
leetcode刷题:二叉树19(合并二叉树)
In the small skin panel, use CMD to enter the MySQL command, including the MySQL error unknown variable 'secure_ file_ Priv 'solution (super detailed)
消息队列消息丢失和消息重复发送的处理策略
leetcode刷题:二叉树22(二叉搜索树的最小绝对差)
SQL Lab (32~35) contains the principle understanding and precautions of wide byte injection (continuously updated later)
利用棧來實現二進制轉化為十進制
数据库系统原理与应用教程(008)—— 数据库相关概念练习题
Is it safe to open Huatai's account in kainiu in 2022?
Sign up now | oar hacker marathon phase III midsummer debut, waiting for you to challenge
What is an esp/msr partition and how to create an esp/msr partition
Unity map auto match material tool map auto add to shader tool shader match map tool map made by substance painter auto match shader tool