OSError: [Errno 13] Permission denied

13 views
Skip to first unread message

nicolas hazzi

unread,
Apr 3, 2025, 10:27:33 PMApr 3
to PartitionFinder
Hi everyone

I was running partition finder using this command on a WSL windows and I got the following error. Someone could help me to diagnose what is the problem?

best regards

Nicolas

(py27) nicolashazzi@hazzi:~/partitionfinder-2.1.1$ python PartitionFinder.py partition_finder.cfg
INFO     | 2025-04-01 09:03:24,995 | Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
INFO     | 2025-04-01 09:03:24,995 | NumExpr defaulting to 8 threads.
INFO     | 2025-04-01 09:03:25,737 | ------------- PartitionFinder 2.1.1 -----------------
INFO     | 2025-04-01 09:03:25,737 | You have Python version 2.7
INFO     | 2025-04-01 09:03:25,737 | Command-line arguments used: PartitionFinder.py partition_finder.cfg
INFO     | 2025-04-01 09:03:25,738 | ------------- Configuring Parameters -------------
INFO     | 2025-04-01 09:03:25,738 | Setting datatype to 'DNA'
INFO     | 2025-04-01 09:03:25,738 | Setting phylogeny program to 'phyml'
INFO     | 2025-04-01 09:03:25,739 | Program path is here /home/nicolashazzi/partitionfinder-2.1.1/programs
INFO     | 2025-04-01 09:03:25,739 | Setting working folder to: '/home/nicolashazzi/partitionfinder-2.1.1'
INFO     | 2025-04-01 09:03:25,739 | Loading configuration at './partition_finder.cfg'
INFO     | 2025-04-01 09:03:25,746 | Setting 'alignment' to 'conca.phy'
INFO     | 2025-04-01 09:03:25,747 | Setting 'branchlengths' to 'linked'
INFO     | 2025-04-01 09:03:25,748 | You set 'models' to: JC, JC+G, HKY
INFO     | 2025-04-01 09:03:25,776 | This analysis will use the following 3 models of molecular evolution
INFO     | 2025-04-01 09:03:25,776 | JC, JC+G, HKY
INFO     | 2025-04-01 09:03:25,777 | Setting 'model_selection' to 'aic'
INFO     | 2025-04-01 09:03:25,780 | Setting 'search' to 'all'
INFO     | 2025-04-01 09:03:25,781 | ------------------------ BEGINNING NEW RUN -------------------------------
INFO     | 2025-04-01 09:03:25,781 | Looking for alignment file './conca.phy'...
INFO     | 2025-04-01 09:03:25,781 | Using 16 cpus
INFO     | 2025-04-01 09:03:25,781 | Beginning Analysis
INFO     | 2025-04-01 09:03:25,814 | Reading alignment file './conca.phy'
INFO     | 2025-04-01 09:03:25,816 | Reading alignment file './analysis/start_tree/source.phy'
INFO     | 2025-04-01 09:03:25,822 | Starting tree will be estimated from the data.
INFO     | 2025-04-01 09:03:25,823 | Estimating Maximum Likelihood tree with RAxML fast experimental tree search for ./analysis/start_tree/filtered_source.phy
INFO     | 2025-04-01 09:03:25,824 | Using a separate GTR+G model for each data block
Traceback (most recent call last):
  File "PartitionFinder.py", line 25, in <module>
    sys.exit(main.main("PartitionFinder", "DNA"))
  File "/home/nicolashazzi/partitionfinder-2.1.1/partfinder/main.py", line 401, in main
    run_analysis(cfg, options)
  File "/home/nicolashazzi/partitionfinder-2.1.1/partfinder/main.py", line 334, in run_analysis
    anal = method(cfg, options.force_restart, options.processes)
  File "/home/nicolashazzi/partitionfinder-2.1.1/partfinder/analysis.py", line 66, in __init__
    self.make_tree(cfg.user_tree_topology_path)
  File "/home/nicolashazzi/partitionfinder-2.1.1/partfinder/analysis.py", line 192, in make_tree
    self.filtered_alignment_path, the_config.datatype, the_config.cmdline_extras, tree_scheme, self.threads)
  File "/home/nicolashazzi/partitionfinder-2.1.1/partfinder/raxml.py", line 124, in make_ml_topology
    run_raxml_pthreads(command, cpus)
  File "/home/nicolashazzi/partitionfinder-2.1.1/partfinder/raxml.py", line 77, in run_raxml_pthreads
    util.run_program(_raxml_pthreads_binary, command)
  File "/home/nicolashazzi/partitionfinder-2.1.1/partfinder/util.py", line 77, in run_program
    stderr=subprocess.PIPE)
  File "/home/nicolashazzi/miniconda3/envs/py27/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/home/nicolashazzi/miniconda3/envs/py27/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

Rob Lanfear

unread,
Apr 3, 2025, 10:29:23 PMApr 3
to PartitionFinder
Hi Nicolas,

Most likely this is due to you not having permission to access the RAxML executable on your machine. I'm afraid I don't know how to fix that. Still, it would be a good idea to move to IQ-TREE to do the partition merging.

Yours,

Rob

Reply all
Reply to author
Forward
0 new messages