Hi all,
Do you think you can review my gist code https://gist.github.com/ajoros/adb2ab791ce7ee0910d7
and tell me why I am receiving this NoneType error? I am following an example written by Khalid on the bokeh groups and tailored it to me own needs but I can’t get passed this hurdle, even with extensive online research:
AttributeError: ‘NoneType’ object has no attribute 'on_click’
2015-07-24 16:20:21,260:ERROR:tornado.access:500 GET /bokeh/Toggle2/ (127.0.0.1) 104.00ms
2015-07-24 16:20:21,460:ERROR:bokeh.server:Exception on /bokeh/Toggle2/ [GET]
Traceback (most recent call last):
** File “C:\Anaconda\lib\site-packages\flask\app.py”, line 1817, in wsgi_app**
** response = self.full_dispatch_request()**
** File “C:\Anaconda\lib\site-packages\flask\app.py”, line 1477, in full_dispatch_request**
** rv = self.handle_user_exception(e)**
** File “C:\Anaconda\lib\site-packages\flask\app.py”, line 1381, in handle_user_exception**
** reraise(exc_type, exc_value, tb)**
** File “C:\Anaconda\lib\site-packages\flask\app.py”, line 1475, in full_dispatch_request**
** rv = self.dispatch_request()**
** File “C:\Anaconda\lib\site-packages\flask\app.py”, line 1461, in dispatch_request**
__ return self.view_functionsrule.endpoint__
** File “C:\Anaconda\lib\site-packages\bokeh\server\utils\plugins.py”, line 57, in wrapper**
__ obj = func(*args, **kwargs)__
** File “Toggle2.py”, line 241, in make_hack**
** app = HackApp.create()**
** File “Toggle2.py”, line 73, in create**
** obj = cls()**
** File “C:\Anaconda\lib\site-packages\bokeh\models\widgets\layouts.py”, line 47, in init**
__ super(BaseBox, self).init(**kwargs)__
** File “C:\Anaconda\lib\site-packages\bokeh\plot_object.py”, line 91, in init**
** self.setup_events()**
** File “Toggle2.py”, line 174, in setup_events**
** self.toggle.on_click(self.checkbox_handler)**
AttributeError: ‘NoneType’ object has no attribute 'on_click’
Thanks
aj