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

qdb on Python3 needs to use a byte-string for the multiprocessing authkey #18

Open
GoogleCodeExporter opened this issue Jan 9, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

I ran qdb.py through 2to3 and then tried to use the set_trace() function in 
Python 3.2.3. When I do that, however, I get this:

---------------------------------------

Traceback (most recent call last):
  File "test.py", line 11, in <module>
    foo()
  File "test.py", line 5, in foo
    qdb.set_trace()
  File "/workspace/install/gerrit/rms/products/dotrox/MAIN/linux-amd64-gcc_4_4-release/lib/python3.2/site-packages/qdb.py", line 925, in set_trace
    listener = Listener(address, authkey=authkey)
  File "/workspace/install/gerrit/rms/products/dotrox/MAIN/linux-amd64-gcc_4_4-release/lib/python3.2/multiprocessing/connection.py", line 135, in __init__
    raise TypeError('authkey should be a byte string')
TypeError: authkey should be a byte string

-------------------------------

As a quick patch, I went through and changed all instances of 'secret password' 
to b'secret password', and this made the problem go away. That's probably not a 
complete fix, but it let me move ahead. (To which I'd should add that qdb 
seemed to work flawlessly afterwards...awesome!)

Original issue reported on code.google.com by austin.bingham on 16 Jul 2013 at 10:33

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

No branches or pull requests

1 participant