kushalkolar / MESmerize

Platform for Calcium Imaging analysis. DEPRECATED.
GNU General Public License v3.0
59 stars 14 forks source link

CalmAn features not enabled and working #31

Closed akatav closed 3 years ago

akatav commented 3 years ago

Hi, I am on windows 10 with caiman installed as per instructions here: https://caiman.readthedocs.io/en/master/Installation.html#installation-on-macos-and-linux

I have followed instructions for installing mesmerize on windows. But while running mesmerize, the UI opens but CalmAn is not working. image

I checked ../mesmerize/lib/site-packages/ and caiman is installed correctly. Any pointers to resolve this will be helpful. image

kushalkolar commented 3 years ago

Can you go into an ipython shell in the mesmerize environment and see if you can import caiman

akatav commented 3 years ago

@kushalkolar yes,i can. image

although i did resolve an error earlier with oasis import before this import inside ipython could work.

kushalkolar commented 3 years ago

alright, are you able to launch memerize and not get the warning about caiman now?

akatav commented 3 years ago

@kushalkolar actually, that was my initial issue as well.I could import caiman inside ipython within the mesmerize env.But outside of ipython, when i ran memerize, the mesmerize GUI opened up well but the warning about caiman did not go away.

kushalkolar commented 3 years ago

Strange, are you able to import caiman in the mesmerize console in the welcome window

akatav commented 3 years ago

@kushalkolar thank you. actually, i could do import caiman inside the mesmerize console but on some other modules inside source_extraction, the oasis package not found error occurred. Turned out i needed to do python setup.py build_ext -i command again. Now i am not getting the caiman not found on mesmerize startup.

kushalkolar commented 3 years ago

can you make a clean environment? If you're using caiman on windows I think it's best to just use the conda package due to installation difficulties on Windows.

kushalkolar commented 3 years ago

Follow this for Windows: http://docs.mesmerizelab.org/en/master/user_guides/installation.html#windows

akatav commented 3 years ago

@kushalkolar actually, i followed the above link for installation of mesmerize on windows. but as i had already installed caiman and was working on it in a separate virtual env, i installed caiman inside mesmerize env again. I do not get the warning about caiman anymore inside mesmerize.

kushalkolar commented 3 years ago

python (and mesmerize is a python application) will only be able to import packages that are in the current environment

if this helps, here's an explanation of virtual environments: https://realpython.com/python-virtual-environments-a-primer/#:~:text=Remove%20ads-,What%20Is%20a%20Virtual%20Environment%3F,dependencies%20every%20other%20project%20has.

So I guess I can mark this as resolved then?

akatav commented 3 years ago

@kushalkolar yes, resolved. thanks.