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>
sys.exit(execute())
File "/home/alberto/.virtualenvs/PouBlog/local/lib/python2.7/site-packages/djangocms_installer/main.py", line 53, in execute
install.cleanup_directory(config_data)
File "/home/alberto/.virtualenvs/PouBlog/local/lib/python2.7/site-packages/djangocms_installer/install/__init__.py", line 92, in cleanup_directory
if strtobool(choice) or config_data.noinput:
File "/usr/lib/python2.7/distutils/util.py", line 325, in strtobool
raise ValueError, "invalid truth value %r" % (val,)
ValueError: invalid truth value ''
2
Answers
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.
The invalid truth value ” occurred due to no selection passed in the last question
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:
Reinstall PIL and CMS:
In case above doesnt work to fix PIL then try the following to correctly build PIL library:
Get the Imaging/PIL library:
Extract Imaging tar and Modify Imaging-1.1.6/_imagingft.c :
_imagingft.c:68:31: fatal error: freetype/fterrors.h: No such file or directory
#include
Change the above line to:
#include
Retar and install
Now follow the djangocms steps again.
Hope it helps.