skip to Main Content

The problem arises when I try to start a project Django CMS with the command:

djangocms -p . mysite

This is the error:

Database configuration (in URL format) [default sqlite://localhost/project.db]: 
django CMS version (choices: 2.4, 3.0, 3.1, stable, develop) [default stable]: 
Django version (choices: 1.4, 1.5, 1.6, 1.7, 1.8, stable) [default stable]: 
Activate Django I18N / L10N setting (choices: yes, no) [default yes]: 
Install and configure reversion support (choices: yes, no) [default yes]: 
Languages to enable. Option can be provided multiple times, or as a comma separated list. Only language codes supported by Django can be used here: en
Optional default time zone [default Europe/Madrid]: 
Activate Django timezone support (choices: yes, no) [default yes]: 
Activate CMS permission management (choices: yes, no) [default yes]: 
Use Twitter Bootstrap Theme (choices: yes, no) [default no]: 
Use custom template set [default no]: 
Load a starting page with examples after installation (english language only). Choose "no" if you use a custom template set. (choices: yes, no) [default no]: 
Creating the project
Please wait while I install dependencies
Dependencies installed
Creating the projectFailure occurred. Do you want to cleanup by removing /home/alberto/Documentos/PouBlog? [Y/N] 
Traceback (most recent call last):
  File "/home/alberto/.virtualenvs/PouBlog/bin/djangocms", line 11, in <module>
  File "/home/alberto/.virtualenvs/PouBlog/local/lib/python2.7/site-packages/djangocms_installer/", line 53, in execute
  File "/home/alberto/.virtualenvs/PouBlog/local/lib/python2.7/site-packages/djangocms_installer/install/", line 92, in cleanup_directory
    if strtobool(choice) or config_data.noinput:
  File "/usr/lib/python2.7/distutils/", line 325, in strtobool
    raise ValueError, "invalid truth value %r" % (val,)
ValueError: invalid truth value ''



  1. Chosen as BEST ANSWER

    In my case the problem was that when CMS installer asked me the languages I answer with the languages separated by ', '. When I try again and put the languages separated only by ',' it worked properly.

  2. The invalid truth value ” occurred due to no selection passed in the last question

    Creating the projectFailure occurred. Do you want to cleanup by removing /home/alberto/Documentos/PouBlog? [Y/N] 

    In my case the issue was with PIL library which was not build using JPEG support, which can be fixed using following steps:

    Install related libraries:

    sudo apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev
    sudo apt-get install libjpeg8-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
    sudo apt-get install libqd-dev
    sudo apt-get install libmysqlclient-dev

    Reinstall PIL and CMS:

    pip install -U --force Pillow
    pip install --upgrade --force-reinstall --no-deps djangocms-installer

    In case above doesnt work to fix PIL then try the following to correctly build PIL library:

    $ sudo ln -s /usr/lib/`uname -i`-linux-gnu/ /usr/lib/
    $ sudo ln -s /usr/lib/`uname -i`-linux-gnu/ /usr/lib/
    $ sudo ln -s /usr/lib/`uname -i`-linux-gnu/ /usr/lib/

    Get the Imaging/PIL library:


    Extract Imaging tar and Modify Imaging-1.1.6/_imagingft.c :

    tar -zxvf Imaging-1.1.6.tar.gz; cd Imaging-1.1.6; 
    python build 
    Error observed: 
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -IlibImaging -I/usr/include -I/usr/local/include -I/usr/include/python2.7 -c _imagingft.c -o build/temp.linux-x86_64-2.7/_imagingft.o

    _imagingft.c:68:31: fatal error: freetype/fterrors.h: No such file or directory
    Change the above line to:

    Retar and install

    tar -zcvf Imaging-1.1.6.tar.gz Imaging-1.1.6
    pip install -U --force Imaging-1.1.6.tar.gz 

    Now follow the djangocms steps again.

    Hope it helps.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top