Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

AttributeError: 'SlippstreamClient' object has no attribute 'server' #96

@tejashah88

Description

@tejashah88

When trying to stop the Dolphin console via the .stop() method, there seems to be an attribute error coming from an uninitialized variable.

Traceback (most recent call last):
  File "<redacted>", line 110, in cleanup
    console.stop()
  File "<redacted>/env/lib/python3.10/site-packages/melee/console.py", line 293, in stop
    self._slippstream.shutdown()
  File "<redacted>/env/lib/python3.10/site-packages/melee/slippstream.py", line 71, in shutdown
    self.server.close()
AttributeError: 'SlippstreamClient' object has no attribute 'server'

Upon closer inspection of SlippstreamClient, I noticed that there's a gamecube flag, which is used within the Console class (here). However strangely, it seems that the logic is swapped, where if the system property is set to "dolphin", then the gamecube flag is set to True and vice versa. I'm not sure if this is intended or if swapping the logic will work but it seems to be the obvious (but not necessarily correct) fix.

This fix should also allow Dolphin to be properly shutdown and the temporary directory to be removed if set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions