Skip to content
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

[Bug]: AttributeError: type object 'SQLModel' has no attribute 'model_config' #3455

Closed
windowshopr opened this issue Aug 31, 2024 · 3 comments · Fixed by #3457
Closed

[Bug]: AttributeError: type object 'SQLModel' has no attribute 'model_config' #3455

windowshopr opened this issue Aug 31, 2024 · 3 comments · Fixed by #3457
Labels
proj-studio Related to AutoGen Studio.

Comments

@windowshopr
Copy link

Describe the bug

PS I:\nasty\Python_Projects\LLM\autogen\Studio> autogenstudio ui --database-uri sqlite:///database.sqlite
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\chalu\AppData\Local\Programs\Python\Python311\Scripts\autogenstudio.exe\__main__.py", line 4, in <module>
  File "C:\Users\chalu\AppData\Local\Programs\Python\Python311\Lib\site-packages\autogenstudio\__init__.py", line 1, in <module>
    from .chatmanager import *
  File "C:\Users\chalu\AppData\Local\Programs\Python\Python311\Lib\site-packages\autogenstudio\chatmanager.py", line 10, in <module>
    from .datamodel import Message
  File "C:\Users\chalu\AppData\Local\Programs\Python\Python311\Lib\site-packages\autogenstudio\datamodel.py", line 19, in <module>
    SQLModel.model_config["protected_namespaces"] = ()
    ^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'SQLModel' has no attribute 'model_config'

Steps to reproduce

pip install -U autogenstudio
autogenstudio ui --database-uri sqlite:///database.sqlite

Model Used

No response

Expected Behavior

No response

Screenshots and logs

No response

Additional Information

Windows 10
Python 3.11.0
autogenstudio==0.1.5
sqlmodel==0.0.21

@Hk669 Hk669 added the proj-studio Related to AutoGen Studio. label Aug 31, 2024
@victordibia
Copy link
Collaborator

Looks like this might be a compatibility issue related to python 3.11 and the latest version of sqlmodel. (I have 3.10 and sqlmodel 0.0.16) which seems to have no issues.
Anyone interested in investigating and suggesting a PR/fix?

@Hk669
Copy link
Contributor

Hk669 commented Aug 31, 2024

@windowshopr help us review the fix at #3457. thanks

@windowshopr
Copy link
Author

Good, however it results in a new error on my side. I will open a new issue for it.

#3463

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proj-studio Related to AutoGen Studio.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@victordibia @windowshopr @Hk669 and others