Open eblchen opened 9 months ago
Did you try with less number of workers?
Tried with 10 workers, this was the end of the error message:
OSError: Timed out during handshake while connecting to tcp://127.0.0.1:45347 after 10 s
distributed.worker - WARNING - Memory use is high but worker has no data to store to disk. Perhaps some other process is leaking memory? Process memory: 446.74 MB -- Worker memory limit: 637.97 MB
distributed.worker - WARNING - Memory use is high but worker has no data to store to disk. Perhaps some other process is leaking memory? Process memory: 446.74 MB -- Worker memory limit: 637.97 MB
distributed.worker - WARNING - Memory use is high but worker has no data to store to disk. Perhaps some other process is leaking memory? Process memory: 446.74 MB -- Worker memory limit: 637.97 MB
Killed
(scenic) echen@20766MOPLT:~/working/scenic$ /home/echen/miniforge3/envs/scenic/lib/python3.6/multiprocessing/semaphore_tracker.py:143: UserWarning: semaphore_tracker: There appear to be 48 leaked semaphores to clean up at shutdown
len(cache))
How much RAM do your have? You might need to lower the number of threads even more. Also note that we only run pySCENIC on servers and not on local computers (which might not have enough RAM).
Ah I see I'll try on a server then, thank you
Hi, I also encountered a problem when running GRNBoost2 step:
pyscenic grn --num_workers 20 \ --seed 42 \ --method grnboost2 \ --output ./results/grn_def.csv \ sndef.csv allTFs_mm.txt
2024-03-22 10:36:57,207 - pyscenic.cli.pyscenic - INFO - Loading expression matrix.
2024-03-22 10:38:27,167 - pyscenic.cli.pyscenic - INFO - Inferring regulatory networks.
Traceback (most recent call last):
File "/home/wsq_pkuhpc/lustre2/user/hy/miniconda3/envs/pyscenic/bin/pyscenic", line 8, in <module>
sys.exit(main())
File "/home/wsq_pkuhpc/lustre2/user/hy/miniconda3/envs/pyscenic/lib/python3.10/site-packages/pyscenic/cli/pyscenic.py", line 713, in main
args.func(args)
File "/home/wsq_pkuhpc/lustre2/user/hy/miniconda3/envs/pyscenic/lib/python3.10/site-packages/pyscenic/cli/pyscenic.py", line 106, in find_adjacencies_command
network = method(
File "/home/wsq_pkuhpc/lustre2/user/hy/miniconda3/envs/pyscenic/lib/python3.10/site-packages/arboreto/algo.py", line 39, in grnboost2
return diy(expression_data=expression_data, regressor_type='GBM', regressor_kwargs=SGBM_KWARGS,
File "/home/wsq_pkuhpc/lustre2/user/hy/miniconda3/envs/pyscenic/lib/python3.10/site-packages/arboreto/algo.py", line 120, in diy
graph = create_graph(expression_matrix,
File "/home/wsq_pkuhpc/lustre2/user/hy/miniconda3/envs/pyscenic/lib/python3.10/site-packages/arboreto/core.py", line 450, in create_graph
all_meta_df = from_delayed(delayed_meta_dfs, meta=_META_SCHEMA)
File "/home/wsq_pkuhpc/lustre2/user/hy/miniconda3/envs/pyscenic/lib/python3.10/site-packages/dask_expr/io/_delayed.py", line 93, in from_delayed
raise TypeError("Must supply at least one delayed object")
TypeError: Must supply at least one delayed object
I am using pySCENIC 0.12.1+2.geaf23eb on a 24 core 1000G RAM HPC
package list
# Name Version Build Channel
_libgcc_mutex 0.1 main defaults
_openmp_mutex 5.1 1_gnu defaults
aiohttp 3.9.3 pypi_0 pypi
aiosignal 1.3.1 pypi_0 pypi
anndata 0.10.6 pypi_0 pypi
arboreto 0.1.6 pypi_0 pypi
array-api-compat 1.5.1 pypi_0 pypi
asttokens 2.4.1 pypi_0 pypi
async-timeout 4.0.3 pypi_0 pypi
attrs 23.2.0 pypi_0 pypi
bokeh 3.4.0 pypi_0 pypi
boltons 23.1.1 pypi_0 pypi
bzip2 1.0.8 h5eee18b_5 defaults
ca-certificates 2024.3.11 h06a4308_0 defaults
certifi 2024.2.2 pypi_0 pypi
charset-normalizer 3.3.2 pypi_0 pypi
click 8.1.7 pypi_0 pypi
cloudpickle 3.0.0 pypi_0 pypi
comm 0.2.2 pypi_0 pypi
contourpy 1.2.0 pypi_0 pypi
ctxcore 0.2.0 pypi_0 pypi
cycler 0.12.1 pypi_0 pypi
cytoolz 0.12.3 pypi_0 pypi
dask 2024.3.1 pypi_0 pypi
dask-expr 1.0.4 pypi_0 pypi
debugpy 1.8.1 pypi_0 pypi
decorator 5.1.1 pypi_0 pypi
dill 0.3.8 pypi_0 pypi
distributed 2024.3.1 pypi_0 pypi
exceptiongroup 1.2.0 pypi_0 pypi
executing 2.0.1 pypi_0 pypi
fonttools 4.50.0 pypi_0 pypi
frozendict 2.4.0 pypi_0 pypi
frozenlist 1.4.1 pypi_0 pypi
fsspec 2024.3.1 pypi_0 pypi
h5py 3.10.0 pypi_0 pypi
idna 3.6 pypi_0 pypi
importlib-metadata 7.1.0 pypi_0 pypi
interlap 0.2.7 pypi_0 pypi
ipykernel 6.29.3 pypi_0 pypi
ipython 8.22.2 pypi_0 pypi
jedi 0.19.1 pypi_0 pypi
jinja2 3.1.3 pypi_0 pypi
joblib 1.3.2 pypi_0 pypi
jupyter-client 8.6.1 pypi_0 pypi
jupyter-core 5.7.2 pypi_0 pypi
kiwisolver 1.4.5 pypi_0 pypi
ld_impl_linux-64 2.38 h1181459_1 defaults
libffi 3.4.4 h6a678d5_0 defaults
libgcc-ng 11.2.0 h1234567_1 defaults
libgomp 11.2.0 h1234567_1 defaults
libstdcxx-ng 11.2.0 h1234567_1 defaults
libuuid 1.41.5 h5eee18b_0 defaults
llvmlite 0.42.0 pypi_0 pypi
locket 1.0.0 pypi_0 pypi
loompy 3.0.7 pypi_0 pypi
lz4 4.3.3 pypi_0 pypi
markupsafe 2.1.5 pypi_0 pypi
matplotlib 3.8.3 pypi_0 pypi
matplotlib-inline 0.1.6 pypi_0 pypi
msgpack 1.0.8 pypi_0 pypi
multidict 6.0.5 pypi_0 pypi
multiprocessing-on-dill 3.5.0a4 pypi_0 pypi
natsort 8.4.0 pypi_0 pypi
ncurses 6.4 h6a678d5_0 defaults
nest-asyncio 1.6.0 pypi_0 pypi
networkx 3.2.1 pypi_0 pypi
numba 0.59.1 pypi_0 pypi
numexpr 2.9.0 pypi_0 pypi
numpy 1.26.4 pypi_0 pypi
numpy-groupies 0.10.2 pypi_0 pypi
openssl 3.0.13 h7f8727e_0 defaults
packaging 24.0 pypi_0 pypi
pandas 2.2.1 pypi_0 pypi
parso 0.8.3 pypi_0 pypi
partd 1.4.1 pypi_0 pypi
patsy 0.5.6 pypi_0 pypi
pexpect 4.9.0 pypi_0 pypi
pillow 10.2.0 pypi_0 pypi
pip 23.3.1 pypi_0 pypi
platformdirs 4.2.0 pypi_0 pypi
prompt-toolkit 3.0.43 pypi_0 pypi
psutil 5.9.8 pypi_0 pypi
ptyprocess 0.7.0 pypi_0 pypi
pure-eval 0.2.2 pypi_0 pypi
pyarrow 15.0.2 pypi_0 pypi
pyarrow-hotfix 0.6 pypi_0 pypi
pygments 2.17.2 pypi_0 pypi
pynndescent 0.5.11 pypi_0 pypi
pyparsing 3.1.2 pypi_0 pypi
pyscenic 0.12.1+2.geaf23eb pypi_0 pypi
python 3.10.13 h955ad1f_0 defaults
python-dateutil 2.9.0.post0 pypi_0 pypi
pytz 2024.1 pypi_0 pypi
pyyaml 6.0.1 pypi_0 pypi
pyzmq 25.1.2 pypi_0 pypi
readline 8.2 h5eee18b_0 defaults
requests 2.31.0 pypi_0 pypi
scanpy 1.9.8 pypi_0 pypi
scikit-learn 1.4.1.post1 pypi_0 pypi
scipy 1.12.0 pypi_0 pypi
seaborn 0.13.2 pypi_0 pypi
session-info 1.0.0 pypi_0 pypi
setuptools 68.2.2 pypi_0 pypi
six 1.16.0 pypi_0 pypi
sortedcontainers 2.4.0 pypi_0 pypi
sqlite 3.41.2 h5eee18b_0 defaults
stack-data 0.6.3 pypi_0 pypi
statsmodels 0.14.1 pypi_0 pypi
stdlib-list 0.10.0 pypi_0 pypi
tblib 3.0.0 pypi_0 pypi
threadpoolctl 3.4.0 pypi_0 pypi
tk 8.6.12 h1ccaba5_0 defaults
toolz 0.12.1 pypi_0 pypi
tornado 6.4 pypi_0 pypi
tqdm 4.66.2 pypi_0 pypi
traitlets 5.14.2 pypi_0 pypi
tzdata 2024.1 pypi_0 pypi
umap-learn 0.5.5 pypi_0 pypi
urllib3 2.2.1 pypi_0 pypi
wcwidth 0.2.13 pypi_0 pypi
wheel 0.41.2 pypi_0 pypi
xyzservices 2023.10.1 pypi_0 pypi
xz 5.4.6 h5eee18b_0 defaults
yarl 1.9.4 pypi_0 pypi
zict 3.0.0 pypi_0 pypi
zipp 3.18.1 pypi_0 pypi
zlib 1.2.13 h5eee18b_0 defaults
I met the same problem. I guessed it was probably due to version incompatibility. So I changed the version of packages. However, it didn't work. And when I input as follows, it ran out results. pyscenic ctx --num_workers 10 \ --output regulons.csv \ --expression_mtx_fname sce.loom \ --mode "custom_multiprocessing" \ --annotations_fname motifs-v9-nr.hgnc-m0.001-o0.0.tbl \ sce.adj.csv \ hg38_10kbp_up_10kbp_down_full_tx_v10_clust.genes_vs_motifs.rankings.feather
Ocean-Lyu I met the same problem as you. But I did't find a resolution.
Ocean-Lyu I met the same problem as you. But I did't find a resolution.
Also the same problem. It seems that this issue has only arisen recently.
Changing dask/distributed version worked for me.
You can try pip install distributed==2023.12.1
!
If you got error message of "TypeError: Must supply at least one delayed object", It may be caused by dependency error of dask-expr package. dask-expr package was currently updated from version 0.5.3 (Feb 28) to 1.0 (Mar 12)
You could avoid this message by down-grading dask-expr package, by following code
pip install dask-expr==0.5.3
git version of arboreto should fix this: https://github.com/aertslab/arboreto/pull/39
If you got error message of "TypeError: Must supply at least one delayed object", It may be caused by dependency error of dask-expr package. dask-expr package was currently updated from version 0.5.3 (Feb 28) to 1.0 (Mar 12)
You could avoid this message by down-grading dask-expr package, by following code
pip install dask-expr==0.5.3
Merci bcp!!! C'etait Vrai!!!
Hi guys, I used HPC without Root access. and I use conda environment and command line of pyscenic. I solve this problems by @r-trimbour and @dactylogram their answer: pip install dask-expr==0.5.3 distributed==2024.2.1 only install on package will cause "ERROR: pip's dependency resolver does not currently take into account all..."
Hi guys, I used HPC without Root access. and I use conda environment and command line of pyscenic. I solve this problems by @r-trimbour and @dactylogram their answer: pip install dask-expr==0.5.3 distributed==2024.2.1 only install on package will cause "ERROR: pip's dependency resolver does not currently take into account all..." oui, mais je sais pas pourquoi a cette question
Hi @yifanfu01 I don't know if you're still struggling with the installation, but if it's the case I think dask depends on distributed so you have to choose the same version for both of them. We were both suggesting to update their versions but you can choose as long as it's before marche 2024 on pip from what I remember. :)
git version of arboreto should fix this: aertslab/arboreto#39
running into this issue, https://github.com/aertslab/arboreto/issues/33, when trying to install arboreto from source..
I have a similar problem plus "ERROR - Error in Nanny killing Worker subprocess". I can't understand if it's because I put "--rm" as the argument. It automatically removes the container once it exists. Moreover, the problem was apparently resolved below by the explanation "The above exception was the direct cause of the following exception". Help me understand the error so I can figure out how I need to run the analysis again.
I use 150GB and 20 CPU
docker run -it --rm \
-v /data:/data \
aertslab/pyscenic:0.12.1 pyscenic grn \
--num_workers 20 \
-o /data/expr_mat.adjacencies.tsv \
/data/expr_mat.loom \
/data/allTFs_hg38.txt
024-06-25 21:09:47,005 - pyscenic.cli.pyscenic - INFO - Inferring regulatory networks. 2024-06-26 16:12:16,777 - distributed.nanny - WARNING - Worker process still alive after 3.1999992370605472 seconds, killing 2024-06-26 16:12:16,778 - distributed.nanny - WARNING - Worker process still alive after 3.1999989318847657 seconds, killing 2024-06-26 16:12:16,778 - distributed.nanny - WARNING - Worker process still alive after 3.199999389648438 seconds, killing 2024-06-26 16:12:16,778 - distributed.nanny - WARNING - Worker process still alive after 3.1999995422363288 seconds, killing 2024-06-26 16:12:16,779 - distributed.nanny - WARNING - Worker process still alive after 3.199999389648438 seconds, killing 2024-06-26 16:12:16,779 - distributed.nanny - WARNING - Worker process still alive after 3.199999389648438 seconds, killing 2024-06-26 16:12:16,779 - distributed.nanny - WARNING - Worker process still alive after 3.1999992370605472 seconds, killing 2024-06-26 16:12:16,779 - distributed.nanny - WARNING - Worker process still alive after 3.199999389648438 seconds, killing 2024-06-26 16:12:16,779 - distributed.nanny - WARNING - Worker process still alive after 3.1999990844726565 seconds, killing 2024-06-26 16:12:16,779 - distributed.nanny - WARNING - Worker process still alive after 3.1999986267089846 seconds, killing 2024-06-26 16:12:16,780 - distributed.nanny - WARNING - Worker process still alive after 3.1999990844726565 seconds, killing 2024-06-26 16:12:16,780 - distributed.nanny - WARNING - Worker process still alive after 3.1999992370605472 seconds, killing 2024-06-26 16:12:16,780 - distributed.nanny - WARNING - Worker process still alive after 3.1999989318847657 seconds, killing 2024-06-26 16:12:16,782 - distributed.nanny - WARNING - Worker process still alive after 3.1999992370605472 seconds, killing 2024-06-26 16:12:16,782 - distributed.nanny - WARNING - Worker process still alive after 3.199998474121094 seconds, killing 2024-06-26 16:12:16,782 - distributed.nanny - WARNING - Worker process still alive after 3.199999389648438 seconds, killing 2024-06-26 16:12:16,782 - distributed.nanny - WARNING - Worker process still alive after 3.1999992370605472 seconds, killing 2024-06-26 16:12:17,493 - distributed.nanny - ERROR - Error in Nanny killing Worker subprocess Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 580, in close await self.kill(timeout=timeout) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 372, in kill await self.process.kill(timeout=0.8 * (deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 781, in kill await process.join(max(0, deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/process.py", line 304, in join await asyncio.wait_for(asyncio.shield(self._exit_future), timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError 2024-06-26 16:12:17,495 - distributed.nanny - ERROR - Error in Nanny killing Worker subprocess Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 580, in close await self.kill(timeout=timeout) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 372, in kill await self.process.kill(timeout=0.8 * (deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 781, in kill await process.join(max(0, deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/process.py", line 304, in join await asyncio.wait_for(asyncio.shield(self._exit_future), timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError 2024-06-26 16:12:17,496 - distributed.nanny - ERROR - Error in Nanny killing Worker subprocess Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 580, in close await self.kill(timeout=timeout) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 372, in kill await self.process.kill(timeout=0.8 * (deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 781, in kill await process.join(max(0, deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/process.py", line 304, in join await asyncio.wait_for(asyncio.shield(self._exit_future), timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError 2024-06-26 16:12:17,498 - distributed.nanny - ERROR - Error in Nanny killing Worker subprocess Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 580, in close await self.kill(timeout=timeout) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 372, in kill await self.process.kill(timeout=0.8 * (deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 781, in kill await process.join(max(0, deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/process.py", line 304, in join await asyncio.wait_for(asyncio.shield(self._exit_future), timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError 2024-06-26 16:12:17,499 - distributed.nanny - ERROR - Error in Nanny killing Worker subprocess Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 580, in close await self.kill(timeout=timeout) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 372, in kill await self.process.kill(timeout=0.8 * (deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 781, in kill await process.join(max(0, deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/process.py", line 304, in join await asyncio.wait_for(asyncio.shield(self._exit_future), timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError 2024-06-26 16:12:17,503 - distributed.nanny - ERROR - Error in Nanny killing Worker subprocess Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 580, in close await self.kill(timeout=timeout) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 372, in kill await self.process.kill(timeout=0.8 * (deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 781, in kill await process.join(max(0, deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/process.py", line 304, in join await asyncio.wait_for(asyncio.shield(self._exit_future), timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError 2024-06-26 16:12:17,542 - distributed.nanny - ERROR - Error in Nanny killing Worker subprocess Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 580, in close await self.kill(timeout=timeout) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 372, in kill await self.process.kill(timeout=0.8 * (deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 781, in kill await process.join(max(0, deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/process.py", line 304, in join await asyncio.wait_for(asyncio.shield(self._exit_future), timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError 2024-06-26 16:12:17,545 - distributed.nanny - ERROR - Error in Nanny killing Worker subprocess Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 580, in close await self.kill(timeout=timeout) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 372, in kill await self.process.kill(timeout=0.8 * (deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 781, in kill await process.join(max(0, deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/process.py", line 304, in join await asyncio.wait_for(asyncio.shield(self._exit_future), timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError 2024-06-26 16:12:17,568 - distributed.nanny - ERROR - Error in Nanny killing Worker subprocess Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 580, in close await self.kill(timeout=timeout) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 372, in kill await self.process.kill(timeout=0.8 * (deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 781, in kill await process.join(max(0, deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/process.py", line 304, in join await asyncio.wait_for(asyncio.shield(self._exit_future), timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError 2024-06-26 16:12:17,570 - distributed.nanny - ERROR - Error in Nanny killing Worker subprocess Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/tasks.py", line 456, in wait_for return fut.result() asyncio.exceptions.CancelledError
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 580, in close await self.kill(timeout=timeout) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 372, in kill await self.process.kill(timeout=0.8 * (deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/nanny.py", line 781, in kill await process.join(max(0, deadline - time())) File "/opt/venv/lib/python3.10/site-packages/distributed/process.py", line 304, in join await asyncio.wait_for(asyncio.shield(self._exit_future), timeout) File "/usr/local/lib/python3.10/asyncio/tasks.py", line 458, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError
2024-06-26 16:12:17,576 - pyscenic.cli.pyscenic - INFO - Writing results to file. preparing dask client parsing input creating dask graph 20 partitions computing dask graph not shutting down client, client was created externally finished
Hi guys, I used HPC without Root access. and I use conda environment and command line of pyscenic. I solve this problems by @r-trimbour and @dactylogram their answer: pip install dask-expr==0.5.3 distributed==2024.2.1 only install on package will cause "ERROR: pip's dependency resolver does not currently take into account all..."
Thanks a lot! I've solved the problem. But I also noticed that this solution did not work out under python 3.11.9. If anybody fail to solve this problem, you could try again under python 3.11.8 which worked just fine for me.
Error running: pyscenic grn \ --num_workers 20 \ --output adj.tsv \ --method grnboost2 \ PBMC10k_filtered.loom \ hs_hgnc_tfs.txt
Package list: