templateflow / python-client

A python client to query TemplateFlow via pyBIDS
https://templateflow.org/python-client/
Apache License 2.0
8 stars 12 forks source link

Weird Behavior Installing Templateflow #13

Closed dlevitas closed 5 years ago

dlevitas commented 5 years ago

This is a cross-post from https://neurostars.org/t/weird-behavior-installing-templateflow/4458

My issue is that when I use the command pip install templateflow --user I'm expecting there to be a directory called templateflow in $HOME/.cache; however, this isn't the case. The output from my command is as follows:

Collecting templateflow
Requirement already satisfied: tqdm in ./.local/lib/python3.6/site-packages (from templateflow) (4.31.1)
Requirement already satisfied: pybids<0.8.0a0,>=0.7.0 in ./.local/lib/python3.6/site-packages (from templateflow) (0.7.1)
Requirement already satisfied: requests in ./.local/lib/python3.6/site-packages (from templateflow) (2.21.0)
Requirement already satisfied: num2words in ./.local/lib/python3.6/site-packages (from pybids<0.8.0a0,>=0.7.0->templateflow) (0.5.10)
Requirement already satisfied: nibabel>=2.1 in ./.local/lib/python3.6/site-packages (from pybids<0.8.0a0,>=0.7.0->templateflow) (2.4.0)
Requirement already satisfied: numpy in ./.local/lib/python3.6/site-packages (from pybids<0.8.0a0,>=0.7.0->templateflow) (1.16.4)
Requirement already satisfied: pandas>=0.23.0 in ./.local/lib/python3.6/site-packages (from pybids<0.8.0a0,>=0.7.0->templateflow) (0.24.2)
Requirement already satisfied: grabbit==0.2.6 in ./.local/lib/python3.6/site-packages (from pybids<0.8.0a0,>=0.7.0->templateflow) (0.2.6)
Requirement already satisfied: scipy in /gpfs/hps/soft/rhel7/python/3.6.8/lib/python3.6/site-packages (from pybids<0.8.0a0,>=0.7.0->templateflow) (1.2.1)
Requirement already satisfied: bids-validator in ./.local/lib/python3.6/site-packages (from pybids<0.8.0a0,>=0.7.0->templateflow) (1.2.4)
Requirement already satisfied: patsy in ./.local/lib/python3.6/site-packages (from pybids<0.8.0a0,>=0.7.0->templateflow) (0.5.1)
Requirement already satisfied: six in /gpfs/hps/soft/rhel7/python/3.6.8/lib/python3.6/site-packages (from pybids<0.8.0a0,>=0.7.0->templateflow) (1.11.0)
Requirement already satisfied: idna<2.9,>=2.5 in ./.local/lib/python3.6/site-packages (from requests->templateflow) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.6/site-packages (from requests->templateflow) (2019.3.9)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.local/lib/python3.6/site-packages (from requests->templateflow) (3.0.4)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in ./.local/lib/python3.6/site-packages (from requests->templateflow) (1.24.3)
Requirement already satisfied: docopt>=0.6.2 in ./.local/lib/python3.6/site-packages (from num2words->pybids<0.8.0a0,>=0.7.0->templateflow) (0.6.2)
Requirement already satisfied: python-dateutil>=2.5.0 in /gpfs/hps/soft/rhel7/python/3.6.8/lib/python3.6/site-packages (from pandas>=0.23.0->pybids<0.8.0a0,>=0.7.0->templateflow) (2.6.0)
Requirement already satisfied: pytz>=2011k in /gpfs/hps/soft/rhel7/python/3.6.8/lib/python3.6/site-packages (from pandas>=0.23.0->pybids<0.8.0a0,>=0.7.0->templateflow) (2018.4)
Installing collected packages: templateflow
Successfully installed templateflow-0.3.0

This isn't a terribly big issue for me, because I can just set things up on my end with:

    if [ ! -d $HOME/templateflow ]; then
        mkdir $HOME/templateflow
        pip install templateflow --user
        unzip $HOME/.local/lib/python3.6/site-packages/templateflow/conf/templateflow-skel.zip -d $HOME/templateflow
    fi

Let me know if I need to provide any additional information.

Dan

oesteban commented 5 years ago

Hi @dlevitas, the directory is created the first time you import templateflow. However, I agree that installation is still very imperfect in this regard (see #11).