I came across this error when trying to score all images:
TypeError: ufunc 'isinf' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule "safe"
This issue is fixed in the CPA source code but the latest version doesn’t contain the fixed code. I tried to download the python file and generate a pyc file to replace the old one, but it doesn’t work. So it seems that my only option is to build from the source code.
I installed all required packages and run “python CellProfiler-Analyst.py”, then it gives me the following error:
Traceback (most recent call last):
File "C:\Users\17062\Downloads\CellProfiler-Analyst-master\CellProfiler-Analyst.py", line 19, in <module>
import javabridge
File "C:\Users\17062\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\javabridge\__init__.py", line 38, in <module>
from .jutil import start_vm, kill_vm, vm, activate_awt, deactivate_awt
File "C:\Users\17062\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\javabridge\jutil.py", line 157, in <module>
import javabridge._javabridge as _javabridge
ModuleNotFoundError: No module named 'javabridge._javabridge'
The version of my javabridge is 1.0.16. I tried to uninstall and install it but it didn’t work.
How to fix this issue?