I want to install c-pac on an apple studio (M1 Max chip, MacOS Monterey) and I’ve encountered a wondering fault presented below. I appreciate it if anyone can help me. And I have another question, is it generally possible to install c-pac on Mac M1 Max chip?
Traceback (most recent call last):
File “/Users/majid/opt/anaconda3/bin/cpac”, line 8, in
sys.exit(run())
File “/Users/majid/opt/anaconda3/lib/python3.9/site-packages/cpac/main.py”, line 446, in run
main(parsed)
File “/Users/majid/opt/anaconda3/lib/python3.9/site-packages/cpac/main.py”, line 339, in main
Backends(**arg_vars).run(
File “/Users/majid/opt/anaconda3/lib/python3.9/site-packages/cpac/backends/init.py”, line 24, in Backends
{
File “/Users/majid/opt/anaconda3/lib/python3.9/site-packages/cpac/backends/docker.py”, line 35, in init
self._collect_config(**kwargs)
File “/Users/majid/opt/anaconda3/lib/python3.9/site-packages/cpac/backends/docker.py”, line 78, in _collect_config
kwargs = self.collect_config_bindings(self.config, **kwargs)
File “/Users/majid/opt/anaconda3/lib/python3.9/site-packages/cpac/backends/platform.py”, line 243, in collect_config_bindings
os.makedirs(inner_binding, exist_ok=True)
File “/Users/majid/opt/anaconda3/lib/python3.9/os.py”, line 251, in makedirs
mkdir(name,mode)
OSError: [Errno 30] Read-only file system: ‘/output’
I used docker image to process a subject that takes about 2 hours on our other intel chip computer, the process was started but has been run very slow, and after more than 12 hours it stopped.
Generally, I think the docker image is not optimized for the apple chip.
That’s good, but that is not what I asked. Docker by default will only use a limited amount of available computer resources, so you would need to change the amount of memory and resources Docker can use.
No it did not crush but freeze in below step for three days.
I assigned 6 cores and 20 GB RAM to docker for processing a subject and now it occupies about 1 GB RAM and 17% of CPUs of our system yet.
If you’re still interested in running cpac on an M1 chip, the latest release of each of cpac (1.8.6) and C-PAC (fcpindi/c-pac:release-v1.8.6) have improvements that should help (specifically here, addressing the Docker-on-MacOS issue in cpac and upgrading Ubuntu and AFNI in C-PAC