-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AttributeError: 'dict' object has no attribute 'root' #124
Comments
@michaelkuty can you check the latest commit fixes the problem? |
Yes, this was first thing which I tried before issuing
I use gunicorn + paste
|
- paste-factory is practically untested.
@ankostis with your no2
|
i have suggestion to use simple dictionaray object with dot access
for me is this solution number one which works |
Your suggestion works well for preserving Check the last one, and it would be great if you could come up with some test; any test is better than nothing, even described in words. |
this is standard dictionary which allows also supports conf.mykey = value or conf['mykey'] = value |
Last one works well. Thanks a lot ! |
Your conf-suggestion is really terse - I will use it in my code, thanks (but note that it contains 2 dict instances) |
FIX #124: Convert forgotten attr-access-->dict-access & TCs for paste-factory
- Obviously a TC is needed there.
- paste-factory is practically untested.
FIX pypiserver#124: Convert forgotten attr-access-->dict-access & TCs for paste-factory
Hello i have worker 1.0.0 version but get this error in 1.1+
al_conf)
File "/srv/pypiserver/local/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
val = callable(_args, *_kw)
File "/srv/pypiserver/local/lib/python2.7/site-packages/paste/urlmap.py", line 31, in urlmap_factory
app = loader.get_app(app_name, global_conf=global_conf)
File "/srv/pypiserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
name=name, global_conf=global_conf).create()
File "/srv/pypiserver/local/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
return self.object_type.invoke(self)
File "/srv/pypiserver/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 "/srv/pypiserver/local/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
val = callable(_args, **kw)
File "/srv/pypiserver/local/lib/python2.7/site-packages/pypiserver/init.py", line 152, in paste_app_factory
c.root = [_make_root(x) for x in root.split("\n") if x.strip()]
AttributeError: 'dict' object has no attribute 'root'
[2016-03-19 00:54:19 +0000] [31393] [INFO] Worker exiting (pid: 31393)
[2016-03-19 00:54:19 +0000] [31388] [INFO] Shutting down: Master
[2016-03-19 00:54:19 +0000] [31388] [INFO] Reason: Worker failed to boot.
The text was updated successfully, but these errors were encountered: