Page tree
Skip to end of metadata
Go to start of metadata

Overview

During the course, it became clear that some students had multiple different copies of launcher_creator.py in their $PATH. This was possibly related to taking a different course which may have included copying the launcher_creator.py script to your $HOME directory. It is unclear if that course may have included additional information about how to execute the launcher_creator.py script. Two different methods are listed here for executing the launcher_creator.py script as described for this class. Refer to any other courses you have taken for how to utilize other versions of the script.

Determining if there is a problem

Use the which command to determine if you have multiple launcher_creator.py scripts
which -a launcher_creator.py

The expected outcome is a single line reading: /corral-repl/utexas/BioITeam/bin/launcher_creator.py 
If you instead see multiple lines, recall that when you use 'launcher_creator.py' by itself without providing additional information, only the top line will be used, and it is recommended you follow one of the following methods for generating usable .slurm files if you get errors when trying to use the sbatch command to launch the files.


Method 1: renaming non-functioning script:

This method has the benefit of being able to easily use the non-functioning script if you need it for working with materials from other courses.

Give the non-functioning script a new name
# Using the output from the which command above
mv <full path of first line of above command> <same path but change ending to launcher_creator.alt.py>

In future, if you wish to use this version of the script using "launcer_creator.alt.py" will access this version while "launcher_creator.py" by itself will use the BioITeam version expected for the GVA course materials.

Method 2: using the full path:

This method had the benefit of using the other version normally when you call "launcher_creator.py".

Using full path to call the correct version. Anytime you see "launcher_creator.py" in other tutorials substitute the following instead.
/corral-repl/utexas/BioITeam/bin/launcher_creator.py 

This has the benefit of using the other form by default but requires you to use the full path which may be difficult to remember. Always remember the full path is identifiable with the 'which -a launcher_creator.py' command.


Return to GVa2020 home page

  • No labels