Skip to content
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

No matching definition for argument type #867

Open
wangjiawen2013 opened this issue Aug 8, 2024 · 3 comments
Open

No matching definition for argument type #867

wangjiawen2013 opened this issue Aug 8, 2024 · 3 comments
Assignees

Comments

@wangjiawen2013
Copy link

Hi,
When I run sq.gr.nhood_enrichment(sdata["table"], n_jobs=10, cluster_key='id'), the following error occurred:

No matching definition for argument type(s) readonly array(uint32, 1d, C), array(uint32, 1d, C), array(uint32, 1d, C)
  File "/home/wangjw/data/work/spatial/pipeline.smk", line 317, in __rule_spatial_graph
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/squidpy/gr/_nhood.py", line 186, in nhood_enrichment
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/squidpy/_utils.py", line 171, in wrapper
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 1952, in __call__
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 1595, in _get_outputs
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 1699, in _retrieve
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 1734, in _raise_error_fast
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 736, in get_result
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/site-packages/joblib/parallel.py", line 754, in _return_or_raise
  File "/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/concurrent/futures/thread.py", line 58, in run
Shutting down, this might take some time.
Exiting because a job execution failed. Look above for error message
^CException ignored in: <module 'threading' from '/home/wangjw/programs/miniconda3/envs/py311/lib/python3.11/threading.py'>
Traceback (most recent call last):

Is it relate to the parameters numba_parallel and backend ?

@p-lombard
Copy link

I'm experiencing the same issue!

@wangjiawen2013
Copy link
Author

Setting n_jobs=1 can avoid the bug.

@giovp
Copy link
Member

giovp commented Aug 19, 2024

can you post the whole traceback?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants