MultiProcessing

Open
#61 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

The report only identifies multiprocessing use in the SPAMS library and a frozen kernel; it names no source file, test, traceback, or minimal reproduction. Start by reproducing the freeze from the reported environment and isolate the multiprocessing entry point. Done means identifying a reproducible cause and verifying that multiprocessing no longer freezes the kernel.

Written by the indexing model from the issue text.

Description

Issue:

Hello,

I want to use multiprocessing on SPAMS library to fasten the computations, but the kernel freezes when I use it.


Environment (conda list):
$ conda list


# packages in environment at /Users/amirali/anaconda:
#
# Name                    Version                   Build  Channel
_license                  1.1                      py35_1  
_nb_ext_conf              0.4.0                    py35_1  
_tflow_select             2.2.0                     eigen  
absl-py                   0.4.1                    py35_0  
absl-py                   0.9.0                     <pip>
aiofiles                  0.5.0                     <pip>
aiohttp                   3.6.2                     <pip>
alabaster                 0.7.12                     py_0  
anaconda                  custom           py35hd7b5ba2_0  
anaconda-clean            1.1.0                    py35_1  
anaconda-client           1.7.2                    py35_0  
anaconda-navigator        1.9.2                    py35_0  
anaconda-project          0.8.4                      py_0  
appdirs                   1.4.3              pyh91ea838_0  
appnope                   0.1.0            py35hd172556_0  
appscript                 1.0.1            py35h1de35cc_1  
apr                       1.6.3                he795440_0  
argcomplete               1.11.1                     py_0  
asn1crypto                0.24.0                   py35_0  
astor                     0.7.1                    py35_0  
astroid                   2.0.4                    py35_0  
astropy                   1.3.2               np112py35_0  
astunparse                1.6.3                     <pip>
async-timeout             3.0.1                     <pip>
atomicwrites              1.4.0                      py_0  
attrs                     19.3.0                     py_0  
automat                   0.8.0                      py_0  
babel                     2.8.0                      py_0  
backcall                  0.1.0                    py35_0  
backports                 1.0                        py_2  
backports.functools_lru_cache 1.6.1                      py_0  
backports.shutil_get_terminal_size 1.0.0                    py35_2  
backports.tempfile        1.0                        py_1  
backports.weakref         1.0rc1                    <pip>
backports.weakref         1.0.post1                  py_1  
beautifulsoup4            4.6.3                    py35_0  
bitarray                  0.8.3            py35h1de35cc_0  
blas                      1.1                    openblas    conda-forge
blaze                     0.10.1                   py35_0  
bleach                    3.1.4                      py_0  
bleach                    1.5.0                     <pip>
blosc                     1.16.3               hd9629dc_0  
bokeh                     0.13.0                   py35_0  
boto                      2.49.0                   py35_0  
bottleneck                1.2.1               np112py35_0  
bs4                       0.0.1                     <pip>
bzip2                     1.0.8                h1de35cc_0  
ca-certificates           2020.6.24                     0  
cachetools                4.1.0                     <pip>
cairo                     1.14.12              hc4e6be7_4  
certifi                   2018.8.24                py35_1  
certifi                   2018.11.29                <pip>
cffi                      1.11.5           py35h6174b99_1  
chardet                   3.0.4                    py35_1  
chest                     0.2.3                      py_2  
click                     7.1.2                      py_0  
cloudpickle               1.4.1                      py_0  
clyent                    1.2.2                    py35_1  
color                     0.1                       <pip>
colorama                  0.4.3                      py_0  
conda                     4.5.11                   py35_0  
conda-build               3.15.1                   py35_0  
conda-env                 2.6.0                         1  
conda-package-handling    1.0.4                      py_0  
conda-verify              3.4.2                      py_1  
configobj                 5.0.6                    py35_1  
constantly                15.1.0             pyh91ea838_0  
contextlib2               0.6.0.post1                py_0  
cryptography              2.3.1            py35hdbc3d79_0  
curl                      7.61.1               ha441bb4_0  
cycler                    0.10.0           py35hb89929e_0  
cyrus-sasl                2.1.26               h26aff7b_3  
cython                    0.28.5           py35h0a44026_0  
cytoolz                   0.9.0.1          py35h1de35cc_1  
dask                      0.14.3                   py35_1  
dask-core                 2.6.0                      py_0  
datashape                 0.5.4                    py35_1  
dbus                      1.13.14              h517e14e_0  
decorator                 4.4.2                      py_0  
defusedxml                0.6.0                      py_0  
dill                      0.2.8.2                  py35_0  
dill                      0.3.2                     <pip>
distributed               1.16.3                   py35_0  
Django                    1.11.5                    <pip>
docutils                  0.14             py35hb13dbd9_0  
dynd-python               0.7.2                    py35_0  
entrypoints               0.2.3                    py35_2  
enum34                    1.1.6                     <pip>
et_xmlfile                1.0.1            py35h40eb147_0  
expat                     2.2.6                h0a44026_0  
fastcache                 1.0.2            py35h1de35cc_2  
ffmpeg                    4.0                  h01ea3c9_0  
filelock                  3.0.12                     py_0  
flask                     1.1.2                      py_0  
flask-cors                3.0.8                      py_0  
fontconfig                2.13.0               h5d5b041_1  
freetype                  2.9.1                hb4e5f40_0  
fribidi                   1.0.5                h1de35cc_0  
future                    0.16.0                   py35_2  
future                    0.18.2                    <pip>
gast                      0.3.3                      py_0  
gdk-pixbuf                2.36.9                        1    conda-forge
gdown                     3.11.1                    <pip>
get_terminal_size         1.0.0                h7520d66_0  
gettext                   0.19.8.1             h15daf44_3  
gevent                    1.3.6            py35h1de35cc_0  
giflib                    5.2.1                h0b31af3_2    conda-forge
glib                      2.63.1               hd977a24_0  
glob2                     0.7                        py_0  
gmp                       6.1.2                hb37e062_1  
gmpy2                     2.0.8            py35h212fb8a_2  
gobject-introspection     1.56.1           py35hfc82f85_2  
google-auth               1.16.1                    <pip>
google-auth-oauthlib      0.4.1                     <pip>
google-pasta              0.2.0                     <pip>
googledrivedownloader     0.4                       <pip>
graphite2                 1.3.13               h2098e52_0  
graphviz                  2.40.1               hefbbd9a_2  
greenlet                  0.4.15           py35h1de35cc_0  
grpcio                    1.12.1           py35hd9629dc_0  
h5py                      2.10.0                    <pip>
h5py                      2.8.0            py35h60fea5d_3  
harfbuzz                  1.8.8                hb8d4a28_0  
hdf5                      1.8.20               hfa1e0ec_1  
heapdict                  1.0.1                      py_0  
html5lib                  1.0.1                      py_0  
html5lib                  0.9999999                 <pip>
hyperlink                 19.0.0                     py_0  
icu                       58.2                 h0a44026_3  
idna                      2.7                      py35_0  
idna-ssl                  1.1.0                     <pip>
imageio                   2.8.0                      py_0  
imagesize                 1.2.0                      py_0  
importlib_metadata        0.5                        py_0    conda-forge
imutils                   0.5.2                     <pip>
incremental               17.5.0                   py35_0  
intel-openmp              2019.4                      233  
ipykernel                 4.10.0                   py35_0  
ipython                   6.5.0                    py35_0  
ipython_genutils          0.2.0            py35hf129286_0  
ipywidgets                5.1.5                    py35_0    menpo
isort                     4.3.4                    py35_0  
itsdangerous              1.1.0                      py_0  
jasper                    2.0.14               h636a363_1  
jbig                      2.1                  h4d881f8_0  
jdcal                     1.4.1                      py_0  
jedi                      0.12.1                   py35_0  
jinja2                    2.11.2                     py_0  
joblib                    0.14.1                    <pip>
jpeg                      9d                   h0b31af3_0    conda-forge
jsonschema                2.6.0            py35h2dd9e4b_0  
jupyter                   1.0.0                    py35_7  
jupyter_client            5.3.3                      py_0  
jupyter_console           5.2.0            py35hd2aa692_1  
jupyter_core              4.5.0                      py_0  
Keras-Preprocessing       1.1.2                     <pip>
keyring                   13.2.1                   py35_0  
kiwisolver                1.0.1            py35h219a9d8_0  
krb5                      1.16.1               h24a3359_6  
lazy-object-proxy         1.3.1            py35h1de35cc_2  
leptonica                 1.78.0               h75b9b3b_2    conda-forge
libarchive                3.3.3                h786848e_5  
libcurl                   7.61.1               hf30b1f0_0  
libcxx                    10.0.0                        1  
libcxxabi                 4.0.1                hcfea43d_1  
libdynd                   0.7.2                         0  
libedit                   3.1.20181209         hb402a30_0  
libffi                    3.2.1                h0a44026_6  
libgfortran               3.0.1                h93005f0_2  
libiconv                  1.16                 h1de35cc_0  
libntlm                   1.5                  h1de35cc_0  
libopenblas               0.2.20               hdc02c5d_7  
libopencv                 3.4.2                h0d3447a_1  
libopus                   1.3.1                h1de35cc_0  
libpng                    1.6.37               ha441bb4_0  
libprotobuf               3.6.0                hd9629dc_0  
libsodium                 1.0.16               h3efe00b_0  
libssh2                   1.8.0                h322a93b_4  
libtiff                   4.1.0                hcb84e12_0  
libutf8proc               2.1.1                h1de35cc_0  
libvpx                    1.7.0                h378b8a2_0  
libwebp                   1.0.2                hd3bf737_5    conda-forge
libxml2                   2.9.9                hf6e021a_1  
libxslt                   1.1.33               h33a18ac_0  
llvm-openmp               4.0.1                hcfea43d_1  
llvmlite                  0.24.0           py35hc454e04_0  
loader                    2017.9.11                 <pip>
locket                    0.2.0            py35h58cf053_1  
Logbook                   1.5.3                     <pip>
logcc                     2018.3.1                  <pip>
lxml                      4.2.5            py35hef8c89e_0  
lz4-c                     1.8.1.2              h1de35cc_0  
lzo                       2.10                 h1de35cc_2  
markdown                  2.6.11                   py35_0  
Markdown                  2.6.8                     <pip>
markupsafe                1.0              py35h1de35cc_1  
matplotlib                3.0.0            py35h54f8f79_0  
matplotlib                3.0.3                     <pip>
mccabe                    0.6.1            py35h3f6a9a1_0  
mistune                   0.8.3            py35h1de35cc_1  
mkl                       2018.0.3                      1  
mkl-service               1.1.2            py35h6b9c3cc_4  
mkl_fft                   1.0.9                    py35_0    conda-forge
mkl_random                1.0.1                    py35_0    conda-forge
more-itertools            8.3.0                      py_0  
mpc                       1.0.3                h7a72875_5  
mpfr                      3.1.5                h711e7fd_2  
mpmath                    1.0.0                    py35_2  
msgpack-python            0.5.6            py35h04f5b5a_1    anaconda
multidict                 4.7.6                     <pip>
multipledispatch          0.6.0                    py35_0  
multiprocess              0.70.10                   <pip>
navigator-updater         0.2.1                    py35_0  
nb_anacondacloud          1.4.0                    py35_0  
nb_conda                  2.2.1            py35hd4e941f_0  
nb_conda_kernels          2.1.0                    py35_0  
nbconvert                 5.5.0                      py_0  
nbformat                  5.0.6                      py_0  
nbpresent                 3.0.2            py35hb9ebbd1_1  
ncurses                   6.2                  h0a44026_1  
networkx                  2.4                        py_0  
ninja                     1.8.2            py35h04f5b5a_1  
nltk                      3.3.0                    py35_0  
nomkl                     3.0                           0  
nose                      1.3.7                    py35_2  
notebook                  5.6.0                    py35_0  
numba                     0.39.0           py35h6440ff4_0  
numexpr                   2.6.5           py35_nomklhd0a1019_0  
numpy                     1.15.2          py35_blas_openblashd3ea46f_0  [blas_openblas]  conda-forge
numpy                     1.13.3                    <pip>
numpy                     1.18.5                    <pip>
numpy-base                1.14.3           py35h9797aa9_0  
numpydoc                  0.9.2                      py_0  
oauthlib                  3.1.0                     <pip>
odo                       0.5.0                    py35_1  
olefile                   0.46                       py_0  
openblas                  0.2.20                        8    conda-forge
openblas-devel            0.2.20                        7  
opencv                    3.4.2            py35h40b0b35_1  
opencv-python             4.2.0.34                  <pip>
opencv3                   3.1.0                    py35_0    menpo
openjpeg                  2.3.1                h254dc36_3    conda-forge
openpyxl                  2.6.3                      py_0  
openslide                 3.4.1                         2    bioconda
openslide-python          1.1.1            py35h470a237_0    bioconda
openssl                   1.0.2u               h1de35cc_0  
opt-einsum                3.2.1                     <pip>
packaging                 20.3                       py_0  
pandas                    0.23.4           py35h6440ff4_0  
pandoc                    2.2.3.2                       0  
pandocfilters             1.4.2                    py35_1  
pango                     1.42.4               h7e27002_1  
parso                     0.7.0                      py_0  
partd                     1.1.0                      py_0  
path.py                   12.0.2                     py_0  
pathlib                   1.0.1                     <pip>
pathlib2                  2.3.2                    py35_0  
pathos                    0.2.6                     <pip>
patsy                     0.5.0                    py35_0  
pcre                      8.43                 h0a44026_0  
pendulum                  2.1.0                     <pip>
pep8                      1.7.1                    py35_0  
pexpect                   4.6.0                    py35_0  
pickleshare               0.7.4            py35h9517181_0  
pillow                    5.2.0            py35hb68e598_0  
Pillow                    7.1.2                     <pip>
pip                       20.1.1                    <pip>
pip                       10.0.1                   py35_0  
pixman                    0.38.0               h1de35cc_0  
pkginfo                   1.4.2                    py35_1  
pluggy                    0.11.0                     py_0  
ply                       3.11                     py35_0  
pony                      0.7.13                    <pip>
pox                       0.2.8                     <pip>
ppft                      1.6.6.2                   <pip>
prettytable               0.7.2                     <pip>
progressbar2              3.51.4                    <pip>
prometheus_client         0.7.1                      py_0  
prompt_toolkit            1.0.15           py35h93950c5_0  
protobuf                  3.3.0                     <pip>
protobuf                  3.6.0            py35h0a44026_0  
protobuf                  3.12.2                    <pip>
psutil                    5.4.7            py35h1de35cc_0  
ptyprocess                0.6.0                    py35_0  
py                        1.8.1                      py_0  
py-opencv                 3.4.2            py35h0d3447a_1  
pyamg                     3.3.0                     <pip>
pyasn1                    0.4.8                      py_0  
pyasn1-modules            0.2.7                      py_0  
pycocotools               2.0.0            py35h470a237_0    hcc
pycodestyle               2.6.0                      py_0  
pycosat                   0.6.3            py35h745f8c1_0  
pycparser                 2.20                       py_0  
pycrypto                  2.6.1            py35h1de35cc_8  
pycurl                    7.43.0.2         py35hdbc3d79_0  
pydotplus                 2.0.2                      py_1  
pyflakes                  2.2.0                      py_0  
pygame                    1.9.2                     <pip>
pygments                  2.6.1                      py_0  
pylint                    2.1.1                    py35_0  
pyodbc                    4.0.24           py35h0a44026_0  
pyopenssl                 18.0.0                   py35_0  
pyparsing                 2.4.7                      py_0  
pyqt                      5.9.2            py35h655552a_2  
pysocks                   1.6.8                    py35_0  
pytables                  3.4.4            py35hca30cd5_0  
pytesseract               0.3.4                     <pip>
pytest                    3.8.1                    py35_0  
python                    3.5.6                hc167b69_0  
python-dateutil           2.8.1                      py_0  
python-graphviz           0.14                       py_0  
python-libarchive-c       2.9                        py_0  
python-resize-image       1.1.18                    <pip>
python-spams              2.6.1           py35_blas_openblash6af021c_201  [blas_openblas]  conda-forge
python-utils              2.4.0                     <pip>
python.app                2                        py35_9  
pytorch                   1.4.0                   py3.5_0    pytorch
pytz                      2020.1                     py_0  
pytzdata                  2019.3                    <pip>
pywavelets                0.5.2               np112py35_0  
pyyaml                    3.13             py35h1de35cc_0  
pyzmq                     17.1.2           py35h1de35cc_0  
qt                        5.9.7                h468cd18_1  
qtawesome                 0.7.0                      py_0  
qtconsole                 4.7.4                      py_0  
qtpy                      1.9.0                      py_0  
readline                  7.0                  h1de35cc_5  
redis                     5.0.3                h1de35cc_0  
redis-py                  3.5.0                      py_0  
requests                  2.19.1                   py35_0  
requests                  2.21.0                    <pip>
requests-oauthlib         1.3.0                     <pip>
rope                      0.17.0                     py_0  
rsa                       4.0                       <pip>
ruamel_yaml               0.15.46          py35h1de35cc_0  
scikit-image              0.15.0                    <pip>
scikit-image              0.14.0           py35hfc679d8_1    conda-forge
scikit-learn              0.22.2.post1              <pip>
scikit-video              1.1.11                    <pip>
scipy                     1.4.1                     <pip>
scipy                     1.1.0           py35_blas_openblash7943236_201  [blas_openblas]  conda-forge
seaborn                   0.7.1                    py35_0  
send2trash                1.5.0                    py35_0  
serf                      1.3.9                h1f07962_0  
service_identity          18.1.0             pyh91ea838_0  
setuptools                36.2.4                    <pip>
setuptools                47.1.1                    <pip>
setuptools                40.2.0                   py35_0  
Shapely                   1.7.0                     <pip>
simplegeneric             0.8.1                    py35_2  
singledispatch            3.4.0.3          py35h0acf360_0  
sip                       4.19.8           py35h0a44026_0  
six                       1.10.0                    <pip>
six                       1.15.0                    <pip>
six                       1.11.0                   py35_1  
sk-video                  1.1.10                    <pip>
snappy                    1.1.7                he62c110_3  
snowballstemmer           2.0.0                      py_0  
sockjs-tornado            1.0.5                    py35_0  
sortedcollections         1.1.1                      py_0  
sortedcontainers          2.0.5                    py35_0  
sphinx                    3.0.3                      py_0  
sphinxcontrib             1.0                      py35_1  
sphinxcontrib-applehelp   1.0.2                      py_0  
sphinxcontrib-devhelp     1.0.2                      py_0  
sphinxcontrib-htmlhelp    1.0.3                      py_0  
sphinxcontrib-jsmath      1.0.1                      py_0  
sphinxcontrib-qthelp      1.0.3                      py_0  
sphinxcontrib-serializinghtml 1.1.4                      py_0  
sphinxcontrib-websupport  1.2.1                      py_0  
spyder                    3.3.1                    py35_1  
spyder-kernels            0.2.6                    py35_0  
sqlalchemy                1.2.11           py35h1de35cc_0  
sqlite                    3.31.1               h5c1f38d_1  
staintools                2.1.2                     <pip>
statsmodels               0.8.0               np112py35_0  
svn                       1.10.2               h670755d_0  
sympy                     1.2                      py35_0  
tbb                       4.3_20141023                  0    menpo
tblib                     1.6.0                      py_0  
tensorboard               1.10.0           py35hdc36e2c_0  
tensorboard               2.2.2                     <pip>
tensorboard-plugin-wit    1.6.0.post3               <pip>
tensorflow                1.10.0          eigen_py35h5ac2770_0  
tensorflow                2.2.0                     <pip>
tensorflow-base           1.10.0          eigen_py35h4f0eeca_0  
tensorflow-estimator      2.2.0                     <pip>
tensorlayer               2.2.3                     <pip>
termcc                    2019.8.2                  <pip>
termcolor                 1.1.0                    py35_1  
terminado                 0.8.1                    py35_1  
terminaltables            3.1.0                     <pip>
tesseract                 4.1.1                haaf70cb_2    conda-forge
testpath                  0.4.4                      py_0  
tk                        8.6.8                ha441bb4_0  
toolz                     0.10.0                     py_0  
torch                     1.5.1                     <pip>
torch                     1.0.0                     <pip>
torchfile                 0.1.0                     <pip>
torchsummary              1.5.1                     <pip>
torchvision               0.6.1                     <pip>
torchvision               0.5.0                  py35_cpu    pytorch
tornado                   5.1.1            py35h1de35cc_0  
tqdm                      4.46.0                     py_0  
traitlets                 4.3.2            py35hd3d1486_0  
twisted                   17.5.0                   py35_0  
typed-ast                 1.1.0            py35h6952a12_0  
typing-extensions         3.7.4.2                   <pip>
umap                      0.1.1                     <pip>
umap-learn                0.3.10                    <pip>
unicodecsv                0.14.1           py35h2154ad0_0  
unixodbc                  2.3.7                h1de35cc_0  
urllib3                   1.23                     py35_0  
urllib3                   1.24.1                    <pip>
utils                     0.9.0                     <pip>
visdom                    0.1.8.8                   <pip>
wcwidth                   0.1.9                      py_0  
webencodings              0.5.1                    py35_1  
websocket-client          0.55.0                    <pip>
websockets                7.0                       <pip>
Werkzeug                  0.12.2                    <pip>
werkzeug                  1.0.1                      py_0  
wget                      3.2                       <pip>
wheel                     0.31.1                   py35_0  
wheel                     0.29.0                    <pip>
widgetsnbextension        1.2.3                    py35_1    menpo
wordcloud                 1.5.0                     <pip>
wrap                      2018.3.1                  <pip>
wrapt                     1.10.11          py35h1de35cc_2  
wrapt                     1.12.1                    <pip>
xlrd                      1.2.0                      py_0  
xlsxwriter                1.2.8                      py_0  
xlwings                   0.11.8                   py35_0  
xlwt                      1.2.0            py35hf70d7fa_0  
xz                        5.2.5                h1de35cc_0  
yaml                      0.1.7                hc338f04_2  
yarl                      1.4.2                     <pip>
zeromq                    4.2.5                h0a44026_1  
zict                      2.0.0                      py_0  
zlib                      1.2.11               h1de35cc_3  
zope                      1.0                      py35_1  
zope.interface            4.5.0            py35h1de35cc_0  
zstd                      1.3.7                h5bba6e5_0  


Details about conda and system ( conda info ):
$ conda info


     active environment : None
       user config file : /Users/amirali/.condarc
 populated config files : /Users/amirali/.condarc
          conda version : 4.5.11
    conda-build version : 3.15.1
         python version : 3.5.6.final.0
       base environment : /Users/amirali/anaconda  (writable)
           channel URLs : https://conda.anaconda.org/menpo/osx-64
                          https://conda.anaconda.org/menpo/noarch
                          https://repo.anaconda.com/pkgs/main/osx-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/free/osx-64
                          https://repo.anaconda.com/pkgs/free/noarch
                          https://repo.anaconda.com/pkgs/r/osx-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/pro/osx-64
                          https://repo.anaconda.com/pkgs/pro/noarch
                          https://conda.anaconda.org/conda-forge/osx-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /Users/amirali/anaconda/pkgs
                          /Users/amirali/.conda/pkgs
       envs directories : /Users/amirali/anaconda/envs
                          /Users/amirali/.conda/envs
               platform : osx-64
             user-agent : conda/4.5.11 requests/2.19.1 CPython/3.5.6 Darwin/19.3.0 OSX/10.15.3
                UID:GID : 501:20
             netrc file : None
           offline mode : False
Dominant language
Shell
Stars
22
Forks
14
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from conda-forge/python-spams-feedstock

All issues in conda-forge/python-spams-feedstock

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.