Skip to content
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

No module named langflow #23

Closed
anishthite opened this issue Mar 15, 2023 · 7 comments
Closed

No module named langflow #23

anishthite opened this issue Mar 15, 2023 · 7 comments
Labels
help wanted Extra attention is needed

Comments

@anishthite
Copy link

Hi!

I can install via pip, but cannot run python -m langflow

Pip output:

Requirement already satisfied: langflow in /Users/anishthite/miniconda3/lib/python3.9/site-packages (0.0.32)

python -m langflow output:

/Users/anishthite/miniconda3/bin/python: No module named langflow
@rodrigosnader
Copy link
Contributor

After installing, have you tried just langflow?

@rodrigosnader rodrigosnader added the help wanted Extra attention is needed label Mar 15, 2023
@anovazzi1 anovazzi1 added help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Mar 15, 2023
@rodrigosnader
Copy link
Contributor

Confirmed that python -m langflow should not work anymore. We modified it to work with just: langflow.

@ibiscp
Copy link
Contributor

ibiscp commented Mar 16, 2023

Closing this issue for now, if necessary, please reopen it.

@ibiscp ibiscp closed this as completed Mar 16, 2023
@anishthite
Copy link
Author

anishthite commented Mar 16, 2023

Sorry, I forgot to hit send. When I run langflow I get the following error:

Traceback (most recent call last):

  File "/Users/anishthite/miniconda3/bin/langflow", line 8, in <module>
    sys.exit(main())

  File "/Users/anishthite/miniconda3/lib/python3.9/site-packages/langflow_backend/__main__.py", line 52, in main
    typer.run(serve)

  File "/Users/anishthite/miniconda3/lib/python3.9/site-packages/langflow_backend/__main__.py", line 27, in serve
    StaticFiles(directory=static_files_dir, html=True),

  File "/Users/anishthite/miniconda3/lib/python3.9/site-packages/starlette/staticfiles.py", line 57, in __init__
    raise RuntimeError(f"Directory '{directory}' does not exist")

RuntimeError: Directory '/Users/anishthite/miniconda3/lib/python3.9/site-packages/langflow_backend/frontend' does not exist

@ibiscp
Copy link
Contributor

ibiscp commented Mar 16, 2023

Try the following steps and let me know the output:

deactivate
python -m venv .langflow
source .langflow/bin/activate
pip install langflow
langflow

@anishthite
Copy link
Author

Same issue

@rodrigosnader
Copy link
Contributor

Maybe create a new conda env?

conda create -n langflow python=3.9
conda deactivate
conda activate langflow
pip install langflow
langflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants