langflow
langflow copied to clipboard
ModuleNotFoundError: No module named 'pwd' at 'langflow run'
Describe the bug ModuleNotFoundError: No module named 'pwd' at 'langflow run' on windows os
Browser and Version
- Browser [chrome]
- Version [lanflow 0.6.7a5]
To Reproduce Steps to reproduce the behavior:
- make backend
Screenshots
...
from langchain.document_loaders.base import BaseLoader
File "C:\Users\jwoo.song\AppData\Local\pypoetry\Cache\virtualenvs\langflow-vRmGdvlj-py3.10\lib\site-packages\langchain\document_loaders\base.py", line 1, in
Additional context using pwd in PebbloSafeLoader
π€
Hey there, @songjinu! Nice to see you diving into new adventures with langflow. Running into a bit of trouble, are we? Let's see what we can do about that π
The error you're encountering, "ModuleNotFoundError: No module named 'pwd'", is typically seen on Windows because the 'pwd' module is Unix-specific and is not available on Windows.
The 'pwd' module is being used in the PebbloSafeLoader
class in the langchain_community.document_loaders.pebblo
module. If you're running Langflow on a Windows machine, this could be the source of the problem.
A similar issue was previously reported in the Langflow repository: Is it possible to run langflow on windows platform?. The suggested solution was to update to version 0.0.40, which should work on Windows. However, since you're using a later version (0.6.7a5), this solution might not apply to your case.
If the 'pwd' module is essential to the functionality of the PebbloSafeLoader
class, you might need to find a workaround or an alternative module that provides similar functionality and is compatible with Windows. Without knowing the specific use of the 'pwd' module in this context, it's hard to suggest a specific alternative.
If you could provide more information about how the 'pwd' module is being used in the PebbloSafeLoader
class, I might be able to suggest a more specific solution.
Sources
- Is it possible to run langflow on windows platform?
- src/backend/langflow/interface/importing/utils.py
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a π if this is helpful and π if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.