Skip to content

Comments

Improve Windows compatibility for port generation#248

Open
denini08 wants to merge 1 commit intoWisconsinAIVision:masterfrom
denini08:patch-wind
Open

Improve Windows compatibility for port generation#248
denini08 wants to merge 1 commit intoWisconsinAIVision:masterfrom
denini08:patch-wind

Conversation

@denini08
Copy link

Fixes #235

The current port generation code uses os.getuid() which is not available on Windows, causing the application to crash.

This PR adds a cross-platform solution that:

  • Uses os.getuid() on Unix/Linux systems
  • Falls back to getpass.getuser() on Windows

Both approaches generate a user-specific port number as intended.

@denini08 denini08 changed the title Fix Windows compatibility for port generation Improve Windows compatibility for port generation Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

There was a problem during running the train.py file

1 participant