Installation

ChildProject is a python package distributed through pypi. It is meant to function in conjunction with multiple dependency packages, both python packages and system packages. This is why we advise users to install all of those in a self-contained conda environment, this will ensure separation between your system and the software used in projects using ChildProject. You can choose to install ChildProject on its own, but be aware that some features may fail or be unavailable if some system packages used by ChildProject are missing.

Installation in a conda environment

The following instructions will let you install the following packages inside a self-contained conda environment:

  • ChildProject (and dependencies), the package that is documented here, follow the main installation instructions to get it

  • DataLad (and dependencies), a python software for the management and delivery of scientific data. Although ChildProject may work without it, a number of datasets of daylong recordings of children require it. We advise to work with it alongside ChildProject. Follow the instructions in the section “Datalad installation” to get it as well.

This installation procedure requires a package able to handle conda environments. We recommend using micromamba but you can use any alternative. A very common alternative is anaconda (conda command). If you are not sure you have conda or micromamba installed, check the Check and or install Anaconda / Micromamba.

Warning

All our instructions use micromamba commands, if you are using a difference environment manager, such as anaconda , replace all instructions with the proper command (conda for example).

# download the conda environment
curl https://raw.githubusercontent.com/LAAC-LSCP/ChildProject/master/env_linux.yml -o env.yml

# create the conda environment
micromamba env create -f env.yml

# activate the environment (this should be done systematically to use our package)
micromamba activate childproject

Installation as system packages and separated python packages

Installing directly dependencies as system packages is not recommended as this won’t clearly separate dependencies between projects and requires you to have administrator privileges.

Instructions here will install the system dependencies directly into the operating system, the python requirements will be installed separately (as installing python packages directly in the system is highly discouraged as it could break system packages, still installing directly is possible by replacing pipx with pip and passing the –break-system-packages flag.) In windows, those intructions guide you into installing the python packages in anaconda prompt.

Make sure you have a recent version of python installed or install it (https://www.python.org/)

Installing packages on Debian

sudo apt-get install sox ffmpeg git git-annex pipx

Installing packages on Fedora/RHEL/CentOS/Rocky

# if the EPEL is not added on your system, you may need to add it with
# sudo dnf install epel-release -y
# sudo crb enable
# sudo dnf install rpmfusion-free-release -y

sudo dnf install sox ffmpeg git git-annex pipx

Installing packages on Arch

sudo pacman -S sox ffmpeg git git-annex pipx

Then python packages can be installed with pipx directly (or alternatives like uv)

pipx install datalad
pipx install ChildProject

Check the setup

You can now make sure the packages have been successfully installed: each –version command should output the version of the package. If you installed in an environment, check it is activated or activate it

$ child-project --version
datalad --version
ChildProject 0.4.6
datalad 0.19.6

Note

We recommend that you regularly keep DataLad and our package up to date. To upgrade this package, do pip install ChildProject --upgrade in virtual environments, or pipx upgrade ChildProject if installed directly.

You may also want to install the development version from GitHub in order to receive more recent updates before their release:

pip install git+https://github.com/LAAC-LSCP/ChildProject.git --force-reinstall

Since some updates may break compatibility with previous versions, we advise you to read the Change Log before upgrading.

DataLad can also be upgraded with pip install datalad --upgrade (see DataLad’s documentation for more details).

Check and or install Anaconda / Micromamba

To check if conda or micromamba is installed, run in a terminal or powershell the following commands : conda --version and micromamba --version. If either command prints a version number, they are installed and you should be able to use them.

On windows, you may have a ‘prompt’ version of anaconda install, search for ‘powershell anaconda prompt’ in your programs, launch it to use a terminal where cona is available.

If none is installed, refer to the installation instructions:

Micromamba

Micromamba is a standalone executable that can be installed directly in a terminal using one instruction. On Windows,

use preferably the Powershell option. Follow the instructions here. Installing micromamba may not require admin privileges.

Miniconda

Miniconda is installed as a program, which means you need admin rights. It is then accessible in the terminal on Linux/MacOS and by launching a program on Windows (miniconda prompt). Follow instructions here to install.

Troubleshooting

If you are having trouble installing ChildProject, please look for similar issues on our GithHub (in Issues or Discussions).

If this issue is related to a dependency of the package, we recommend that you ask the developers of the dependency directly as you may get more accurate advice.

If this issue is related to DataLad, please create an issue on DataLad’s GitHub.

Frequently Asked Questions

I don’t have anaconda and I can’t install it. What should I do?

You should try to install the package inside of a python environment instead, e.g.:

python3 -m venv ~/ChildProjectVenv
source ~/ChildProjectVenv/bin/activate
pip3 install ChildProject

You will still need git-annex in order to use DataLad. It can be installed with brew for Mac users (brew install git-annex) or through apt for Linux users (apt install git-annex). Most likely, you will lack permissions to do so if you failed to install anaconda. In this case, pleaser refer to your system administrator.

``brew install git-annex`` does not work!

Please try brew install --build-from-source git-annex.

If this does not work better for you, make sure that your version of Mac OS is 10.14 or later. We are aware of issues with Mac OS 10.13 (High Sierra) and earlier.

If your issues persistent, please report it to DataLad.