Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Jul 15, 2025

On Jammy, babel does not cope well with f-strings as values inside _() calls: it uses eval to try and figure them out, which attempts to execute the f-string, which fails because the evaluation context is empty.

This is likely fixed from Babel 2.11 onwards (python-babel/babel#915) but Jammy uses babel 2.81.

https://runbot.odoo.com/odoo/runbot.build.error/97849

Forward-Port-Of: #218887
Forward-Port-Of: #218803

Footnotes

  1. This doesn't seem to trigger on Noble even though it uses 2.10, but locally it does trigger on 2.10.3 (installed via pip), so ubuntu might have backported the fix or something.

On Jammy, babel does *not* cope well with f-strings as values inside
`_()` calls: it uses `eval` to try and figure them out, which attempts
to execute the f-string, which fails because the evaluation context is
empty.

This is likely fixed from Babel 2.11 onwards (python-babel/babel#915)
but Jammy uses babel 2.8[^1].

https://runbot.odoo.com/odoo/runbot.build.error/97849

[^1]: This doesn't seem to trigger on Noble even though it uses 2.10,
    but locally it does trigger on 2.10.3 (installed via pip), so
    ubuntu might have backported the fix or something.

X-original-commit: 51c169a
@robodoo
Copy link
Contributor

robodoo commented Jul 15, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Jul 15, 2025

This PR targets saas-18.4 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Jul 15, 2025
robodoo pushed a commit that referenced this pull request Jul 16, 2025
On Jammy, babel does *not* cope well with f-strings as values inside
`_()` calls: it uses `eval` to try and figure them out, which attempts
to execute the f-string, which fails because the evaluation context is
empty.

This is likely fixed from Babel 2.11 onwards (python-babel/babel#915)
but Jammy uses babel 2.8[^1].

https://runbot.odoo.com/odoo/runbot.build.error/97849

[^1]: This doesn't seem to trigger on Noble even though it uses 2.10,
    but locally it does trigger on 2.10.3 (installed via pip), so
    ubuntu might have backported the fix or something.

closes #219074

X-original-commit: 51c169a
Signed-off-by: Xavier Morel (xmo) <[email protected]>
@robodoo robodoo closed this Jul 16, 2025
@fw-bot fw-bot deleted the saas-18.4-18.0-t10n-extraction-fix-xmo-450312-fw branch July 23, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants