-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom component error (Component has not been built yet) #6019
Comments
Hey there, @Bal1! I'm here to help you with any bugs, questions, or contributions. Feel free to ask for assistance while we wait for a human maintainer. I found a similar solved discussion that might be relevant to your issue. The discussion titled Component Running Error addresses issues with custom components not running correctly alongside front-end components. Here are some potential causes and solutions mentioned:
Review these aspects of your custom component and its integration with the text input to identify and resolve the issue [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu I changed component names, all component are working separatelly, but when running last element - error appears: ![]() |
When connecting multiple custom components in Langflow, ensure that there are no overlapping names between inputs and outputs, as this can cause conflicts and errors [1]. Additionally, verify that each component is properly validated and compatible with the others. Langflow uses a Directed Acyclic Graph (DAG) to manage execution order, so ensure that your components are correctly integrated into this flow [2]. If the error persists, check the specific error messages or logs generated by Langflow. Common errors include invalid return types, type conversion issues, or problems building components [3]. These logs can provide more insight into what might be causing the issue. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu I changed output names also, but issue exists. ![]() Error log:
|
The error message "Component Component2 has not been built yet" suggests that the component is not being executed in the correct order or is missing necessary inputs. Here are some steps to troubleshoot and resolve the issue:
By following these steps, you should be able to identify and resolve the issue with "Component2" not being built. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@italojohnny maybe you can help with this issue? |
hi @Bal1, When you are returning a value, you have to construct the class you are returning It.
def build_output(self) -> Message: |
@Cristhianzl can you open an example I attached? all custom components have a class in return method, but when you connect it to langflow component (for example text) it stop working. |
Bug Description
When connecting text inputs - all is ok, but when you want connect custom component with text input - langflow thrown an error.
Need to connect 2 or more custom components, with one custom component all is ok.
Reproduction
Expected behavior
text input component should receive text from custom componentn
Who can help?
@italojohnny
Operating System
Docker
Langflow Version
1.1.3
Python Version
None
Screenshot
Flow File
custom component error.json
The text was updated successfully, but these errors were encountered: