docker error when using singularity image to run ks4
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start with spikeinterface/sorters/runsorter.py and spikeinterface/sorters/container_tools.py, especially run_sorter_container and ContainerClient._get_docker_image. Reproduce the Kilosort4 call using singularity_image=True on the reported Fedora setup, then inspect the linked FileNotFoundError traceback. Done means the singularity path no longer produces the reported Docker or file-not-found failure.
Written by the indexing model from the issue text.
Description
Hello,
i have been running ks4 with singularity successfully in the past week, but today i got an error saying docker module not found:
ModuleNotFoundError Traceback (most recent call last)
File ~/Documents/git/analysis/analysis/preprocessing/test_ks4.py:122
119 os.chdir(preprocess_folder)
121 # sort spikes
--> 122 sorting = ss.run_sorter(
123 sorter_name='kilosort4',
124 recording=ap_mcd,
125 #folder=str(base_folder/"ks4_full"),
126 singularity_image=True,
127 remove_existing_folder=True,
128 #**ks4_params,
129 )
131 # curate
132 sorting = scur.remove_duplicated_spikes(
133 sorting,
134 censored_period_ms=0.3,
135 method="keep_first_iterative",
136 )
File ~/Documents/git/spikeinterface/src/spikeinterface/sorters/runsorter.py:210, in run_sorter(sorter_name, recording, folder, remove_existing_folder, delete_output_folder, verbose, raise_error, docker_image, singularity_image, delete_con
tainer_files, with_output, output_folder, **sorter_params)
204 if not has_spython():
205 raise RuntimeError(
206 "The python `spython` package must be installed to "
207 "run singularity. Install with `pip install spython`"
208 )
--> 210 return run_sorter_container(
211 container_image=container_image,
212 mode=mode,
213 **common_kwargs,
214 )
216 return run_sorter_local(**common_kwargs)
File ~/Documents/git/spikeinterface/src/spikeinterface/sorters/runsorter.py:525, in run_sorter_container(sorter_name, recording, mode, container_image, folder, remove_existing_folder, delete_output_folder, verbose, raise_error, with_output, delete_container_files, extra_requirements, installation_mode, spikeinterface_version, spikeinterface_folder_source, output_folder, **sorter_params)
522 py_user_base_folder.mkdir(parents=True, exist_ok=True)
523 py_user_base_unix = path_to_unix(py_user_base_folder)
--> 525 container_client = ContainerClient(mode, container_image, volumes, py_user_base_unix, extra_kwargs)
526 if verbose:
527 print("Starting container")
File ~/Documents/git/spikeinterface/src/spikeinterface/sorters/container_tools.py:102, in ContainerClient.__init__(self, mode, container_image, volumes, py_user_base, extra_kwargs)
99 singularity_image = sif_file
100 else:
--> 102 docker_image = self._get_docker_image(container_image)
103 if docker_image and len(docker_image.tags) > 0:
104 tag = docker_image.tags[0]
File ~/Documents/git/spikeinterface/src/spikeinterface/sorters/container_tools.py:127, in ContainerClient._get_docker_image(container_image)
125 @staticmethod
126 def _get_docker_image(container_image):
--> 127 import docker
129 docker_client = docker.from_env(timeout=300)
130 try:
ModuleNotFoundError: No module named 'docker'
> /home/amz/Documents/git/spikeinterface/src/spikeinterface/sorters/container_tools.py(127)_get_docker_image()
125 @staticmethod
126 def _get_docker_image(container_image):
--> 127 import docker
128
129 docker_client = docker.from_env(timeout=300)
so then i installed docker, but got another error:
FileNotFoundError Traceback.txt
installed spikeinterface main on linux fedora 39.
Could someone please help? Thanks!
- Dominant language
- Python
- Stars
- 847
- Forks
- 280
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 29
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SpikeInterface/spikeinterface
-
testing
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
SpikeInterface/spikeinterface#4756 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
SpikeInterface/spikeinterface#4745 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SpikeInterface/spikeinterface#4510 · 2 comments ·
-
performance
Difficulty 4/5 3-5 days Newbie friendliness 55/100
SpikeInterface/spikeinterface#4787 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
SpikeInterface/spikeinterface#4781 · 1 comment ·
All issues in SpikeInterface/spikeinterface
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
zostera/django-bootstrap4#894 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
use-agent-os/agent-os#3276 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
zephyrproject-rtos/zephyr#119726 ·
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
zilliztech/memsearch#759 ·