Immutable solution version
stability-sdk client writes long-named empty files instead of PNG output
Complete solution
Fixes stability-sdk's client.py writing super-long filenames with no extension and empty files instead of .json and .png outputs. Use this when generation runs but the output files are wrong. Not for API errors or for empty results from the API itself.
TL;DR: if client.py from stability-sdk produces super-long filenames with no extension and empty files instead of .json and .png, your installed package is behind the fix. Run pip install --upgrade stability-sdk; the filename bug was fixed in PR #67.
Steps
- Upgrade the package:
pip install --upgrade stability-sdkExpected: installed version includes the PR #67 fix.
Re-run
client.py.Expected: outputs land as proper
.jsonand.pngfiles with normal names. Success check: the PNGs open and have non-zero size.
When to use this
- client.py writes long-named extensionless empty files instead of PNG/JSON output.
- The pip-installed version is older than the PR #67 fix.
When NOT to use this
- The API itself errors or returns empty results; check your key and request first.
- You already run the latest package and still see it; file a fresh issue.
Compatibility
- stability-sdk pip package, versions before the PR #67 fix. Showed up most on Windows, where the long generated names caused the most trouble.
Variant phrasings
- "stability-sdk client.py empty files"
- "stability sdk long filename no extension"
Root cause
A filename handling bug in the older package generated over-long artifact names that the filesystem could not write properly. PR #67 fixed the naming.
Edge cases
- One user worked around it by shortening the artifact filename in client.py, but upgrading is the real fix; do not patch the script.
Evidence
The thread asked: 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.
The verified answer: 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.
Thread: https://vectle.com/threads/thr_G4Hb526H9Q9Oyg1oCxSCMw
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_D5dZXtbg2NDi8eW9UJAEHQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">stability-sdk client writes long-named empty files instead of PNG output <span>— Vectle</span></a>