-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
caravel db upgrade fails on postgres #558
Comments
On a second look this looks really a fab issue, @dpgaspar any hint on what could be wrong here? |
@xrmx I think it's on our side and related to translations |
@mistercrunch so we should not use lazy_gettext when the string is going through sqlalchemy? Or better making it an actual unicode object before using it in sqlalchemy. |
So that we can install caravel on postgresql: ``` 2016-06-03 17:58:05,386:ERROR:flask_appbuilder.base: Add Permission on Menu Error: (psycopg2.ProgrammingError) can't adapt type '_LazyString' [SQL: 'SELECT ab_view_menu.id AS ab_view_menu_id, ab_view_menu.name AS ab_view_menu_name \nFROM ab_view_menu \nWHERE ab_view_menu.name = %(name_1)s \n LIMIT %(param_1)s'] [parameters: {'param_1': 1, 'name_1': l'Sources'}] ``` Other that translating names should be a recipe for disaster if you switch language. Fix apache#558
So that we can install caravel on postgresql: ``` 2016-06-03 17:58:05,386:ERROR:flask_appbuilder.base: Add Permission on Menu Error: (psycopg2.ProgrammingError) can't adapt type '_LazyString' [SQL: 'SELECT ab_view_menu.id AS ab_view_menu_id, ab_view_menu.name AS ab_view_menu_name \nFROM ab_view_menu \nWHERE ab_view_menu.name = %(name_1)s \n LIMIT %(param_1)s'] [parameters: {'param_1': 1, 'name_1': l'Sources'}] ``` Other that translating names should be a recipe for disaster if you switch language. Fix #558
@mistercrunch could you please reopen this since installation of postgres is still broken? Even with the patch applied caravel db upgrade hang applying the migrations
And the server logs
|
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.9.6 to 7.10.2. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.10.2/packages/babel-core) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.9.6 to 7.10.2. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.10.2/packages/babel-core) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.9.6 to 7.10.2. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.10.2/packages/babel-core) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.9.6 to 7.10.2. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.10.2/packages/babel-core) Signed-off-by: dependabot-preview[bot] <[email protected]> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
On
3ee9a68c09750317f20eedd3968e9f36f6da10a1
trying to apply migrations on a fresh project on postgresql withgives:
The text was updated successfully, but these errors were encountered: