帮助佐。构建脚本安装Satchmo

时间:2021-10-31 03:00:41

Im trying to re-create a this satchmo environment using a buildout script:

我尝试使用buildout脚本重新创建这个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}

The buildout itself is running fine, my issue now is one of dependancy.

建筑本身运行良好,我现在的问题是依赖。

Everything satchmo needs is installed, but running clonesatchmo.py complains that PIL is not installed when I can see it clearly is, so im guessing I havent "told" buildout that satchmo relies on PIL.

satchmo需要的所有东西都安装好了,但是运行clonesatchmo。py抱怨说当我清楚地看到PIL并没有安装PIL,所以我猜我还没有告诉“buildout that satchmo依赖PIL”。

Im still confused about what goes in the "eggs" section and what goes in the "parts" section, and when they need to go in both?

我还是搞不懂“鸡蛋”部分是什么,“部分”部分是什么,什么时候两者都需要?

Can anyone see anything wrong here or advise on how to configure dependancies?

有谁能看出这里有什么问题或建议如何配置依赖关系吗?

Thanks in advance,

提前谢谢,

James

詹姆斯

1 个解决方案

#1


2  

I always have problems when installing PIL. On my machine from PIL import Image doesn't work while import Image works. Not sure what Satchmo use, but my guess is they are using the PIL and you installed the Image.

我在安装PIL时总是有问题。在我的机器上,从PIL导入图像不工作,而导入图像工作。不知道Satchmo使用的是什么,但我猜他们使用的是PIL,你安装了图片。

please check this link for PIL buildout installation

请查看PIL buildout安装的这个链接

#1


2  

I always have problems when installing PIL. On my machine from PIL import Image doesn't work while import Image works. Not sure what Satchmo use, but my guess is they are using the PIL and you installed the Image.

我在安装PIL时总是有问题。在我的机器上,从PIL导入图像不工作,而导入图像工作。不知道Satchmo使用的是什么,但我猜他们使用的是PIL,你安装了图片。

please check this link for PIL buildout installation

请查看PIL buildout安装的这个链接