"No such file or directory", but the file exists

27,265

varscore_pipeline is a Python script. It begins with a shebang line that points to the interpreter that must execute the script. The path to the interpreter is usr/bin/python2.6, and this file doesn't exist.

First, that line is wrong. The shebang line must have an absolute path. Change #!usr/bin/python2.6 to #!/usr/bin/python2.6.

Depending on your version of Ubuntu, you may or may not have /usr/bin/python2.6. If you only have a later version such as 2.7, change the shebang line to #!/usr/bin/python2. It is highly unlikely that the program would work with 2.6 but not 2.7. Python 2.x versions are upward compatible. (But don't change to /usr/bin/python3, there are incompatibilities between Python 2 and Python 3.)

See /bin/sh: ./check-dependencies.pl: not found — but check-dependencies.pl exists! for more explanations.

Share:
27,265

Related videos on Youtube

user126650
Author by

user126650

Updated on September 18, 2022

Comments

  • user126650
    user126650 over 1 year

    I copied some files to Ubuntu (running on VirtualBox). Trying to open the said copied files and get an error. I'm not entirely sure how the file directory system works, but I used cp command to copy one of the files. Is (and other files that were just copied into the folder manually) shows up in the right folder with ls command. But when I try to execute the file, I get the following error:

    qiime@qiime-VirtualBox:~$ usr/bin/varscore_pipeline -bo Desktop/Shared_Folder/VARSCORE/C_albicans.fasta Desktop/Shared_Folder/VARSCORE/tmp/poo.csv
    bash: usr/bin/varscore_pipeline: usr/bin/python2.6: bad interpreter: No such file or directory
    

    When I run the ls /usr/bin/ command I can see the file varscore_pipeline in there, so I'm not sure what is wrong.