-
Notifications
You must be signed in to change notification settings - Fork 303
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
[IMP] 15.0: generate flanker cached tables during build #487
[IMP] 15.0: generate flanker cached tables during build #487
Conversation
Seems OK for me at first. @yajo WDTY? |
0351551
to
833fd29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ap-wtioit can you please paste the start of the logs when you start odoo with this image? Just to make sure it fixes the problem at runtime.
15.0.Dockerfile
Outdated
@@ -139,6 +139,9 @@ RUN build_deps=" \ | |||
watchdog \ | |||
wdb \ | |||
&& (python3 -m compileall -q /usr/local/lib/python3.8/ || true) \ | |||
# generate flanker cached tables during install when /usr/local/lib/ is still intended to be written to | |||
# https://github.com/Tecnativa/doodba/issues/486 | |||
&& python3 -c 'from flanker.addresslib import address' >/dev/null \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That last part is trying to silent the warnings? If so, it's not working.
Try:
&& python3 -c 'from flanker.addresslib import address' >/dev/null \ | |
&& python3 -c 'from flanker.addresslib import address' 2> /dev/null \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for checking, will test locally and push a fixed commit
my initial test search was wrong (searching for flanker package names)
this should be avoided:
#17 218.2 Symbol 'mailbox_or_url_list' is unreachable
#17 218.2 Symbol 'delim' is unreachable
#17 218.2 Symbol 'mailbox_or_url' is unreachable
#17 218.2 Symbol 'url' is unreachable
#17 218.2 Symbol 'mailbox_or_url_list' is unreachable
#17 218.2 Symbol 'delim' is unreachable
#17 218.2 Symbol 'mailbox_or_url' is unreachable
#17 218.2 Symbol 'mailbox' is unreachable
#17 218.2 Symbol 'url' is unreachable
#17 218.2 Symbol 'angle_addr' is unreachable
#17 218.2 Symbol 'name_addr' is unreachable
#17 218.2 Symbol 'phrase' is unreachable
#17 218.2 Symbol 'mailbox_or_url_list' is unreachable
#17 218.2 Symbol 'delim' is unreachable
#17 218.2 Symbol 'mailbox_or_url' is unreachable
#17 218.2 Symbol 'mailbox' is unreachable
#17 218.2 Symbol 'addr_spec' is unreachable
#17 218.2 Symbol 'angle_addr' is unreachable
#17 218.2 Symbol 'name_addr' is unreachable
#17 218.2 Symbol 'phrase' is unreachable
#17 218.2 Symbol 'local_part' is unreachable
#17 218.2 Symbol 'domain' is unreachable
#17 218.2 Symbol 'quoted_string' is unreachable
#17 218.2 Symbol 'domain_literal' is unreachable
#17 218.2 Symbol 'quoted_string_text' is unreachable
#17 218.2 Symbol 'domain_literal_text' is unreachable
#17 218.2 Symbol 'mailbox_or_url_list' is unreachable
#17 218.2 Symbol 'delim' is unreachable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using python3 -c 'from flanker.addresslib import address' >/dev/null 2>&1
to disregard all stdout and stderr from the import statement
Logs for
|
and ignore the warnings printed on the first import see mailgun/flanker#231
833fd29
to
d81a424
Compare
fix for #486