question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

python example goes well but lua example failed

See original GitHub issue

th

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:closed
  • Created 6 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
geekvccommented, Oct 27, 2017

Good job, this command solved my issue. Thank you very much for your great work!

2reactions
JackUrbcommented, Oct 27, 2017

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found