Skip to content

FastAPI issue #11

Closed
Closed
@EnragedAntelope

Description

@EnragedAntelope

Hi,
Thank you for making this!
Please review how this is importing fastapi - may be a capitalization error? Not sure if something changed between versions of fastapi but trying to run lextools consistently throws this error:

Traceback (most recent call last):
  File "D:\ComfyUI\nodes.py", line 1993, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\ComfyUI\custom_nodes\ComfyUI-LexTools\__init__.py", line 2, in <module>
    from .nodes import SegformerNode,ImageCaptioningNode,ImageProcessingNode
  File "D:\ComfyUI\custom_nodes\ComfyUI-LexTools\nodes\ImageProcessingNode.py", line 2, in <module>
    from fastapi import FastApi
ImportError: cannot import name 'FastApi' from 'fastapi' (D:\ComfyUI\venv\Lib\site-packages\fastapi\__init__.py)

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