Pylons / pyramid_blogr

Pyramid_blogr is an example implementation of Flaskr app with Pyramid Web Framework
72 stars 39 forks source link

AttributeError: add_request_method #12

Closed piotrektt closed 9 years ago

piotrektt commented 9 years ago

(pyramid)piotrektt@BlackSun:~/Projects/pyramid/pyramid_blogr$ pserve --reload development.ini Starting subprocess with file monitor Traceback (most recent call last): File "/home/piotrektt/Projects/pyramid/bin/pserve", line 9, in load_entry_point('pyramid==1.3.4', 'console_scripts', 'pserve')() File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 47, in main return command.run() File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 290, in run relative_to=base, global_conf=vars) File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/pyramid/scripts/pserve.py", line 318, in loadapp return loadapp(app_spec, name=name, relative_to=relative_to, _kw) File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp return loadobj(APP, uri, name=name, _kw) File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj return context.create() File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create return self.object_type.invoke(self) File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke return fix_call(context.object, context.global_conf, *_context.local_conf) File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call val = callable(_args, kw) File "/home/piotrektt/Projects/pyramid/pyramid_blogr/pyramid_blogr/init.py", line 11, in main config = Configurator(settings=settings) File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/pyramid/config/init.py", line 304, in init exceptionresponse_view=exceptionresponse_view, File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/pyramid/config/init.py", line 426, in setup_registry self.include(inc) File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/pyramid/config/init.py", line 737, in include c(configurator) File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/pyramid_tm/init.py", line 138, in includeme config.add_request_method('pyramid_tm.create_tm', name='tm', reify=True) File "/home/piotrektt/Projects/pyramid/local/lib/python2.7/site-packages/pyramid/config/init.py", line 775, in getattr** raise AttributeError(name) AttributeError: add_request_method

ergo commented 9 years ago

Try to use latest pyramid 1.5.x or even 1.6? This looks like some version incompatiblility between pyramid_tm and pyramid itself.

piotrektt commented 9 years ago

That worked. I updated pyramid to 1.5.7. Thx for help.

mmerickel commented 9 years ago

The version of pyramid_tm that uses add_request_method is unreleased. How did it end up in your virtualenv? I opened https://github.com/Pylons/pyramid_tm/issues/35 to track this incompatibility.

piotrektt commented 9 years ago

I don't know. I created virtual env. Inside the env I did "pip install pyramid==1.3.4", then I followed instructions from pyramid_blogr (http://pyramid-blogr.readthedocs.org/en/latest/project_structure.html). When I wanted to pserve I got this error.

My system: Ubuntu 14.04.2 LTS x64