Pyramid 1.3 and Google App Engine 1.7

2019-05-10 16:56发布

I managed to make a Pyramid 1.2 WSGI app run on Google App Engine SDK 1.7. However, my current project uses several new Pyramid 1.3 features and I'm stuck on a WebOb version issue. Here's the error message:

VersionConflict: (WebOb 1.1.1 (/home/matt/Python/google_appengine/lib/webob_1_1_1), Requirement.parse('WebOb>=1.2dev')

Is there something I can do or I must wait for a new GAE release?

3条回答
2楼-- · 2019-05-10 17:14

A fairly reliable way to manage your pyramid application and it's dependencies on appengine is via the pyramid_appengine library which generates a skeleton project that uses buildout.

disclaimer: I wrote this as part of the pyramid sprint at pycon this year.

查看更多
我想做一个坏孩纸
3楼-- · 2019-05-10 17:17

You can always bundle your own version of webob with your application:

In your application directory do:

wget http://pypi.python.org/packages/source/W/WebOb/WebOb-1.2.2.zip
unzip WebOb-1.2.2.zip
mv WebOb-1.2.2/webob .
rm -fR WebOb-1.2.2*

And redeploy your application.

查看更多
迷人小祖宗
4楼-- · 2019-05-10 17:23

I ended up modifying lib/python2.7/site-packages/pyramid-1.3.2-py2.7.egg/EGG-INFO/requires.txt in my virtualenv. I changed WebOb >= 1.2dev for WebOb >= 1.1.1 and it worked!

查看更多
登录 后发表回答