Closed karenc closed 2 years ago
I'm not sure how to fix the segmentation fault but there's more details in https://github.com/WildMeOrg/wildbook-ia/runs/5755469265?check_suite_focus=true#step:7:265 and https://github.com/WildMeOrg/wildbook-ia/runs/5755469265?check_suite_focus=true#step:8:162
Comment out localhost from /etc/hosts in docker container
We are using localhost as the nginx service name so we can avoid using http://houston:5000/ in development.
From houston we call the detection API
/api/engine/detect/cnn/lightnet/
with a list of image urls and a callback url. In development, "http://localhost/" is the url for the site, but acm wouldn't be able to access a url at localhost unless we remove the definition of localhost from/etc/hosts
.Downgrade MarkupSafe<2.1.0 in requirements/runtime.txt
MarkupSafe 2.1.0 removed a deprecated function
soft_unicode
which jinja2 imports, causing wildbook-ia to fail:Add python and c back trace if python -m wbia fails in github CI
Change
PYTHONFAULTHANDLER=1
to-X faulthandler
asPYTHONFAULTHANDLER=1
doesn't seem to print out the python back trace when there's segmentation fault.If there's an error, run
gdb
to get a c back trace.Comment out code to replace localhost with wildbook-ia in callback urls
We are using localhost as the name of the houston nginx service for local development so we need to leave localhost as is.