The med-utils package which provides the ilamb-tree-generator command line tool is currently installed using pip in our access-med environment:
- pip:
- railroad-diagrams ### Unlisted dependency of pip and pyparsing
- git+https://github.com/ACCESS-NRI/MED-utils
The problem is that during install/deploy a shebang is created:
#!/jobfs/109596945.gadi-pbs/squashfs-root/opt/conda/access-med-0.7/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from access_med_utils.ilamb import tree_generator
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(tree_generator())
This leads to the following error:
bash: /opt/conda/access-med-0.7/bin/ilamb-tree-generator: /jobfs/109596945.gadi-pbs/squashfs-root/opt/conda/access-med-0.7/bin/python: bad interpreter: No such file or directory
@rhaegar325 I think that's the cause of the issue but I could be wrong.
@dsroberts do you have a suggestion on how to fix this?
The
med-utilspackage which provides theilamb-tree-generatorcommand line tool is currently installed using pip in our access-med environment:The problem is that during install/deploy a shebang is created:
This leads to the following error:
@rhaegar325 I think that's the cause of the issue but I could be wrong.
@dsroberts do you have a suggestion on how to fix this?