-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Langflow run command not working as static_files_dir error #1534
Comments
Hey @mirzasreza, back at it with another twist in the Langflow saga, I see! Good to have you here. 🚀 Based on the error message you provided, it seems like the application is unable to find the static files directory at the specified path (
Here is the relevant code snippet for serving static files: def setup_static_files(app: FastAPI, static_files_dir: Path):
app.mount(
"/",
StaticFiles(directory=static_files_dir, html=True),
name="static",
)
@app.exception_handler(404)
async def custom_404_handler(request, __):
path = static_files_dir / "index.html"
if not path.exists():
raise RuntimeError(f"File at path {path} does not exist.")
return FileResponse(path) You can find this code in the main.py file in the If you've checked both of these possibilities and are still encountering the error, it would be helpful if you could provide more information about your setup. Specifically, the contents of your Sources
|
@dosubot i copied frontend folder to specified location it was looking. But when I run and open browser it shows me blank. |
Based on the information you've provided, it seems like the issue might be related to the static files not being served correctly. The The Here are a few things you can check:
If you've checked all of these things and are still encountering the issue, it would be helpful if you could provide more information about the exact error message you're seeing and the steps you're taking to run the application. This will help me better understand the issue and provide more targeted assistance. Dosu Sources
|
Hi @mirzasreza It seems you are running One way you could do that is just running Another way would be to run Another would be to just run |
I have cloned zustand/io/migration branch.
I am getting this error while i run langflow run after poetry install.
RuntimeError: Static files directory /mnt/d/build/wLang/langflow7/src/backend/langflow/frontend does not exist.
basically, the program generating wrong static_files_dir
The text was updated successfully, but these errors were encountered: