OpenAdaptAI / OpenAdapt

AI-First Process Automation with Large ([Language (LLMs) / Action (LAMs) / Multimodal (LMMs)] / Visual Language (VLMs)) Models
https://www.OpenAdapt.AI
MIT License
735 stars 95 forks source link

[Bug]: Test command not working #801

Open absha03 opened 6 days ago

absha03 commented 6 days ago

Describe the bug

(openadapt-py3.10) PS C:\Users\abhis\openAdapt\OpenAdapt> python -m openadapt.record "testing out openadapt" Traceback (most recent call last): File "C:\Users\abhis\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\abhis\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\abhis\openAdapt\OpenAdapt\openadapt\record.py", line 28, in from openadapt.models import Recording File "C:\Users\abhis\openAdapt\OpenAdapt\openadapt\models.py", line 18, in from openadapt.db import db File "C:\Users\abhis\openAdapt\OpenAdapt\openadapt\db__init__.py", line 3, in from .db import export_recording # noqa: F401 File "C:\Users\abhis\openAdapt\OpenAdapt\openadapt\db\db.py", line 77, in Base = get_base(engine) File "C:\Users\abhis\openAdapt\OpenAdapt\openadapt\db\db.py", line 68, in get_base Base = declarative_base( File "", line 2, in declarative_base File "c:\users\abhis\appdata\local\programs\python\python310\lib\site-packages\sqlalchemy\util\deprecations.py", line 386, in warned return fn(*args, *kwargs) # type: ignore[no-any-return] File "c:\users\abhis\appdata\local\programs\python\python310\lib\site-packages\sqlalchemy\ext\declarative__init__.py", line 27, in declarative_base return _declarative_base(arg, **kw) TypeError: declarative_base() got an unexpected keyword argument 'bind'

To Reproduce

on windows 11 powershell while running: (openadapt-py3.10) PS C:\Users\abhis\openAdapt\OpenAdapt> python -m openadapt.record "testing out openadapt" Traceback (most recent call last): File "C:\Users\abhis\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\abhis\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\abhis\openAdapt\OpenAdapt\openadapt\record.py", line 28, in from openadapt.models import Recording File "C:\Users\abhis\openAdapt\OpenAdapt\openadapt\models.py", line 18, in from openadapt.db import db File "C:\Users\abhis\openAdapt\OpenAdapt\openadapt\db__init__.py", line 3, in from .db import export_recording # noqa: F401 File "C:\Users\abhis\openAdapt\OpenAdapt\openadapt\db\db.py", line 77, in Base = get_base(engine) File "C:\Users\abhis\openAdapt\OpenAdapt\openadapt\db\db.py", line 68, in get_base Base = declarative_base( File "", line 2, in declarative_base File "c:\users\abhis\appdata\local\programs\python\python310\lib\site-packages\sqlalchemy\util\deprecations.py", line 386, in warned return fn(*args, *kwargs) # type: ignore[no-any-return] File "c:\users\abhis\appdata\local\programs\python\python310\lib\site-packages\sqlalchemy\ext\declarative__init__.py", line 27, in declarative_base return _declarative_base(arg, **kw) TypeError: declarative_base() got an unexpected keyword argument 'bind'

abrichr commented 4 days ago

Hi @absha03 , this is the same error you reported in https://github.com/OpenAdaptAI/OpenAdapt/issues/800. Please try the suggested resolution, i.e. follow the instructions in https://github.com/OpenAdaptAI/OpenAdapt?tab=readme-ov-file#manual-setup, which includes running poetry install.

absha03 commented 4 days ago

I did follow all of the steps in sequence as mentioned, not sure what went missing, any help is highly appreciated. Regards Abhishek

Sent from Yahoo Mail for iPhone

On Wednesday, June 26, 2024, 2:08 PM, Richard Abrich @.***> wrote:

Hi @absha03 , this is the same error you reported in #800. Please try the suggested resolution, i.e. follow the instructions in https://github.com/OpenAdaptAI/OpenAdapt?tab=readme-ov-file#manual-setup, which includes running poetry install.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

abrichr commented 4 days ago

Can you please show the output of poetry install followed by pytest?

absha03 commented 2 days ago

PS C:\Users\abhis\openAdapt\OpenAdapt> poetry install Installing dependencies from lock file Package operations: 0 installs, 37 updates, 0 removals

Installing C:\Users\abhis\AppData\Local\pypoetry\Cache\virtualenvs\openadapt-8xtrqwsq-py3.10\Lib\site-packages\pydantic_ - Updating pydantic-core (2.18.1 -> 2.18.4)

Installing C:\Users\abhis\AppData\Local\pypoetry\Cache\virtualenvs\openadapt-8xtrqwsq-py3.10\Lib\site-packages\exceptionInstalling C:\Users\abhis\AppData\Local\pypoetry\Cache\virtualenvs\openadapt-8xtrqwsq-py3.10\Lib\site-packages\urllib3__init__.py over existing file> 2.2.2): Installing...

Installing C:\Users\abhis\AppData\Local\pypoetry\Cache\virtualenvs\openadapt-8xtrqwsq-py3.10\Lib\site-packages\aiohttp\http_exceptions.py over existing file

Installing the current project: openadapt (0.35.1)

absha03 commented 2 days ago

poetryInstall.txt attached output in file as well @abrichr , had to cut some of the output in above comment as it was too long, but poetry install was a success

abrichr commented 2 days ago

Great, thank you. Can you please re-try the command python -m openadapt.record "testing out openadapt"?