Skip to content

Unable to create multiple directories to hold custom components #13102

@elcolie

Description

@elcolie

Bug Description

I am unable to create sub-directory to hold the custom component.

Reproduction

  1. Define .env with LANGFLOW_COMPONENTS_PATH=/home/sarit/codes/ls7-memory/components/
  2. cd /home/sarit/codes/ls7-memory/components
  3. tree
.
├── __init__.py
└── ls7_memory
    ├── background_extractor.py
    ├── converse_custom_component.py
    ├── debug_merger.py
    ├── __init__.py
    ├── kstore_retrieve_components
    │   ├── __init__.py
    │   └── test.py
    ├── memory_context.py
    └── memory_manager.py
  1. write ls7_memory/__init__.py like this
from components.ls7_memory.memory_context import MemoryContextComponent
from components.ls7_memory.memory_manager import MemoryManagerComponent
from components.ls7_memory.background_extractor import BackgroundMemoryExtractorComponent
from components.ls7_memory.converse_custom_component import BedrockStreamingComponent

__all__ = [
    "MemoryContextComponent",
    "MemoryManagerComponent",
    "BackgroundMemoryExtractorComponent",
    "BedrockStreamingComponent"
]
  1. write kstore_retrieve_components/__init__.py
from .test import sarit

__all__ = [
    "sarit"
]
  1. write test.py
def sarit():
    print("Hello Sarit")

Expected behavior

Expect kstore_retrieve_component show up in the web UI with sub directory.

Who can help?

No response

Operating System

Ubuntu 24.04

Langflow Version

1.9.1

Python Version

3.12

Screenshot

Image

Flow File

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions