OrthoFinder icon indicating copy to clipboard operation
OrthoFinder copied to clipboard

orthofinder installation error on mac

Open SAMANDOLL opened this issue 2 years ago • 2 comments

i have installed orthofinder by conda orthofinder -hOrthoFinder version 2.4.0 Copyright (C) 2014 David Emms

SIMPLE USAGE: Run full OrthoFinder analysis on FASTA format proteomes in

orthofinder [options] -f

Add new species in to previous run in and run new analysis orthofinder [options] -f -b

OPTIONS: -t Number of parallel sequence search threads [Default = 8] -a Number of parallel analysis threads [Default = 1] -M Method for gene tree inference. Options 'dendroblast' & 'msa' [Default = dendroblast] -S Sequence search program [Default = diamond] Options: blast, diamond, blast_gz, mmseqs -A MSA program, requires '-M msa' [Default = mafft] Options: mafft, muscle -T Tree inference method, requires '-M msa' [Default = fasttree] Options: fasttree, raxml, raxml-ng, iqtree -s User-specified rooted species tree -I MCL inflation parameter [Default = 1.5] -x Info for outputting results in OrthoXML format -p

Write the temporary pickle files to -1 Only perform one-way sequence search -X Don't add species names to sequence IDs -n Name to append to the results directory -o Non-default results directory -h Print this help text

WORKFLOW STOPPING OPTIONS: -op Stop after preparing input files for BLAST -og Stop after inferring orthogroups -os Stop after writing sequence files for orthogroups (requires '-M msa') -oa Stop after inferring alignments for orthogroups (requires '-M msa') -ot Stop after inferring gene trees for orthogroups

WORKFLOW RESTART COMMANDS: -b

Start OrthoFinder from pre-computed BLAST results in -fg Start OrthoFinder from pre-computed orthogroups in -ft Start OrthoFinder from pre-computed gene trees in

LICENSE: Distributed under the GNU General Public License (GPLv3). See License.md

CITATION: When publishing work that uses OrthoFinder please cite: Emms D.M. & Kelly S. (2019), Genome Biology 20:238

If you use the species tree in your work then please also cite: Emms D.M. & Kelly S. (2017), MBE 34(12): 3267-3278 Emms D.M. & Kelly S. (2018), bioRxiv https://doi.org/10.1101/267914 Traceback (most recent call last): File "/Users/padana/opt/anaconda3/bin/scripts_of/main.py", line 1678, in main ptm_initialised = parallel_task_manager.ParallelTaskManager_singleton() File "/Users/padana/opt/anaconda3/bin/scripts_of/parallel_task_manager.py", line 321, in init ParallelTaskManager_singleton.instance = ParallelTaskManager_singleton.__Singleton() File "/Users/padana/opt/anaconda3/bin/scripts_of/parallel_task_manager.py", line 316, in init self.manager_process.start() File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 134, in _check_not_importing_main raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 116, in spawn_main exitcode = _main(fd, parent_sentinel) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 125, in _main prepare(preparation_data) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 236, in prepare _fixup_main_from_path(data['init_main_from_path']) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 287, in _fixup_main_from_path main_content = runpy.run_path(main_path, File "/Users/padana/opt/anaconda3/lib/python3.9/runpy.py", line 288, in run_path return _run_module_code(code, init_globals, run_name, File "/Users/padana/opt/anaconda3/lib/python3.9/runpy.py", line 97, in _run_module_code _run_code(code, mod_globals, init_globals, File "/Users/padana/opt/anaconda3/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Users/padana/opt/anaconda3/bin/orthofinder", line 7, in main(args) File "/Users/padana/opt/anaconda3/bin/scripts_of/main.py", line 1771, in main ptm = parallel_task_manager.ParallelTaskManager_singleton() File "/Users/padana/opt/anaconda3/bin/scripts_of/parallel_task_manager.py", line 321, in init ParallelTaskManager_singleton.instance = ParallelTaskManager_singleton.__Singleton() File "/Users/padana/opt/anaconda3/bin/scripts_of/parallel_task_manager.py", line 316, in init self.manager_process.start() File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 42, in _launch prep_data = spawn.get_preparation_data(process_obj._name) File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 154, in get_preparation_data _check_not_importing_main() File "/Users/padana/opt/anaconda3/lib/python3.9/multiprocessing/spawn.py", line 134, in _check_not_importing_main raise RuntimeError(''' RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

Anybody can guide me, what is the problem??

SAMANDOLL avatar Feb 09 '23 13:02 SAMANDOLL

I am having the same issue. macOS Big Sur v11.3.1 and python 3.9.12. Orthofinder installation was through Bioconda.

Update: I was able to get around the problem using the docker. Below are the commands brew install --cask docker docker pull davidemms/orthofinder:2.5.4 docker run -it --rm davidemms/orthofinder:2.5.4 orthofinder -h docker run --ulimit nofile=1000000:1000000 -it --rm -v /full/path/to/fastas:/input:Z davidemms/orthofinder:2.5.4 orthofinder -f /input

sbennett-cyber avatar Feb 28 '23 01:02 sbennett-cyber

Same problem here! If anyone has an idea how to solve the issue?

franzilie avatar Mar 08 '23 12:03 franzilie