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

Error: decoding to str: need a bytes-like object, tuple found #56

Open
pi-yush opened this issue Dec 27, 2022 · 1 comment
Open

Error: decoding to str: need a bytes-like object, tuple found #56

pi-yush opened this issue Dec 27, 2022 · 1 comment

Comments

@pi-yush
Copy link

pi-yush commented Dec 27, 2022

I recently installed carml, and executing any command results in an error. Stack trace attached (with -d option):

carml -d stream -L

Error: decoding to str: need a bytes-like object, tuple found
Traceback (most recent call last):
File "/home/piyush/.local/lib/python3.8/site-packages/twisted/internet/defer.py", line 661, in callback
self._startRunCallbacks(result)
File "/home/piyush/.local/lib/python3.8/site-packages/twisted/internet/defer.py", line 763, in _startRunCallbacks
self._runCallbacks()
File "/home/piyush/.local/lib/python3.8/site-packages/twisted/internet/defer.py", line 857, in _runCallbacks
current.result = callback( # type: ignore[misc]
File "/home/piyush/.local/lib/python3.8/site-packages/twisted/internet/defer.py", line 1750, in gotResult
current_context.run(_inlineCallbacks, r, gen, status)
--- ---
File "/home/piyush/.local/lib/python3.8/site-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
result = current_context.run(gen.send, result)
File "/home/piyush/.local/lib/python3.8/site-packages/carml/cli.py", line 156, in _startup
print("Connected via {}".format(str(tor.protocol.transport.addr, "utf8")))
builtins.TypeError: decoding to str: need a bytes-like object, tuple found

It seems like there is some change in the way tor returns certain data that the carml's current implementation is not able to decode.

@meejah
Copy link
Owner

meejah commented Dec 28, 2022

Can you say how you installed this?

I did a pip install carml in a new virtualenv (ended up with Python 3.9.2) and the above command worked. Can you dump your python version and results of pip freeze (if it's in a virtualenv) please?

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

2 participants