Open msmygit opened 2 weeks ago
Attempted to perform rm -rf /Users/username/Library/Caches/langflow
followed by starting it via python -m langflow run --env-file ~/langflow/.env
which yielded the below,
% python -m langflow run --env-file ~/langflow/.env
/Users/username/.pyenv/versions/langflow/lib/python3.10/site-packages/langchain/_api/module_import.py:87: LangChainDeprecationWarning: Importing GuardrailsOutputParser from langchain.output_parsers is deprecated. Please replace the import with the following:
from langchain_community.output_parsers.rail_parser import GuardrailsOutputParser
warnings.warn(
/Users/madhavansridharan/.pyenv/versions/langflow/lib/python3.10/site-packages/langchain/_api/module_import.py:87: LangChainDeprecationWarning: Importing JsonSpec from langchain.tools.json is deprecated. Please replace the import with the following:
from langchain_community.tools.json.tool import JsonSpec
warnings.warn(
Starting Langflow v1.0.0a29...
╭───────────────────────────────────────────────────╮
│ Welcome to ⛓ Langflow │
│ │
│ │
│ Collaborate, and contribute at our GitHub Repo 🚀 │
│ │
│ Access http://127.0.0.1:7860 │
╰───────────────────────────────────────────────────╯
which unfortunately deleted all my local project/flows/components :-(
To address the import error with DocumentSearchHit
from langchain_core.documents
, it seems like a compatibility issue with the Langflow v1.0.0a29 update. Try reinstalling Langflow and its dependencies forcefully to see if it resolves the issue: python -m pip install langflow --pre -U --force-reinstall
. If the problem persists, this might be a bug in the new release, and reporting it to the Langflow maintainers could help resolve it.
For the deprecation warnings about GuardrailsOutputParser
and JsonSpec
, you should replace these with their suggested new imports from the langchain_community
package. Update your code to import GuardrailsOutputParser
from langchain_community.output_parsers.rail_parser
and JsonSpec
from langchain_community.tools.json.tool
. This should eliminate the deprecation warnings and ensure your project is up-to-date with the latest Langflow practices.
Regarding the deletion of your local projects/flows/components, it's crucial to regularly back up your data, especially before performing upgrades or significant changes. If you have backups or version control, you can restore your projects from there. Unfortunately, without a built-in recovery feature in Langflow for such a scenario, manual restoration from backups is the primary solution.
For future reference, always ensure you have a recent backup of your work to prevent data loss during upgrades or when encountering unexpected issues. If these steps don't resolve your issues or if you encounter further problems, reaching out to the Langflow support team or community forums for assistance might provide more specific solutions.
To continue the conversation, mention @dosu.
Describe the bug When attempting to start langflow post upgrade to
Langflow v1.0.0a29
version, we get:Entire stacktrace is attached below,
lf-a29-startup-bug_20240430.txt
To Reproduce Steps to reproduce the behavior:
python -m pip install langflow --pre --force-reinstall -U
python -m langflow run --env-file ~/langflow/.env
[env file is optional here]Screenshots n/a
Additional context Just attempting to start the langflow post upgrade.