Replies: 10 comments 7 replies
-
Hey @SVyusti! I'm here to help you with any issues or questions you have. Let me know how I can assist you! Langflow does not support relative imports for custom component scripts. The system is designed to work with absolute imports, and using relative imports might not be supported or could cause issues [1][2]. |
Beta Was this translation helpful? Give feedback.
-
i have created a directory named custom_components and added python scripts in it. I would like to import function from another component in the same directory, is this possible. |
Beta Was this translation helpful? Give feedback.
-
this is my current directory structure |
Beta Was this translation helpful? Give feedback.
-
directory structure: |
Beta Was this translation helpful? Give feedback.
-
utils - Error while evaluating custom component code: Module document_processor not found. Please install it and try again. |
Beta Was this translation helpful? Give feedback.
-
absolute import is also not working |
Beta Was this translation helpful? Give feedback.
-
DocumentProcessor and AttributionComponent is being created, TestComponent is not being built |
Beta Was this translation helpful? Give feedback.
-
can I import functions from an already existing directory which is in the same virtual environment as langflow? |
Beta Was this translation helpful? Give feedback.
-
create 2 files in local directory, one a python script and one a custom_component. Is it possible to import the python function in the custom_component and export it to langflow? |
Beta Was this translation helpful? Give feedback.
-
Hi! 👋 We are using other channels as our official means of communication with users. We apologize for the delayed response. Thank you for your understanding. Best regards, |
Beta Was this translation helpful? Give feedback.
-
when uploading custom components from directory to langflow, can we use relative imports of functions and constants in the custom component script
Beta Was this translation helpful? Give feedback.
All reactions