-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Got unexpected extra argument (run) #4171
Comments
Hello @kha84! I'm here to help you with any bugs, questions, or contributions you have for Langflow. Let's squash those bugs together! The error you're encountering, "Got unexpected extra argument (run)," suggests that the command syntax for running Langflow has changed. In recent versions, Langflow is run using the CLI command To resolve this issue, try running Langflow with the following command: langflow run --host 0.0.0.0 --port 7860 --log-level info --workers -1 --backend-only This should start Langflow on your local machine. If you continue to experience issues, ensure that Langflow is correctly installed in your conda environment and that there are no version conflicts. |
Thanks, @dosu but that ain't helping. I have a gut feeling the version I'm getting is way too old (0.0.78) and just does not support the "run" command. Bit strange, I got it, instead of the latest available version as per pypi which is 1.0.19 as per now |
It seems like you're right about the version issue. The pip install langflow -U If you want to include pre-release versions, you can use: pip install langflow -U --pre After upgrading, try running Langflow again with the updated command: langflow run --host 0.0.0.0 --port 7860 This should work with the latest version of Langflow [1]. |
nopes, looks like there's some kind of pip incompatibility hell is happening:
|
What I did is - I dropped the messed-up conda environment:
then recreated it from scratch, installing the latest available version of langflow and it worked straight away:
Though I still see some minor issues upon startup (actually several hundreds lines of some sort of debug with some warnings and errors), but the web UI at least starting |
Bug Description
Installed langflow as explained in document - https://docs.langflow.org/getting-started-installation with the only difference of creating conda env, as I didn't want it to install PIP packages directly to my system:
Upon running the last command I see this:
List of pip packages landed:
Reproduction
Follow installation instructions on Ubuntu 24.04.1 - https://docs.langflow.org/getting-started-installation
Expected behavior
Langflow should start :)
Who can help?
No response
Operating System
Ubuntu 24.04.1
Langflow Version
0.0.78
Python Version
3.10
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered: