langflow icon indicating copy to clipboard operation
langflow copied to clipboard

ModuleNotFoundError: No module named 'pwd' at 'langflow run'

Open songjinu opened this issue 1 year ago β€’ 1 comments

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:

  1. 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 from langchain_community.document_loaders.base import BaseBlobParser, BaseLoader File "C:\Users\jwoo.song\AppData\Local\pypoetry\Cache\virtualenvs\langflow-vRmGdvlj-py3.10\lib\site-packages\langchain_community\document_loaders_init_.py", line 163, in from langchain_community.document_loaders.pebblo import PebbloSafeLoader File "C:\Users\jwoo.song\AppData\Local\pypoetry\Cache\virtualenvs\langflow-vRmGdvlj-py3.10\lib\site-packages\langchain_community\document_loaders\pebblo.py", line 5, in import pwd ModuleNotFoundError: No module named 'pwd'

Additional context using pwd in PebbloSafeLoader

songjinu avatar Feb 21 '24 00:02 songjinu

πŸ€–

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

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.

dosubot[bot] avatar Feb 21 '24 00:02 dosubot[bot]