You are missing sqlalchemy.url  in your config.

On Wed, Jun 27, 2012 at 1:58 AM, Eugene Pustovit <[email protected]>wrote:

> And here's development.ini that I'm using:
> [app:main]
> use = egg:MyProject
>
> pyramid.reload_templates = true
> pyramid.debug_authorization = false
> pyramid.debug_notfound = false
> pyramid.debug_routematch = false
> pyramid.default_locale_name = en
> pyramid.includes =
>     pyramid_debugtoolbar
>
> [server:main]
> use = egg:waitress#main
> host = 0.0.0.0
> port = 6543
>
> # Begin logging configuration
>
> [loggers]
> keys = root, myproject
>
> [handlers]
> keys = console
>
> [formatters]
> keys = generic
>
> [logger_root]
> level = INFO
> handlers = console
>
> [logger_myproject]
> level = DEBUG
> handlers =
> qualname = myproject
>
> [handler_console]
> class = StreamHandler
> args = (sys.stderr,)
> level = NOTSET
> formatter = generic
>
> [formatter_generic]
> format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s]
> %(message)s
>
> # End logging configuration
>
>
> On Tuesday, June 26, 2012 11:38:04 PM UTC+3, Eugene Pustovit wrote:
>>
>> Hi! Thank's for replying. Here's a stacktrace:
>>
>> *Traceback (most recent call last):*
>> *  File "/Users/logiartis/env/bin/pserve", line 8, in <module>*
>> *    load_entry_point('pyramid==1.3.2', 'console_scripts', 'pserve')()*
>> *  File "/Users/logiartis/env/lib/python2.7/site-packages/
>> pyramid-1.3.2-py2.7.egg/pyramid/scripts/pserve.py", line 47, in main*
>> *    return command.run()*
>> *  File "/Users/logiartis/env/lib/python2.7/site-packages/
>> pyramid-1.3.2-py2.7.egg/pyramid/scripts/pserve.py", line 290, in run*
>> *    relative_to=base, global_conf=vars)*
>> *  File "/Users/logiartis/env/lib/python2.7/site-packages/
>> pyramid-1.3.2-py2.7.egg/pyramid/scripts/pserve.py", line 318, in loadapp*
>> *    return loadapp(app_spec, name=name, relative_to=relative_to, **kw)*
>> *  File "/Users/logiartis/env/lib/python2.7/site-packages/
>> PasteDeploy-1.5.0-py2.7.egg/paste/deploy/loadwsgi.py", line 247, in
>> loadapp*
>> *    return loadobj(APP, uri, name=name, **kw)*
>> *  File "/Users/logiartis/env/lib/python2.7/site-packages/
>> PasteDeploy-1.5.0-py2.7.egg/paste/deploy/loadwsgi.py", line 272, in
>> loadobj*
>> *    return context.create()*
>> *  File "/Users/logiartis/env/lib/python2.7/site-packages/
>> PasteDeploy-1.5.0-py2.7.egg/paste/deploy/loadwsgi.py", line 710, in
>> create*
>> *    return self.object_type.invoke(self)*
>> *  File "/Users/logiartis/env/lib/python2.7/site-packages/
>> PasteDeploy-1.5.0-py2.7.egg/paste/deploy/loadwsgi.py", line 146, in
>> invoke*
>> *    return fix_call(context.object, context.global_conf,
>> **context.local_conf)*
>> *  File "/Users/logiartis/env/lib/python2.7/site-packages/
>> PasteDeploy-1.5.0-py2.7.egg/paste/deploy/util.py", line 56, in fix_call*
>> *    val = callable(*args, **kw)*
>> *  File "/Users/logiartis/logiprojects/Noname-Pilot/
>> MyProject/myproject/__init__.py", line 9, in main*
>> *    engine = engine_from_config(settings, 'sqlalchemy.')*
>> *  File "build/bdist.macosx-10.6-intel/egg/sqlalchemy/engine/__init__.py",
>> line 355, in engine_from_config*
>> *KeyError: 'url'*
>>
>>
>> On Tuesday, June 26, 2012 9:08:11 PM UTC+3, Sontek wrote:
>>>
>>>
>>>
>>> On Tue, Jun 26, 2012 at 10:31 AM, Eugene Pustovit 
>>> <[email protected]>wrote:
>>>
>>>> Hi guys, facing the same issue while trying to follow the official
>>>> tutorial<http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/project.html#scaffolds-included-with-pyramid>
>>>> .
>>>> After trying to run the application with:
>>>> $ ../bin/pserve development.ini
>>>>
>>>> getting the same KeyError 'URL' error message. Could you please help me
>>>> with some kind of step by step instructions on how to fix this?
>>>> Thank you.
>>>>
>>>> On Friday, May 25, 2012 4:28:29 AM UTC+3, Bruce Coble wrote:
>>>>>
>>>>> Brilliant work Lucas!
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Bruce Coble
>>>>>
>>>>
>>> Actually, I read your problem wrong.  Please provide us a stacktrace.
>>>
>>>  --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-discuss/-/3RKQfBr0pncJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to