-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix kill fail bug #11635
Fix kill fail bug #11635
Conversation
2. Change SIGKILL to SIGINT and SIGTERM
… up which is caused by the opencv-python package missing
@luotao1 Could you please take a look at this? The missing of According to the issue, how could I check that this pr works for u in the flower dataset? |
@@ -76,7 +76,8 @@ RUN easy_install -U pip && \ | |||
pip install sphinx-rtd-theme==0.1.9 recommonmark | |||
|
|||
RUN pip install pre-commit 'ipython==5.3.0' && \ | |||
pip install 'ipykernel==4.6.0' 'jupyter==1.0.0' | |||
pip install 'ipykernel==4.6.0' 'jupyter==1.0.0' && \ | |||
pip install opencv-python |
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.
pip install opencv-python,和apt-get install 并不冲突, @velconia 已经测过,可以正常加载flowers数据集。
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.
为什么pip install opencv-python
会影响进程terminate呢?
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.
可以参考这个issue的回答
@@ -22,7 +22,7 @@ | |||
function print_usage() { |
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.
paddle_build.sh的gen_dockerfile函数里面需要pip install 么?不然latest等镜像没有这个包。
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.
gen_dockerfile 里添加了 pip install /*.whl, 我理解会把 paddle python 依赖的所有包都加上, opencv-python也是其中之一
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.
@typhoonzero could you please take a look at this?
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.
whl installs packages here, in Paddle/python/setup.py.in
if '${CMAKE_SYSTEM_PROCESSOR}' not in ['arm', 'armv7-a', 'aarch64']:
setup_requires+=['opencv-python']
foreach(TEST_OP ${TEST_OPS}) | ||
py_test_modules(${TEST_OP} MODULES ${TEST_OP}) | ||
endforeach(TEST_OP) | ||
py_test_modules(test_warpctc_op MODULES test_warpctc_op ENVS FLAGS_warpctc_dir=${WARPCTC_LIB_DIR} SERIAL) | ||
py_test_modules(test_dist_train MODULES test_dist_train SERIAL) | ||
py_test_modules(test_parallel_executor_crf MODULES test_parallel_executor_crf SERIAL) | ||
py_test_modules(test_parallel_executor_fetch_feed MODULES test_parallel_executor_fetch_feed SERIAL) | ||
# (DONE) tests that need to be done in fixed timeout |
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.
Can remove this comment
* 1. Remove PYTHON_FLAGS from paddle_build.sh in paddlepaddle/paddle:latest-dev * 1. Add PYTHON_FLAGS back 2. Change SIGKILL to SIGINT and SIGTERM * 1. Add setup.py.in back * 1. add pip install open-cv in Dockerfile to avoid libusb_exit hanging up which is caused by the opencv-python package missing * 1. Add the && \ to line above * 1. Remove the notice comment
This close #11509