This is a thread to discuss installation (problems) of the cedalion toolbox of the IBS Lab, that is available on github here: https://github.com/ibs-lab/cedalion
Cedalion is a Python package. If you are used to working with Python, you can ignore this section below, as these first steps are independent of the toolbox.
Install a Python distribution and Integrated Development Environment (IDE)
1.Install a python distribution and package manager, for instance Anaconda
2.Install the IDE of your choice to develop code and run the toolbox, for instance VS Code. Of course, you can also use others such as Spyder, which comes with your Anaconda installation.
3.Setup Anaconda to work with your IDE, for instance Anaconda + VS Code
Everything that is specific to the installation of Cedalion can be found on our documentation page: https://doc.ibs.tu-berlin.de/cedalion/doc/dev
1.Clone the Cedalion repository from github to your local disk.
The main branch is the release branch.
2.In your IDE, switch to the Cedalion folder as your local working folder or “add to path”.
In its Python terminal create a conda environment with the necessary dependencies by running: $ conda env create -n cedalion -f environment_dev.yml
This installs all relevant dependencies and creates an environment in which you can run the toolbox. It also includes Jupyter Notebook to run the example notebooks.
3.Afterwards activate the environment and add an editable install of Cedalion to it:
$ conda activate cedalion $ pip install -e .
If creating the environment is slow:
To create the environment conda needs to find a set of packages that fulfills all requirements. If conda needs too much time to find a solution, there are two ways to speed it up.
1.Install libmamba-solver and configure conda to use it. (recommended )
If you have a recent conda version (23.10 or later), libmamba is already preconfigured. Otherwise update:
$ conda update -n base conda
Create your environment with the libmamba solver:
$ conda env create -n cedalion -f environment_dev.yml --solver libmamba
2.Alternative: Install mamba, a drop-in replacement for conda.
- Additional guidance can be found in the environments section of our documentation
TO TEST YOUR INSTALLATION
You can run the "test_installation" Example Jupyter Notebook on your Computer. You can find it in cedalion/examples/test_installation.ipynb
I've followed the steps listed in the post exactly as they're written out but I'm still having issues with installing the new environment in my VS Code IDE. I get the following output after running the line 'conda -env create -n cedalion ...'
"PS C:\Users\nross3\Documents\fNIRS2024_Course\Cedalion\cedalion> conda env create -n cedalion -f environment_dev.yml --solver libmamba
Channels:
- conda-forge
- defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: done
Downloading and Extracting Packages:
InvalidArchiveError("Error with archive C:\\Users\\nross3\\AppData\\Local\\anaconda3\\pkgs\\bidsschematools-0.11.3-pyhd8ed1ab_0.conda. You probably need to dele)"
I went to delete the folder mentioned in the last line but the folder doesn't exist. I've tried cleaning my packages cache using 'conda clean --all' but that did not work. My Anaconda is up to date. Does anyone have any additional troubleshooting steps I could perform to fix this issue?
Hi NIck,
thank you for giving cedalion a try. We haven't encountered that error before. Next to 'conda clean -a' I found three more hints what one could look for:
1. This error message can occur on Win10 because of too long path lengths. The Stack Overflow post recommends a registry setting which increases the maximum path length. That might be worth a try. Alternatively, one could try to install anaconda in a more shallow folder. E.g. we test windows installations via a Github Action on Microsoft Windows Server 2022. There the environment installs under 'C:\Users\runneradmin\micromamba\envs\cedalion' without problems.
2. Someone reported the InvalidArchiveError because of wrong folder permissions.
3. The error also seems to be thrown when one runs out of disk space / hits a quota.
I hope one of these pointers helps you to troubleshoot the problem.
Kind regards,
Eike
Hi,
Thanks for the documentation and install guide.
I tried installing cedalion on my MacBook (M1 air, macOS Ventura). I have miniconda installed and I used mamba to install the dependencies. However, once I activate the environment, I am unable to install the editable install of cedallion using the pip command. It results in an error (attached txt file) saying - "Getting requirements to build editable ... error" and raises the following:
"raise LookupError(
LookupError: setuptools-scm was unable to detect version for /Users/lav/Documents/Python/cedalion-main."
Could you kindly recommend any probable issues that could be leading to this error and any troubleshooting steps I could try? Thanks a lot.
Regards,
Ankit
Hi Ankit,
Thanks for sharing the error message. The issue seems to be with setuptools-scm not being able to detect the version information, which can occur if the Git metadata is missing. As noted in the error output:
Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
To resolve this, ensure that you’ve cloned the Cedalion repository directly using Git, as the .git directory is essential for setuptools-scm to detect version information. If you downloaded a ZIP file from GitHub, please try cloning it instead. Afterward, you should be able to run the editable install command successfully.




