Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024 M3 Mac Install Issue #1153

Open
smbaca opened this issue Nov 21, 2024 · 0 comments
Open

2024 M3 Mac Install Issue #1153

smbaca opened this issue Nov 21, 2024 · 0 comments

Comments

@smbaca
Copy link

smbaca commented Nov 21, 2024

Describe the issue:

Followed the instructions for installing and the GUI comes up but in the terminal I get the following:

(suite2p) smbaca@Serapios-MacBook-Air ~ % python -m suite2p

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): File "/opt/anaconda3/envs/suite2p/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/opt/anaconda3/envs/suite2p/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/opt/anaconda3/envs/suite2p/lib/python3.9/runpy.py", line 111, in _get_module_details
import(pkg_name)
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/init.py", line 6, in
from .run_s2p import run_s2p, run_plane, pipeline
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/run_s2p.py", line 15, in
from . import extraction, io, registration, detection, classification, default_ops
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/extraction/init.py", line 5, in
from .extract import create_masks_and_extract, enhanced_mean_image, extract_traces_from_masks, extraction_wrapper
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/extraction/extract.py", line 11, in
from .masks import create_masks
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/extraction/masks.py", line 9, in
from ..detection.sparsedetect import extendROI
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/detection/init.py", line 4, in
from .detect import detect, detection_wrapper, bin_movie
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/detection/detect.py", line 11, in
from .denoise import pca_denoise
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/detection/denoise.py", line 8, in
from ..registration.nonrigid import make_blocks, spatial_taper
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/registration/init.py", line 4, in
from .register import (registration_wrapper, save_registration_outputs_to_ops,
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/registration/register.py", line 14, in
from . import utils, rigid, nonrigid
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/registration/utils.py", line 13, in
import torch
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/torch/init.py", line 1477, in
from .functional import * # noqa: F403
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/torch/functional.py", line 9, in
import torch.nn.functional as F
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/torch/nn/init.py", line 1, in
from .modules import * # noqa: F403
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/torch/nn/modules/init.py", line 35, in
from .transformer import TransformerEncoder, TransformerDecoder,
File "/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/torch/nn/modules/transformer.py", line 20, in
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
/opt/anaconda3/envs/suite2p/lib/python3.9/site-packages/suite2p/gui/gui2p.py:8: PythonQtWarning: Selected binding 'pyqt5' could not be found; falling back to 'pyqt6'
from qtpy import QtGui, QtCore
qt.qpa.drawing: Layer-backing is always enabled. QT_MAC_WANTS_LAYER/_q_mac_wantsLayer has no effect.
2024-11-21 13:40:35.539 python[26102:1032715] +[IMKClient subclass]: chose IMKClient_Modern
2024-11-21 13:40:35.539 python[26102:1032715] +[IMKInputSession subclass]: chose IMKInputSession_Modern

Provide environment info:

(suite2p) smbaca@Serapios-MacBook-Air ~ % conda info

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

populated config files : /Users/smbaca/.condarc
conda version : 24.9.2
conda-build version : 24.5.1
python version : 3.12.3.final.0
solver : libmamba (default)
virtual packages : __archspec=1=m1
__conda=24.9.2=0
__osx=15.1.1=0
__unix=0=0
base environment : /opt/anaconda3 (writable)
conda av data dir : /opt/anaconda3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/osx-64
https://conda.anaconda.org/conda-forge/noarch
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 : /opt/anaconda3/pkgs
/Users/smbaca/.conda/pkgs
envs directories : /opt/anaconda3/envs
/Users/smbaca/.conda/envs
platform : osx-64
user-agent : conda/24.9.2 requests/2.32.2 CPython/3.12.3 Darwin/24.1.0 OSX/15.1.1 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8 aau/0.4.4 c/. s/. e/.
UID:GID : 502:20
netrc file : None
offline mode : False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant