IRL2 / IRL2/SubtleGame

Cannot run "run_game.py" from a terminal/command prompt

Open
#344 0 comments 0 reactions 1 assignee Claimed by @rhoslynroebuck View on GitHub
bug
Dominant language
C#
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

I cannot run the "run_game.py" script from a terminal. It works when running through the PyCharm IDE, however, when I use Windows Powershell the script gets stuck after it prints "Puppeteering client output:". When I click ctrl+C to exit the script, it prints the expected output from the puppeteering client. This is the output:

```
(subtle-game) ...\SubtleGame\Server> python .\run_game.py
Starting server...
Server started with PID: 33480

Starting puppeteering client...
Client started with PID: 15080

Puppeteering client output:

-------------------------------------------------
Cleanup called! Stopping all running processes...
Player username: sorePup7
Terminating client...
Number of trials per stimulus value: 3
First interaction mode: hands

STARTING GAME!

Game initialised:
Order of tasks: ['nanotube', 'knot-tying', 'trials-training', 'trials', 'nanotube', 'knot-tying', 'trials-training', 'trials']
Current interaction modality: hands
Waiting for player to connect...

Terminating server...
All processes stopped. Exiting.
(subtle-game) ...\SubtleGame\Server>
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.