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

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

Closed
Demonweb opened this issue Sep 21, 2017 · 2 comments
Closed

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

Demonweb opened this issue Sep 21, 2017 · 2 comments

Comments

@Demonweb
Copy link

I get the following error when running the Jupyter Notebook step.
This happens in PPO and Basic versions.
I have windows 10 and latest unity 2017.2.0b6 Personal

The Game opens up and the balls drop, but the tables do not move.
The brain is set to external.

I build the unity environment and put the .exe here : ....\ml-agents-master\python

ppo.py
setup.py
3DBall.exe
3DBall_data

here is what I updated in the Jupyter Notebook

General parameters

max_steps = 10000 # Set maximum number of steps to run environment.
run_path = "ppo" # The sub-directory name for model and summary statistics
load_model = False # Whether to load a saved model.
train_model = True # Whether to train the model.
summary_freq = 10000 # Frequency at which to save training statistics.
save_freq = 50000 # Frequency at which to save model.
env_name = "3DBall" # Name of the training environment file.


ERROR MESSAGE

Load the environment
In [3]:

env = UnityEnvironment(file_name=env_name)
print(str(env))
brain_name = env.brain_names[0]

AttributeError Traceback (most recent call last)
in ()
----> 1 env = UnityEnvironment(file_name=env_name)
2 print(str(env))
3 brain_name = env.brain_names[0]

C:\Users\mpliszka\Documents\UnityProjects\ml-agents-master\python\unityagents\environment.py in init(self, file_name, worker_id, base_port)
86 str(file_name)))
87
---> 88 old_handler = signal.signal(signal.SIGALRM, timeout_handler)
89 signal.alarm(30) # trigger alarm in x seconds
90 try:

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

@awjuliani
Copy link
Contributor

Hi @Demonweb,

Sorry you encountered this issue. It has been fixed in master (see #9). Please try downloading the newer package, and let me know if the issue persists.

@lock
Copy link

lock bot commented Jan 5, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants