Skip to content
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

Bad super call in "contexts.py" #10536

Closed
erezinman opened this issue Sep 29, 2020 · 2 comments · Fixed by #10543
Closed

Bad super call in "contexts.py" #10536

erezinman opened this issue Sep 29, 2020 · 2 comments · Fixed by #10543

Comments

@erezinman
Copy link

I get the error

File "/usr/local/lib/python3.6/dist-packages/bokeh/server/contexts.py", line 343, in getattr
return super.getattr(name)
AttributeError: type object 'super' has no attribute 'getattr'

when calling print(doc.session_context.request.aruments) inside the callback passed to bokeh.server.server.Server (terrible name-spacing, BTW). As far as I understand, the call should be to super(). rather than super..

Thanks

@mattpap
Copy link
Contributor

mattpap commented Sep 29, 2020

@erezinman it would be great if you could submit a PR fixing this.

nils-werner added a commit to nils-werner/bokeh that referenced this issue Oct 2, 2020
sawamoha20 pushed a commit to sawamoha20/bokeh that referenced this issue Oct 4, 2020
nils-werner added a commit to nils-werner/bokeh that referenced this issue Oct 12, 2020
@nils-werner
Copy link
Contributor

I think this issue arises because of a typo: request.arguments is defined and should run fine, only if you mistype it request.aruments, that's when __getattr__() gets called.

nils-werner added a commit to nils-werner/bokeh that referenced this issue Oct 15, 2020
bryevdv pushed a commit that referenced this issue Nov 1, 2020
@bryevdv bryevdv modified the milestones: next, 2.3 Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants