我尝试使用buildout脚本重新创建this satchmo环境:
[buildout]
parts =
django
satchmo
eggs =
pycrypto
PIL
pyyaml
trml2pdf
sorl-thumbnail
django-registration
django-caching-app-plugins
django-threaded-multihost
django-signals-ahoy
django-keyedcache
django-livesettings
django
satchmo
Sphinx
docutils
extensions =
mr.developer
buildout.eggtractor
auto-checkout =
django-caching-app-plugins
django-threaded-multihost
django-signals-ahoy
django-keyedcache
django-livesettings
satchmo
sources = sources
[sources]
django-caching-app-plugins = hg http://bitbucket.org/bkroeze/django-caching-app-plugins/
django-signals-ahoy = hg http://bitbucket.org/bkroeze/django-signals-ahoy/
django-threaded-multihost = hg https://bkroeze@bitbucket.org/bkroeze/django-threaded-multihost/
django-keyedcache = hg http://bitbucket.org/bkroeze/django-keyedcache/
django-livesettings = hg http://bitbucket.org/bkroeze/django-livesettings/
satchmo = hg http://bitbucket.org/chris1610/satchmo/
[trml2pdf]
recipe = zc.recipe.egg
find-links = http://www.satchmoproject.com/snapshots/trml2pdf-1.2.tar.gz
eggs = trml2pdf
[satchmo]
recipe = zc.recipe.egg
find-links = ./src/satchmo
eggs = ${buildout:eggs}
[django]
recipe = djangorecipe
version = 1.2.3
eggs = ${buildout:eggs}
buildout本身运行正常,我现在的问题是依赖。
安装了satchmo需要的所有东西,但是运行clonesatchmo.py会抱怨PIL没有安装,当我能清楚地看到它时,所以我猜我没有“告诉”buildout satchmo依赖于PIL。
我仍然对“鸡蛋”部分中的内容以及“部分”部分中的内容感到困惑,以及何时需要同时进入?
有人可以在这里看到任何错误或建议如何配置依赖项吗?
提前致谢,
詹姆斯
答案 0 :(得分:2)
安装PIL时总是遇到问题。在from PIL import Image
工作时,我的计算机import Image
无效。
不确定Satchmo使用的是什么,但我猜他们正在使用PIL而你安装了Image。