Installation djangocms läuft nicht durch?!

Django, Flask, Bottle, WSGI, CGI…
Antworten
klara-f
User
Beiträge: 19
Registriert: Dienstag 5. August 2014, 07:34

Hallo Forum,

bei der Installation von djangocms halte ich mich genau an das Tutorial, erhalte aber permanent eine Fehlermeldung:

Code: Alles auswählen

(env)<user>@<computer>:~$ djangocms -p . my_demo
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]: no
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: de,en
Optional default time zone [default America/Chicago]: Europe/Berlin
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]: yes
INFO: Starting new HTTPS connection (1): pypi.python.org
Command /home/<user>/env/bin/python -c "import setuptools, tokenize;__file__='/home/<user>/env/build/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-MKFgck-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/<user>/env/include/site/python2.7 failed with error code 1 in /home/<user>/env/build/Pillow
Storing debug log for failure in /home/<user>/.pip/pip.log
Traceback (most recent call last):
  File "/home/<user>/env/bin/djangocms", line 11, in <module>
    sys.exit(execute())
  File "/home/<user>/env/local/lib/python2.7/site-packages/djangocms_installer/main.py", line 25, in execute
    install.requirements(config_data.requirements)
  File "/home/<user>/env/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.
Mein pip.log habe ich hier hochgeladen: http://ge.tt/4pdwdNq1/v/0?c?c

Kann mir jemand sagen, woran es liegt? Ich vermute mal, etwas fehlt in der Installation - aber was?

Viele Grüße, klara
Sirius3
User
Beiträge: 17747
Registriert: Sonntag 21. Oktober 2012, 17:20

Du hast keine Python-Header-Dateien. Du mußt das Python-dev Paket separat installieren oder Dir eine vorcompilierte Pillow-Version für Deine Distribution besorgen.
BlackJack

Bei der Installation von Pillow fehlt dem C-Compiler die ``Python.h``-Headerdatei. Vermutlich hast Du dann die anderen Vorraussetzungen für PIL auch nicht installiert: https://pypi.python.org/pypi/Pillow/1.7 ... -platforms
klara-f
User
Beiträge: 19
Registriert: Dienstag 5. August 2014, 07:34

Das sind gute Hinweise, werde ich gleich ausprobieren. Dachte, die ganzen Sachen werden automatisch installiert.

Eine Frage ist da noch: installiere ich das in meiner (env) oder installiere ich über das im Ubuntu? Lieber wäre mir in (env) - gehts das überhaupt?
Und wie kann ich Python3 in (env) verwenden? Geht das? Auf dem Computer ist im Moment nur Python2.7 --> auch hier: in (env) installieren oder auf dem System?

klara!
BlackJack

@klara-f: Die `dev`-Pakete sind ja Pakete von der Linux-Distribution, die werden ganz normal installiert. Das ist kein Python, und die Paketverwaltung von der Distribution kennt keine virtualenvs. Wüsste auch nicht warum man die nur dort installieren sollte.
Antworten