python example goes well but lua example failed
See original GitHub issueth
vis = require 'visdom'()
vis.ipv6 = false
vis:text{text = 'Hello, world!'}
I also added LocalForward 127.0.0.1:8097 127.0.0.1:8097
at the start of ~/.ssh/config file.
when I post the message by vis:text{text = 'Hello, world!'}
, error occured like follows:
ERROR:tornado.application:Uncaught exception POST /events (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost', method='POST', uri='/events', version='HTTP/1.1', remote_ip='127.0.0.1', headers={'Content-Length': '159', 'Host': 'localhost', 'Te': 'trailers', 'Content-Type': 'application/text', 'Connection': 'close, TE', 'User-Agent': 'LuaSocket 3.0-rc1'})
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1332, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/usr/local/lib/python2.7/dist-packages/visdom/server.py", line 253, in post
ptype = args['data'][0]['type']
KeyError: u'data'
ERROR:root:ERROR: 500: {'exc_info': (<type 'exceptions.KeyError'>, KeyError(u'data',), <traceback object at 0x7faa9dff2290>)}
ERROR:tornado.access:500 POST /events (127.0.0.1) 1.02ms
Can anyone tell me why and how to solve it, Thank you very much in advance!
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
python example goes well but lua example failed #180
Hi @geekvc - We were just able to upload the correct version of visdom to PyPI. You should be able to use it...
Read more >Lua script won't execute python script
When I put the command manually into my terminal, it works, but the lua script doesn't seem to be executing it. There is...
Read more >Newbie Tutorial Error Question - ReasonTalk.com - Forum
It looks like an error with Python, it's not getting far enough to be able to give you a line number for the...
Read more >Failed to accomplish work with Lua scripting
I have a bit of criticism about scripting with lua, because I failed to accomplish the task I set out to do and...
Read more >Lua vs Python | Top 12 Differences You Should Know
The Lua is better for game development but python does not provide good support for mobile games and applications. Lua is easier than...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good job, this command solved my issue. Thank you very much for your great work!
Hi @geekvc - We were just able to upload the correct version of visdom to PyPI. You should be able to use it after running
pip install --upgrade visdom
. Let me know if this solves the issue for you!