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

connection lost at receive:855 #131

Closed
maho opened this issue Aug 16, 2019 · 6 comments
Closed

connection lost at receive:855 #131

maho opened this issue Aug 16, 2019 · 6 comments

Comments

@maho
Copy link

maho commented Aug 16, 2019

Tried to try wdb, and did roughly what is described in readme, thus:

  1. installed virtualenv
  2. pip installed wdb and wdb.server
  3. ran wdb.server.py in one terminal
  4. created file ee.py with following content:
import wdb
wdb.set_trace()
print("foo")
print("jbar")


  1. tried to debug it, in another terminal:
(venv) lukasz.mach@mac ~/tmp
 $ python ee.py
2019-08-16 15:18:38,289 wdb Connection lost at receive:855
Traceback (most recent call last):
  File "ee.py", line 2, in <module>
    wdb.set_trace()
  File "/Users/lukasz.mach/tmp/venv/lib/python3.5/site-packages/wdb/__init__.py", line 1086, in set_trace
    wdb = Wdb.get(server=server, port=port)
  File "/Users/lukasz.mach/tmp/venv/lib/python3.5/site-packages/wdb/__init__.py", line 118, in get
    Wdb.__init__(wdb, server, port, force_uuid)
  File "/Users/lukasz.mach/tmp/venv/lib/python3.5/site-packages/wdb/__init__.py", line 169, in __init__
    self.get_breakpoints()
  File "/Users/lukasz.mach/tmp/venv/lib/python3.5/site-packages/wdb/__init__.py", line 268, in get_breakpoints
    breaks = loads(breaks or '{}')
  File "/Users/lukasz.mach/.pyenv/versions/3.5.6/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/Users/lukasz.mach/.pyenv/versions/3.5.6/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/Users/lukasz.mach/.pyenv/versions/3.5.6/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
(venv) lukasz.mach@mac ~/tmp

Any idea what I do wrong?

System: Macos Mojave, pyenv, python 3.5.6 (same effect in python 3.7.x)

@yucer
Copy link
Contributor

yucer commented Sep 14, 2019

No idea, but you can always use a previous version.

I found that the problem seems to be in the server side.

Try to use version 3.1.10 of the server in a separate virtual environment. For example:

mkvirtualenv -p `which python3` wdb_server_3_1_10
pip install wdb.server.py == 3.1.10
wdb.server.py

It seems to work with the last version of the client.

mkvirtualenv -p `which python3` wdb_ee
pip install wdb
python ee.py

You can try with newer versions of the server, until find which is the first one that broke.

It is not a good idea to install server and client in the same environment because the server (wdb.server) uses a lot of dependencies, and you are supposed not to change too much the environment you are going to debug. The client (wdb) includes the minimal dependencies.

@maho
Copy link
Author

maho commented Sep 15, 2019

indeed - 3.1.10 works.

3.2.0 .. 3.2.5 - wdb.server.py cannot even start, following traceback:

Traceback (most recent call last):
  File "venv/bin/wdb.server.py", line 10, in <module>
    from wdb_server import server
  File "/private/tmp/venv/lib/python3.7/site-packages/wdb_server/__init__.py", line 374, in <module>
    raise_error=False
TypeError: fetch() got multiple values for argument 'raise_error'

@paradoxxxzero
Copy link
Member

Did you try the last wdb version (3.2.6)? It should be fixed.

@maho
Copy link
Author

maho commented Sep 16, 2019

With wdb 3.2.6 I have the same error as reported (JsonDEcodeError) on cli side.

I didn't mention it, because I thought that it's version I reported about.

@paradoxxxzero
Copy link
Member

And with 3.3.0?

@maho
Copy link
Author

maho commented Sep 16, 2019

and with 3.3.0 works perfect. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants