Closed WhereWolf72 closed 2 years ago
@WhereWolf72 Thanks for posting the issue.
It's unable to find _flapack
which is the scipy
interface to low-level linear algebra routines.
Can you run this in ipython
or the mesmerize console in that environment verify that this doesn't work:
from scipy.linalg import _flapack
I think there's two possibilities:
sudo apt update
sudo apt install liblapack* libopenblas*
After that create a new python env, install cython
, numpy
and scipy
and try from scipy.linalg import _flapack
. If it works then install mesmerize into that environment and see if CNMFE works.
@WhereWolf72 did this work for you?
@kushalkolar Thanks for the prompt help! Unfotunately, those options didn't work. I'm guessing it's my dated CPU then that's the problem. Luckily, I just built a new PC two weeks ago and have an empty drive that I'll dual boot linux onto and try again. Stay tuned.
@WhereWolf72 make sure you install the Blas and lapack math libs before making your Python envs.
After setting up the dual boot on my new machine, I was able to install Mesmerize and CaImAn. Initially, I ran into the same problem as before (getting the same issue described above). After installing Blas and lapack separately and creating a new venv into which I installed Mezmerize and CaImAn, it seems the issue is fixed with the caveat that I've only run one file so far. Any idea why these packages needed to be installed separately? When I installed them as per your instructions, it even output "0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded." Thanks again for all your help!
Blas and lapack are dependencies for a lot of scientific applications, but a fresh Ubuntu install might not have them.
More info on Blas and lapack: https://stackoverflow.com/questions/17858104/what-is-the-relation-between-blas-lapack-and-atlas
Describe the bug I can import a .tif file using the tiff importer and json_minimal metadata importer. Further, I can inspect the correlation and PNR after running that preliminary analysis. However, when I go to run the full CNMFe analysis, I get an error and don't get an output .hdf5 file, but get the other output files that I have gotten previously upon successful CNMFe analysis. The only updates to my machine have been regarding the OS (Ubuntu 20.04), so I'm not sure exactly what has changed that has caused this issue as I have run this analysis before without problem.
To Reproduce
Expected behavior Upon running full CNMF-E, I expected to get an .hdf5 file along with other file outputs so that I could visualize the ROIs as I have before.
Copy paste message from the error window (if any)
Copy-paste or take a screenshot of the terminal that Mesmerize is running in
Make sure the entire stack trace is visible, and all messages relevant to the issue are visible.
If relevant, messages from the batch manager terminal status: 0 output_info: Traceback (most recent call last): File "/home/scoob/Desktop/Calcium_Imaging/mez/lib/python3.6/site-packages/mesmerize/viewer/modules/batch_run_modules/CNMFE.py", line 173, in run cnm.fit(Y) File "/home/scoob/Desktop/Calcium_Imaging/CaImAn/caiman/source_extraction/cnmf/cnmf.py", line 606, in fit indices=indices) File "/home/scoob/Desktop/Calcium_Imaging/CaImAn/caiman/source_extraction/cnmf/map_reduce.py", line 249, in run_CNMF_patches file_res = dview.map_async(cnmf_patches, args_in).get(4294967) File "/usr/lib/python3.6/multiprocessing/pool.py", line 644, in get raise self._value multiprocessing.pool.MaybeEncodingError: Error sending result: '<multiprocessing.pool.ExceptionWithTraceback object at 0x7f6763dd4cc0>'. Reason: 'PicklingError("Can't pickle <class '_flapack.error'>: import of module '_flapack' failed",)'
Y.shape: [565, 512, 512] processing_time: 1.0152677694956462
Screenshots If applicable, add screenshots to help explain your problem.
Operating System & specs (CPU, RAM etc.). Please complete the following information:
Details about your Mesmerize install
Additional context I did check the corr/PNR for several gSig values before running the CNMF-E. I don't think this caused the error, but I figured it was worth mentioning.