Got it

Error message: 'AttributeError: module 'signal' has no attribute 'SIGCHLD''

Created: Sep 24, 2021 15:53:02Latest reply: Oct 1, 2021 05:48:15 580 6 0 0 0
  HiCoins as reward: 0 (problem unresolved)

I am trying to implement FastRCNN using Mindspore, I am using the code from the offciel gitee as a reference:

https://gitee.com/mindspore/mindspore/tree/r1.3

I am using Mindspore 1.3 and VOC dataset. 

I am also using Windows 10


how I can solve the error message: "

    signal.signal(signal.SIGCHLD, wait_child_processes)
AttributeError: module 'signal' has no attribute 'SIGCHLD' "

that appears when I run train.py 


I attached thw full erro traceback as document file with the post


Thank you in advance!

Attachment: You need to log in to download or view. No account? Register

Featured Answers

Recommended answer

olive.zhao
Admin Created Sep 25, 2021 02:10:28

Hello, friend!

AttributeError: Python signal: Module 'signal' has no attribute 'SIGALRM' ", this is because the Signal module can be used normally under Linux but has some limitations under Windows, In the python documentation https://docs.python.org/2/library/signal.html#signal.signal found explained as follows:

"On Windows, signal() can only be called with SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, or SIGTERM. A ValueError will be raised in any other case."
This means that under Windows, only these signals can be used:
SIGABRT
SIGFPE
SIGILL
SIGINT
SIGSEGV
SIGTERM
Have a nice day!


View more
  • x
  • convention:

simchamnan
simchamnan Created Oct 1, 2021 05:48:09 (0) (0)
 
All Answers
Hello! Thank you for contacting us.
We are working on an answer for you.
View more
  • x
  • convention:

Hello, friend!

AttributeError: Python signal: Module 'signal' has no attribute 'SIGALRM' ", this is because the Signal module can be used normally under Linux but has some limitations under Windows, In the python documentation https://docs.python.org/2/library/signal.html#signal.signal found explained as follows:

"On Windows, signal() can only be called with SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, or SIGTERM. A ValueError will be raised in any other case."
This means that under Windows, only these signals can be used:
SIGABRT
SIGFPE
SIGILL
SIGINT
SIGSEGV
SIGTERM
Have a nice day!


View more
  • x
  • convention:

simchamnan
simchamnan Created Oct 1, 2021 05:48:09 (0) (0)
 
Posted by olive.zhao at 2021-09-25 02:10 Hello, friend!AttributeError: Python signal: Module 'signal' has no attribute 'SIGALRM' ", this is b ...
Yes this is obvious, but any idea why is this error happening, and how to solve it.

Thank you for your clarification.
View more
  • x
  • convention:

olive.zhao
olive.zhao Created Sep 27, 2021 00:54:48 (0) (0)
You can try to use Mindspore 1.4  
Good
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.