Skip to content

Commit

Permalink
fix: Fix Pydantic v2 pyinstaller missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiAwar committed Oct 25, 2024
1 parent d9c49b5 commit 00e2444
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
2 changes: 1 addition & 1 deletion backend/linux.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from PyInstaller.utils.hooks import collect_submodules
datas = [('alembic', 'alembic'), ('alembic.ini', '.'), ('samples', 'samples'), ('templates', 'templates'), ('assets', 'assets')]
binaries = []
hiddenimports = [
'asyncpg.pgproto.pgproto', 'uuid', 'ipaddress', 'aiosqlite', 'tiktoken_ext.openai_public', 'tiktoken_ext', 'snowflake.sqlalchemy', 'pyodbc'
'asyncpg.pgproto.pgproto', 'uuid', 'ipaddress', 'aiosqlite', 'tiktoken_ext.openai_public', 'tiktoken_ext', 'snowflake.sqlalchemy', 'pyodbc', 'pydantic.deprecated.decorator'
]
datas += collect_data_files('jinja2')
tmp_ret = collect_all('snowflake-sqlalchemy')
Expand Down
2 changes: 1 addition & 1 deletion backend/macos.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ from PyInstaller.utils.hooks import collect_submodules
datas = [('alembic', 'alembic'), ('alembic.ini', '.'), ('samples', 'samples'), ('templates', 'templates'), ('assets', 'assets')]
binaries = []
hiddenimports = [
'asyncpg.pgproto.pgproto', 'uuid', 'ipaddress', 'aiosqlite', 'tiktoken_ext.openai_public', 'tiktoken_ext', 'snowflake.sqlalchemy', 'pyodbc'
'asyncpg.pgproto.pgproto', 'uuid', 'ipaddress', 'aiosqlite', 'tiktoken_ext.openai_public', 'tiktoken_ext', 'snowflake.sqlalchemy', 'pyodbc', 'pydantic.deprecated.decorator'
]
datas += collect_data_files('jinja2')
tmp_ret = collect_all('snowflake-sqlalchemy')
Expand Down
45 changes: 23 additions & 22 deletions backend/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ langchain-community = "^0.3.3"
[tool.poetry.group.dev.dependencies]
black = "^24.3.0"
pre-commit = "^3.4.0"
pyinstaller = "^5.10.1"
pyinstaller = "^6.11.0"
pytest = "^8.0.2"
jupyterlab = "^4.0.5"
mypy = "^1.6.1"
Expand Down

0 comments on commit 00e2444

Please sign in to comment.