nel-lab / mesmerize-core

High level pandas-based API for batch analysis of Calcium Imaging data using CaImAn
Other
60 stars 15 forks source link

CONDA_PREFIX_1 error when running , row.caiman.run() on jupyter lab mac m1 #174

Closed Vignesh-786 closed 9 months ago

Vignesh-786 commented 1 year ago

I'm getting this error when trying to run row.caiman.run() in the mcorr_cnmf.ipynb demo.

complete traceback below:

Screenshot 2023-02-07 at 12 25 56

Thanks in advance

kushalkolar commented 1 year ago

What exact type of env, conda, miniconda, miniforge?

On Tue, Feb 7, 2023, 06:26 Vignesh-786 @.***> wrote:

I'm getting this error when trying to run row.caiman.run() in the mcorr_cnmf.ipynb https://github.com/nel-lab/mesmerize-core/blob/master/notebooks/mcorr_cnmf.ipynb demo.

complete traceback below:

[image: Screenshot 2023-02-07 at 12 25 56] https://user-images.githubusercontent.com/119962761/217232397-16dfede8-55c2-4edc-9a32-a887d85ff89d.png

Thanks in advance

— Reply to this email directly, view it on GitHub https://github.com/nel-lab/mesmerize-core/issues/174, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACHXXRAG5NE56MBVXMFEFITWWIWPHANCNFSM6AAAAAAUT2ZYAA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Vignesh-786 commented 1 year ago

It is Conda env

vncntprvst commented 1 year ago

Worth mentioning the temporary fix that Cameron Smith posted for that error during the workshop. Add these lines before row.caiman.run():

# small fix for CONDA_PREFIX_1 not being found in environment
import os
str_to_remove = os.path.join(' ', 'envs', 'mescore')[1:]
conda_prefix_1_str = os.environ['CONDA_PREFIX'].replace(str_to_remove, '')
os.environ['CONDA_PREFIX_1'] = conda_prefix_1_str
Vignesh-786 commented 1 year ago

it did work well . Thank you so much gusys

kushalkolar commented 9 months ago

Worth mentioning the temporary fix that Cameron Smith posted for that error during the workshop. Add these lines before row.caiman.run():

# small fix for CONDA_PREFIX_1 not being found in environment
import os
str_to_remove = os.path.join(' ', 'envs', 'mescore')[1:]
conda_prefix_1_str = os.environ['CONDA_PREFIX'].replace(str_to_remove, '')
os.environ['CONDA_PREFIX_1'] = conda_prefix_1_str

This is going to remain as the "fix" for now, it's in the demo notebooks too.