2014-04-29 43 views
2

我试图让Django的CMS到我的系统上运行。 继Django的CMS教程:https://github.com/divio/django-cms-tutorial枕头不与JPEG支持编译 - 安装的Django CMS

我只好装枕头,但现在当我运行:

$ djangocms -p . my_demo 

,并在所有我得到以下错误的选项填:

HTTP error 404 while getting https://github.com/divio/django-cms/archive/3.0c2.zip 
Exception: 
Traceback (most recent call last): 
    File "/Users/macbook/Desktop/MyProjects/djangoCMS/demo/demoEnv/lib/python2.7/site- packages/pip/basecommand.py", line 122, in main 
status = self.run(options, args) 
    File "/Users/macbook/Desktop/MyProjects/djangoCMS/demo/demoEnv/lib/python2.7/site- packages/pip/commands/install.py", line 278, in run 
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
    File "/Users/macbook/Desktop/MyProjects/djangoCMS/demo/demoEnv/lib/python2.7/site-packages/pip/req.py", line 1197, in prepare_files 
do_download, 
    File "/Users/macbook/Desktop/MyProjects/djangoCMS/demo/demoEnv/lib/python2.7/site-packages/pip/req.py", line 1375, in unpack_url 
self.session, 
    File "/Users/macbook/Desktop/MyProjects/djangoCMS/demo/demoEnv/lib/python2.7/site-packages/pip/download.py", line 547, in unpack_http_url 
resp.raise_for_status() 
    File "/Users/macbook/Desktop/MyProjects/djangoCMS/demo/demoEnv/lib/python2.7/site-packages/pip/_vendor/requests/models.py", line 773, in raise_for_status 
raise HTTPError(http_error_msg, response=self) 
HTTPError: 404 Client Error: Not Found 

Storing debug log for failure in /Users/macbook/.pip/pip.log 
Traceback (most recent call last): 
    File "/Users/macbook/Desktop/MyProjects/djangoCMS/demo/demoEnv/bin/djangocms", line 11, in <module> 
sys.exit(execute()) 
    File "/Users/macbook/Desktop/MyProjects/djangoCMS/demo/demoEnv/lib/python2.7/site-packages/djangocms_installer/main.py", line 24, in execute 
install.check_install(config_data) 
    File "/Users/macbook/Desktop/MyProjects/djangoCMS/demo/demoEnv/lib/python2.7/site-packages/djangocms_installer/install/__init__.py", line 54, in check_install 
raise EnvironmentError("\n".join(errors)) 
EnvironmentError: Pillow is not compiled with JPEG support, see 'Libraries installation issues' documentation section. 

在搜索网页时,我发现我必须安装libjpeg

即使这样做后,我得到了同样的错误。现在我没有得到它的工作,我真的想与Django CMS合作。很确定我在安装libjpeg时做错了什么。但我现在很确定现在该怎么走!

回答

5

也有类似的问题。这是我如何继续摆脱它。

  1. 安装带有所有必要依赖项的枕头。 您可以参考这个link 如果您在Mac上运行,它只是键入以下命令 $酿造安装如果你观察井的libtiff的libjpeg WEBP小CMS2 $ PIP安装枕头

  2. ,你会发现,出现了一个错误,当程序试图 您需要删除“C2”保持与github.com/divio/django-cms/archive达到github.com/divio/django-cms/archive/3.0c2.zip /3.0.zip

要编辑,去/env/lib/python2.7/site-packages/djangocms_installer/c onfig env是您正在使用的环境(如果您使用的是virtualenv。只要找到你的站点包目录)

打开data.py并且如上所述改变七号线。您可能需要更改文件的权限才能编辑它。

从现在起,就应该很好地工作。

希望它有帮助。

0

我的情况:

诊断,接着命令:

python -c 'from PIL import Image' 

原因:不兼容的库版本:libtiff.5.dylib需要13.0.0或更高版本,但libjpeg.8.dylib提供了版本12.0.0

溶液:

pip uninstall PIL 
pip uninstall Pillow 

brew uninstall libpng 
brew uninstall libjpeg 
brew uninstall webp 
brew uninstall libtiff 
brew uninstall littlecms 
brew prune => to clean symlink 

brew install libjpeg webp libtiff littlecms libpng 

pip install Pillow 

如果错误的libpng为:下载失败:https://downloads.sf.net/project/libpng/libpng16/1.6.13/libpng-1.6.13.tar.xz

cd /Library/Caches/Homebrew 
download the package from browser and copy here 
brew install libpng