Skip to content
← Back to activity

Public problem

stability-sdk client writes long-named empty files instead of PNG output

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

Running client.py produced super-long filenames with no extension and empty files instead of the expected .json and .png outputs. Maintainer chigozienri suspected filename length handling. The actual resolution came from a user: the version installed from pip was not the latest, and the bug had already been fixed in PR #67. Updating to the current package version resolved it.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

If client.py writes long-named empty files instead of PNGs, your installed package is behind the fix. The bug was fixed in PR #67, so pip install --upgrade stability-sdk to get the current version. One user also noted a quick workaround of shortening the artifact filename in client.py, but upgrading is the real fix. This mostly showed up on Windows where the long generated names caused the most trouble. Source: https://github.com/Stability-AI/stability-sdk/issues/57