IRL2 / IRL2/SubtleGame

Issue When Running run_game.py

Open
#343 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

This is a small startup issue I’ve encountered while launching run_game.py using the Visual Studio Code terminal.

Here’s what’s happening:
I open the terminal in VS Code, where the default path is set to \SubtleGame. I know that to launch run_game.py, I need to cd into the \Server folder first. However, when I run the script for the first time after opening VS Code, it always fails with the following error:

PS C:\Users\ea23166\FakeD\GitHubProjectSavingFolder\SubtleGame> & C:/Users/ea23166/.conda/envs/nanover-dev/python.exe c:/Users/ea23166/FakeD/GitHubProjectSavingFolder/SubtleGame/Server/run_game.py
Starting server...
Server started with PID: 18184

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

Puppeteering client output:
Error in puppeteering client:
C:\Users\ea23166\.conda\envs\nanover-dev\python.exe: can't open file 'C:\\Users\\ea23166\\FakeD\\GitHubProjectSavingFolder\\Client\\puppeteering_client.py': [Errno 2] No such file or directory
Python client has stopped. Stopping server...

-------------------------------------------------
Cleanup called! Stopping all running processes...
Terminating server...
All processes stopped. Exiting.

It seems like run_game.py is being run from the wrong working directory on the first attempt each time I open VS Code, which causes it to fail to find the puppeteering client. Interestingly, once the initial run fails, if I manually cd into the \Server directory and run it again, it works perfectly.

Let me know if anything is unclear or if you’d like me to provide more details :)

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.