1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] OSError: [Errno 8] Exec format error: './FastTree' [duplicate]

Discussão em 'Python' iniciado por Stack, Setembro 11, 2024.

  1. Stack

    Stack Membro Participativo

    I keep getting this error which by my google search means that there is a shabang missing but I'm not sure where I"m supposed to put it. Any help is appreciated!

    if tree_method == 'FastTree': # Build the tree using FastTree
    command = ["./FastTree", path_msa]
    os.makedirs(dir_tree + 'FastTree/', exist_ok=True)
    path_tree = dir_tree + 'FastTree/' + filename_without_extension + '.newick'
    with open(path_tree, "w") as outfile:
    subprocess.call(command, stdout=outfile)


    The error gets triggered on the last line of this code.

    PS.When I run the same code from shell on linux as > FastTree <directory> it works just fine.

    Continue reading...

Compartilhe esta Página