Closed msmygit closed 7 months ago
@ogabrielluiz Please reopen this as this still doesn't work. See attached logs. langflow_doesnt_want_to_install.txt
Even tried to invoke it using sudo
without any luck,
(langflow) username@langflow langflow % sudo python -m langflow run
[04/11/24 11:01:37] ERROR 2024-04-11 11:01:37 - ERROR - service - AutogenerateDiffsDetected: New upgrade operations detected: [[('modify_nullable', None, 'apikey', 'created_at', service.py:170
{'existing_type': DATETIME(), 'existing_server_default': DefaultClause(<sqlalchemy.sql.elements.TextClause object at 0x1244d5810>, for_update=False), 'existing_comment':
None}, True, False)]]
ERROR 2024-04-11 11:01:37 - ERROR - utils - Something went wrong running migrations. Please, run `langflow migration --fix` utils.py:51
ERROR 2024-04-11 11:01:37 - ERROR - utils - Something went wrong running migrations. Please, run `langflow migration --fix` utils.py:197
ERROR 2024-04-11 11:01:37 - ERROR - on - Traceback (most recent call last): on.py:121
File "/Users/USERNAME/.pyenv/versions/langflow/lib/python3.10/site-packages/langflow/services/database/service.py", line 168, in run_migrations
command.check(alembic_cfg)
File "/Users/USERNAME/.pyenv/versions/langflow/lib/python3.10/site-packages/alembic/command.py", line 300, in check
raise util.AutogenerateDiffsDetected(
alembic.util.exc.AutogenerateDiffsDetected: New upgrade operations detected: [[('modify_nullable', None, 'apikey', 'created_at', {'existing_type': DATETIME(),
'existing_server_default': DefaultClause(<sqlalchemy.sql.elements.TextClause object at 0x1244d5810>, for_update=False), 'existing_comment': None}, True, False)]]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/USERNAME/.pyenv/versions/langflow/lib/python3.10/site-packages/starlette/routing.py", line 732, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/Users/USERNAME/.pyenv/versions/3.10.14/lib/python3.10/contextlib.py", line 199, in __aenter__
return await anext(self.gen)
File "/Users/USERNAME/.pyenv/versions/langflow/lib/python3.10/site-packages/langflow/main.py", line 26, in lifespan
initialize_services(fix_migration=fix_migration, socketio_server=socketio_server)
File "/Users/USERNAME/.pyenv/versions/langflow/lib/python3.10/site-packages/langflow/services/utils.py", line 198, in initialize_services
raise exc
File "/Users/USERNAME/.pyenv/versions/langflow/lib/python3.10/site-packages/langflow/services/utils.py", line 195, in initialize_services
initialize_database(fix_migration=fix_migration)
File "/Users/USERNAME/.pyenv/versions/langflow/lib/python3.10/site-packages/langflow/services/database/utils.py", line 52, in initialize_database
raise exc
File "/Users/USERNAME/.pyenv/versions/langflow/lib/python3.10/site-packages/langflow/services/database/utils.py", line 32, in initialize_database
database_service.run_migrations(fix=fix_migration)
File "/Users/USERNAME/.pyenv/versions/langflow/lib/python3.10/site-packages/langflow/services/database/service.py", line 172, in run_migrations
raise RuntimeError(
RuntimeError: Something went wrong running migrations. Please, run `langflow migration --fix`
ERROR 2024-04-11 11:01:37 - ERROR - on - Application startup failed. Exiting. on.py:59
[04/11/24 11:01:37] ERROR 2024-04-11 11:01:37 - ERROR - glogging - Worker (pid:36100) exited with code 3 glogging.py:272
ERROR 2024-04-11 11:01:37 - ERROR - glogging - Shutting down: Master glogging.py:272
ERROR 2024-04-11 11:01:37 - ERROR - glogging - Reason: Worker failed to boot. glogging.py:272
Working on it!
Thank you @ogabrielluiz. Should we re-open this issue or should we open a new one linking to this?
Performed python -m pip install langflow --pre --force-reinstall -U
and then the below, but still received an error:
% python -m langflow run
Starting Langflow v1.0.0a22...
[04/15/24 12:18:29] ERROR 2024-04-15 12:18:29 - ERROR - service - AutogenerateDiffsDetected: New upgrade operations detected: [[('modify_nullable', None, 'apikey', 'created_at', service.py:171
{'existing_type': DATETIME(), 'existing_server_default': DefaultClause(<sqlalchemy.sql.elements.TextClause object at 0x12812b9d0>, for_update=False), 'existing_comment':
None}, True, False)]]
ERROR 2024-04-15 12:18:29 - ERROR - utils - Something went wrong running migrations. Please, run `langflow migration --fix` utils.py:51
Shutting down Langflow...
ERROR 2024-04-15 12:18:29 - ERROR - on - Traceback (most recent call last): on.py:121
File "/Users/USERNAME/.pyenv/versions/langflow/lib/python3.10/site-packages/starlette/routing.py", line 732, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/Users/USERNAME/.pyenv/versions/3.10.14/lib/python3.10/contextlib.py", line 201, in __aenter__
raise RuntimeError("generator didn't yield") from None
RuntimeError: generator didn't yield
ERROR 2024-04-15 12:18:29 - ERROR - on - Application startup failed. Exiting. on.py:59
[04/15/24 12:18:29] ERROR 2024-04-15 12:18:29 - ERROR - glogging - Worker (pid:66452) exited with code 3 glogging.py:272
ERROR 2024-04-15 12:18:29 - ERROR - glogging - Shutting down: Master glogging.py:272
ERROR 2024-04-15 12:18:29 - ERROR - glogging - Reason: Worker failed to boot.
Delete the cache file in the "/Users/{YOUR NAME }/Library/Caches/langflow" and try again
Thanks @La-fe .. and try which step again? OK, let me retry last command above:
Here is what I got:
It is interesting they closed out an unresolved issue and want me to work with that closed issue.. ¯_(ツ)_/¯
Hey @msmygit , have you checked our latest release?
This should be fixed
Please, make sure you run python -m pip install langflow -U --pre --force-reinstall
and then python -m langflow run
to pick a specific python to run langflow on.
You are probably installing with one executable and running it with another.
@ogabrielluiz, from all the commands and outputs I've provided above, do you feel that I'm using a different python version to run and experience this problem? I don't think so, but happy to be corrected here.
Having said that, here is yet another end-to-end round of updates to showcase this run. This time we have a SUCCESS! YAY! 🎉
@ogabrielluiz thank you for all. I did replicate @msmygit successful pattern, but I have the following same error with langchain_cohere module when running langflow (installation was successful). Thank you for your help!
Starting Langflow v1.0.0a43...
[05/31/24 22:14:15] ERROR 2024-05-31 22:14:15 - ERROR - code_parser - Module langchain_cohere not found. Please install it code_parser.py:300 and try againTraceback (most recent call last):
File "/Users/u721624/.pyenv/versions/langflow/lib/python3.10/site-packages/fastavro/read.py",
line 2, in <module>
from . import _read
File "fastavro/_read.pyx", line 10, in init fastavro._read
File "/Users/u721624/.pyenv/versions/3.10.14/lib/python3.10/lzma.py", line 27, in <module>
from _lzma import *
ModuleNotFoundError: No module named '_lzma'
During handling of the above exception, another exception occurred:
Describe the bug This is the very first time I'm working with Langflow and attempting to install the pre-release version. Below are steps that I performed. Attempting to install
langflow-1.0.0a13
->langflow-1.0.0a14
->langflow-1.0.0a15
and nothing seems to be working. Appreciate any help in advance!And then the latest is attached below. message.txt
Browser and Version
OS Details macOS Sonoma 14.3
To Reproduce See description above!
Screenshots n/a
Additional context not yet