Closed voloddia closed 1 year ago
Hi @voloddia,
thanks for mentioning this. I'll have a look.
Best, Arik
Hi @voloddia,
actually, I cannot reproduce your error. I ran
conda create -n claspytest python=3.9 conda activate claspytest pip install claspy pip install notebook pip install numba==0.56.4 jupyter notebook
and then created a notebook with your short example, restarting and running the kernel in all kinds of ways. But it worked, regardless. I also tried other numba versions, which all work fine.
However, maybe I can help you nevertheless: The ReferenceError you posted comes up, because we cache the results of the nearest neighbour computation with numba. I've had this error a few times myself in random scenarios. It sometimes comes up when numba confuses something in the caching (I guess). More importantly, I always fixed it by cleaning the cache. So, please go to your claspy installation you find with
pip show claspy
Then head to the pycache folder and delete it. This hopefully should solve your problem. Please let me know!
Best regards, Arik
Thank you. After restarting the computer, I also cannot reproduce the error. That object vanished error still happened seemingly randomly in other places a few times. Clearing pycache of claspy worked in those times, so I'll close this.
I get this error whenever I run claspy segmentation in Jupyter notebooks after restarting kernel. If I run it again without changing anything, it runs fine. Do you have any idea what might cause this?
Numba version 0.56.4 Reproducible code
Error