Skip to content

[BUG] ComfyStream must be ran from ComfyUI as CWD #562

@eliteprox

Description

@eliteprox

Describe the bug

When running ComfyStream server (app.py or byoc.py), the CWD currently must be the ComfyUI workspace, this causes unnecessary complexity and breaks comfyui package import behavior

To Reproduce

  1. Open comfystream in dev container
  2. From /workspace/comfystream, run python server/app.py --workspace /workspace/ComfyUI --media-ports=5678 --host=0.0.0.0 --port=8889
  3. Comfystream server will start.
  4. Run ComfyStream UI and send a stream to the server, SaveTensor errors will occur

Note: This issue was mitigated in #548 however, the associated PR only corrects the CWD that supervisord is ran from rather than addressing the core issue

Expected behavior

ComfyStream should be runnable from any dir. The --workspace flag should be honored

Screenshots

No response

Desktop (please complete the following information)

No response

Smartphone (please complete the following information)

No response

Additional context

Ideally, any flag supported by ComfyUI should be usable by ComfyStream for ComfyUI initialization

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions