Forums

how to install django-cms?

please help to solve the problem.

I am trying to install django-cms. execute:

pip2.7 install --user djangocms-installer

Then execute:

13:49 ~/blogik5 $ djangocms -p . blogik5

the result obtained in the console the following error message:
Database configuration (in URL format) [default sqlite://localhost/project.db]: 
django CMS version (choices: 2.4, 3.0, stable, develop) [default stable]: 
Django version (choices: 1.4, 1.5, 1.6, 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: ru, en
Optional default time zone [default America/Chicago]: europe/moscow
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. Choose "no" if you use a custom template set. (choices: yes, no) [default no]: 
INFO: Starting new HTTPS connection (1): pypi.python.org
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 671, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 901, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 215, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 205, in clobber
    os.makedirs(destdir)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/djangocms_column'

Storing debug log for failure in /home/blogik5/.pip/pip.log
Traceback (most recent call last):
  File "/home/blogik5/.local/bin/djangocms", line 11, in <module>                                                                                                      
    sys.exit(execute())                                                                                                                                                
  File "/home/blogik5/.local/lib/python2.7/site-packages/djangocms_installer/main.py", line 25, in execute                                                             
    install.requirements(config_data.requirements)
  File "/home/blogik5/.local/lib/python2.7/site-packages/djangocms_installer/install/__init__.py", line 64, in requirements                                            
    raise InstallationError("Error while installing requirements. Check pip log file for error details.")
pip.exceptions.InstallationError: Error while installing requirements. Check pip log file for error details.

pip.log:

Cleaning up...
  Removing temporary dir /tmp/pip_build_blogik5...
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 283, in run
    requirement_set.install(install_options, global_options, root=options.root_path)
  File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1435, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 671, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 901, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 215, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 205, in clobber
    os.makedirs(destdir)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/djangocms_column'

Interesting, it sounds like it's trying to install extra packages without the --user flag.

I think the best thing for you to do would be to use a virtualenv. Follow the instructions here to get a simple Django web app up and running, then you should be able to use the pip install command without the --user flag, and everything should work OK.