akatz-ai / ComfyUI-Depthflow-Nodes

An implementation of Depthflow in ComfyUI
GNU Affero General Public License v3.0
146 stars 5 forks source link

StdTimeFilter' object has no attribute 'isatty' #19

Open makeitrad opened 6 days ago

makeitrad commented 6 days ago

Started to get this one today after the latest ComfyUI update. Tried uninstall and using the FIX in manager but no love. This is on Linux Ubuntu 22.04 LTS w/ 4090

THX in advance Akatz!

Traceback (most recent call last):
  File "/home/zvi/ComfyUI/nodes.py", line 2001, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/zvi/ComfyUI/custom_nodes/ComfyUI-Depthflow-Nodes/__init__.py", line 8, in <module>
    from .src.motion.depthflow_motion_components import DepthflowMotionSine, DepthflowMotionCosine, DepthflowMotionLinear, DepthflowMotionExponential, DepthflowMotionArc, DepthflowMotionSetTarget
  File "/home/zvi/ComfyUI/custom_nodes/ComfyUI-Depthflow-Nodes/src/motion/depthflow_motion_components.py", line 1, in <module>
    from .depthflow_motion_base import DepthflowMotion, Target
  File "/home/zvi/ComfyUI/custom_nodes/ComfyUI-Depthflow-Nodes/src/motion/depthflow_motion_base.py", line 2, in <module>
    from DepthFlow.Motion import Preset
  File "/home/zvi/miniconda3/envs/comfy4/lib/python3.10/site-packages/DepthFlow/__init__.py", line 2, in <module>
    from Broken import BrokenProject
  File "/home/zvi/miniconda3/envs/comfy4/lib/python3.10/site-packages/Broken/__init__.py", line 63, in <module>
    class Runtime:
  File "/home/zvi/miniconda3/envs/comfy4/lib/python3.10/site-packages/Broken/__init__.py", line 117, in Runtime
    Interactive: bool = sys.stdout.isatty()
AttributeError: 'StdTimeFilter' object has no attribute 'isatty'

Cannot import /home/zvi/ComfyUI/custom_nodes/ComfyUI-Depthflow-Nodes module for custom nodes: 'StdTimeFilter' object has no attribute 'isatty'
akatz-ai commented 3 days ago

Hey @makeitrad, my buddy Cyncratic tried downgrading the depthflow version to 1.0.3 using the latest comfyui beta. If you're able to use that node version it should hopefully still work. I'm out traveling in Japan for another week but when I get back I'll install the latest comfyui beta version and see if I can't fix it.

makeitrad commented 1 day ago

Thanks for the workaround @akatz-ai. Ill give this a shot and see if it works. Im actually not on the beta of ConmfyUI just the frontend. Don't think the frontend will make a difference however Ill turn that off as well and see if that fixes things. Safe travels and have fun in Japan! Thanks for all you do!