Open absha03 opened 6 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
.
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: @.***>
Can you please show the output of poetry install
followed by pytest
?
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...
Updating exceptiongroup (1.2.0 -> 1.2.1)
Updating pydantic (2.7.0 -> 2.7.4): Installing...
Updating urllib3 (2.2.1 -> 2.2.2): Installing... packages\urllib3\util\wait.py over existing fileexisting file
Updating certifi (2024.2.2 -> 2024.6.2)
Updating exceptiongroup (1.2.0 -> 1.2.1)
Updating pydantic (2.7.0 -> 2.7.4): Installing...
Updating urllib3 (2.2.1 -> 2.2.2): Installing...
Updating pydantic (2.7.0 -> 2.7.4)
Updating urllib3 (2.2.1 -> 2.2.2)
Updating anyio (4.3.0 -> 4.4.0): Installing...
Updating cryptography (42.0.5 -> 42.0.8): Installing...
Updating packaging (24.0 -> 24.1): Installing...
Updating requests (2.31.0 -> 2.32.3): Installing...
Updating anyio (4.3.0 -> 4.4.0)
Updating cryptography (42.0.5 -> 42.0.8): Installing...
Updating packaging (24.0 -> 24.1)
Updating requests (2.31.0 -> 2.32.3)
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)
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
Great, thank you. Can you please re-try the command python -m openadapt.record "testing out openadapt"
?
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'