Hello Andreas,

On 06/27/2013 02:27 PM, Andreas Kuntzagk wrote:
> Hi,
>
> I wanted to test easybuild today. Unfortunately I cannot get it running.
> My systems are Ubuntu 10.04 (old, I know) and I installed using
> easy_install.
>
> I edited $HOME/.easybuild/config.cfg according to
> https://github.com/hpcugent/easybuild/wiki/Configuration
>
> """
> build_path="/home/kuntzagk/easybuild/build"
> install_path="/home/kuntzagk/easybuild"
> source_path="/home/kuntzagk/easybuild/source"
> repository = FileRepository("/home/kuntzagk/easybuild/repo")
> log_format = ("/home/kuntzagk/easybuild/log", "easybuild-%(name)s.log")
> log_dir ="/home/kuntzagk/easybuild/log"
> """
>
> Is this a problem with my Ubuntu or is it something with my config?
>
> regards, Andreas
>
This seems to be a problem with your config.

Currently we treat the config file as plain python code, and this
config's default location is shown in the help
as    -C CONFIG, --config=CONFIG
                        Path to EasyBuild config file (def
/home/jens/.local/lib/python2.7/site-packages/easybuild_framework-1.5.0-py2.7.egg/easybuild/easybuild_config.py)

We want to get away from this format and use the configfile format as
used by pythons configparser. This support has already been added
to easybuild, and it show's up in the help as
    --configfiles=CONFIGFILES
                        Parse (additional) configfiles (type
comma-separated list; def /home/jens/.easybuild/config.cfg)


The configuration as shown on the wiki still uses the old format, whilst
you have put this in the file where easybuild expects the new config
format.
I have tried to clarify this on the wiki.

To fix your probem I think it is enought to rename your config from
$HOME/.easybuild/config.cfg to $HOME/.easybuild/config.py.

Or you could switch to the new (undocumented, except for the messages in
eb -H) config format with config sections:
In this case your config file should look something like (untested)
"""
[config]
buildpath= /home/kuntzagk/easybuild/build
installpath= /home/kuntzagk/easybuild
sourcepath= /home/kuntzagk/easybuild/source
repository = FileRepository
repositorypath = /home/kuntzagk/easybuild/repo
logfile_format = /home/kuntzagk/easybuild/log,easybuild-%%(name)s.log
"""

TL;DR:
rename config.cfg to config.py

Regards
Jens Timmerman

Reply via email to