I have installed Pyramid 1.3.x and pyramid_mongodb scaffold, but it does not appear when I run pcreate --list-templates
.
-
Even after installed pyramid-1.2.7 it doesn't appear, but when I exec: paster create --list-templates it show an exception: Warning: could not load entry point pyramid_mongodb (ImportError: No module named pyramid_mongodb.paster_templates) – El RatÓn Jan 29 '12 at 10:50
-
Pyramid 1.3 is still in alpha. There has been some major changes with scaffolding so don't expect every scaffold to work out of the box. – Danny Navarro Jan 30 '12 at 14:14
-
I've alsom tryed with pyramid 1.2 and the same. – El RatÓn Jan 30 '12 at 14:16
-
Have you tried it in a new fresh virtualenv? – Danny Navarro Jan 31 '12 at 08:20
-
In case it matters, I wrote that project, http://pypi.python.org/pypi?:action=display&name=pyramid_mongo&version=0.1 Still haven't found time writting scaffolding but soon I'll include some great things. It's as simple to use as config.include('pyramid_mongo'), I'm planning to develop a scaffold that looks pretty much like the zodb one. Documentation here http://packages.python.org/pyramid_mongo/ – Loïc Faure-Lacroix Jun 25 '12 at 07:36
2 Answers
I gather that stuff is registered to work with pyramid scaffolding by making it a [pyramid.scaffold]
entry point. In addition, pyramid_mongodb has a dependency on PasteScript (*see update).
The issue is that pyramid_mongodb is missing some information in its setup.py. I've forked the github repo and fixed it so it should work in the future.
Update: The dependency on PasteScript is not entirely the best approach, and I'll update it on github soon. The issue of supporting multiple versions of scaffolding is documented on Pyramid's website

- 74,557
- 19
- 143
- 201
This was not listed for me either but you should still be able to run ./bin/pip install pyramid_mongodb
to install with those options.
When you run pserve development.ini
, you may get an error pymongo.errors.ConnectionFailure:
. If you install MongoDB and run the daemon, your Pyramid app should connect.

- 3,218
- 7
- 29
- 36