TACC-Cloud / agave-cli

The Tapis CLI
Other
4 stars 8 forks source link

Not finding python3 #97

Open JoshuaUrrutia opened 5 years ago

JoshuaUrrutia commented 5 years ago

Describe the bug Not able to use the cli w/ python3, even though python3 is listed as requirement

auth-session-init -t iplantc.org -u urrutia -N my_api_client 
/usr/bin/env: 'python': No such file or directory

To Reproduce

docker run --rm -it ubuntu:xenial
apt-get update 
apt-get upgrade -y 
apt-get install -y python3 curl jq python3-pip git 
git clone https://github.com/TACC-Cloud/agave-cli
echo "PATH=$PATH:$PWD:agave-cli/bin" >> ~/.bashrc
source ~/.bashrc
pip3 install agavepy
export AGAVE_JSON_PARSER=jq
auth-session-init -t iplantc.org -u urrutia -N my_api_client 

Tried:

echo "alias python=python3" >> ~/.bashrc
export python=python3

but those didn't fix the issue

JoshuaUrrutia commented 5 years ago

ln -s /usr/bin/python3 /usr/bin/python

Fixes this