Replies: 1 comment
|
We've analyzed your issue and identified two related problems: 1️⃣ Depth Limitation (MAX_DEPTH)Langflow has a constant This means only files up to depth level 2 are discovered: Your components in 2️⃣ UI Behavior (Categories vs Subdirectories)Even if we increase
Langflow does not support hierarchical subdirectories in the UI, only first-level categories. ✅ Recommended SolutionReorganize your components using first-level categories: Option 1: One category for all components
from .background_extractor import BackgroundMemoryExtractorComponent
from .converse_custom_component import BedrockStreamingComponent
from .debug_merger import DebugMergerComponent
from .memory_context import MemoryContextComponent
from .memory_manager import MemoryManagerComponent
from .test import TestComponent # or the actual class name
__all__ = [
"BackgroundMemoryExtractorComponent",
"BedrockStreamingComponent",
"DebugMergerComponent",
"MemoryContextComponent",
"MemoryManagerComponent",
"TestComponent",
]Option 2: Split into two independent categoriesIn the Langflow UI, you will see:
Option 3: Use prefixes for logical groupingIf you want to group components logically, use prefixes in category names: This way, related components appear grouped alphabetically in the UI. 🔧 Expected vs Actual Structure❌ Structure that DOES NOT work:✅ Structure that WORKS:🎯 Summary
🧪 ReproductionWe created a reproduction case that confirms this behavior: # Test structure created
test_custom_components/
└── test_category/ ← Level 1
├── level2_component.py ← Level 2 ✅ DISCOVERED
└── subcategory/ ← Level 2
└── level3_component.py ← Level 3 ❌ NOT DISCOVEREDResult with MAX_DEPTH=2: Only Hope this clarifies the behavior! Let us know if you need further assistance. Tested on: Langflow v1.10.0 (branch release-1.10.0) |
Uh oh!
There was an error while loading. Please reload this page.
Bug Description
I am unable to create sub-directory to hold the custom component.
Reproduction
.envwithLANGFLOW_COMPONENTS_PATH=/home/sarit/codes/ls7-memory/components/cd /home/sarit/codes/ls7-memory/componentsls7_memory/__init__.pylike thiskstore_retrieve_components/__init__.pytest.pyExpected behavior
Expect
kstore_retrieve_componentshow 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
Flow File
No response
All reactions