MouseLand / suite2p

cell detection in calcium imaging recordings
http://www.suite2p.org
GNU General Public License v3.0
344 stars 240 forks source link

Install and Test Issue (Mac Os), Suite2p installed but not able to import/load .tif files #1023

Closed gmbcrazy closed 8 months ago

gmbcrazy commented 1 year ago

Describe the issue:

I installed the developer version (Mac OS 13.4 (22F66)) following Github instructions. Not able to load tif file. Error message is as following

 (suite2p) zhangl33@MH02183537MLI suite2p % suite2p

loaded default ops 2023-08-14 13:01:20.943 python[26613:247604] +[CATransaction synchronize] called within transaction qt.pointer.dispatch: skipping QEventPoint(id=1 ts=0 pos=0,0 scn=366.201,278.216 gbl=366.201,278.216 Released ellipse=(1x1 ∡ 0) vel=0,0 press=-366.201,-278.216 last=-366.201,-278.216 Δ 366.201,278.216) : no target window qt.pointer.dispatch: skipping QEventPoint(id=1 ts=0 pos=0,0 scn=1000.12,93.9865 gbl=1000.12,93.9865 Released ellipse=(1x1 ∡ 0) vel=0,0 press=-1000.12,-93.9865 last=-1000.12,-93.9865 Δ 1000.12,93.9865) : no target window qt.pointer.dispatch: skipping QEventPoint(id=1 ts=0 pos=0,0 scn=1021.14,823.163 gbl=1021.14,823.163 Released ellipse=(1x1 ∡ 0) vel=0,0 press=-1021.14,-823.163 last=-1021.14,-823.163 Δ 1021.14,823.163) : no target window loaded default ops 2023-08-14 13:02:41.910 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:03.882 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:03.898 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:03.917 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:03.933 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:03.951 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:03.969 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:03.983 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:03.998 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:04.015 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:04.031 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:04.048 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:04.064 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:04.081 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:04.097 python[26613:247604] +[CATransaction synchronize] called within transaction 2023-08-14 13:03:04.131 python[26613:247604] +[CATransaction synchronize] called within transaction qt.pointer.dispatch: skipping QEventPoint(id=1 ts=0 pos=0,0 scn=490.485,167.882 gbl=490.485,167.882 Released ellipse=(1x1 ∡ 0) vel=0,0 press=-490.485,-167.882 last=-490.485,-167.882 Δ 490.485,167.882) : no target window

Other issues:

  1. Issue during installing

Step2 "conda env create --name suite2p" does not work, I use "conda create --name suite2p python=3.9", seems OK.

  1. Issue during testing:

    /Users/zhangl33/anaconda3/envs/suite2p/lib/python3.9/site-packages/setuptools/init.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. !!


    Requirements should be satisfied by a PEP 517 installer.
    If you are using pip, you can try `pip install --use-pep517`.
    ********************************************************************************

    !!

'pip install --use-pep517' not work, I use 'pip install pep517' seems OK.

Test terminates too, error message:

=============================================== test session starts =============================================== platform darwin -- Python 3.9.17, pytest-7.4.0, pluggy-1.2.0 PyQt6 6.5.2 -- Qt runtime 6.5.2 -- Qt compiled 6.5.2 rootdir: /Users/zhangl33/suite2p plugins: qt-4.2.0 collected 29 items

tests/test_io.py ........... [ 37%] tests/test_registration.py ... [ 48%] tests/regression/test_classification_pipeline.py . [ 51%] tests/regression/test_detection_pipeline.py .. [ 58%] tests/regression/test_extraction_pipeline.py ... [ 68%] tests/regression/test_full_pipeline.py ... [ 79%] tests/smoke/test_cli.py .... [ 93%] tests/smoke/test_file_loading.py . [ 96%] tests/smoke/test_run_s2p.py . [100%]

========================================= 29 passed in 578.29s (0:09:38) ========================================== Traceback (most recent call last): File "/Users/zhangl33/anaconda3/envs/suite2p/lib/python3.9/multiprocessing/resource_tracker.py", line 201, in main cache[rtype].remove(name) KeyError: '/loky-24924-ba28lg7f'

Provide environment info:

 active environment : suite2p
active env location : /Users/zhangl33/anaconda3/envs/suite2p
        shell level : 2
   user config file : /Users/zhangl33/.condarc

populated config files : /Users/zhangl33/.condarc conda version : 23.5.2 conda-build version : 3.25.0 python version : 3.11.3.final.0 virtual packages : __archspec=1=x86_64 osx=10.16=0 unix=0=0 base environment : /Users/zhangl33/anaconda3 (writable) conda av data dir : /Users/zhangl33/anaconda3/etc/conda conda av metadata url : None channel URLs : https://repo.anaconda.com/pkgs/main/osx-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/osx-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /Users/zhangl33/anaconda3/pkgs /Users/zhangl33/.conda/pkgs envs directories : /Users/zhangl33/anaconda3/envs /Users/zhangl33/.conda/envs platform : osx-64 user-agent : conda/23.5.2 requests/2.29.0 CPython/3.11.3 Darwin/22.5.0 OSX/10.16 UID:GID : 505:20 netrc file : None offline mode : False

chriski777 commented 9 months ago

Hi @gmbcrazy, sorry for the late response. Are you using an M2 MacBook? Does the GUI work for you at all?

chriski777 commented 8 months ago

Closing this issue due to inactivity