-
Notifications
You must be signed in to change notification settings - Fork 155
SyntaxError in Python 3 #41
Comments
Okay, it seems there are various Python 3 incompatibilities in here. My guess is that this is because of Thrift? From what I can see Thrift is Python 3 compatible from version 0.10.0. |
the setup.py does not pin thrift to 0.9, and if I look at the latest build from master, I can see that it is in fact thrift 0.10 that is installed. The crossdock test includes an end-to-end test where the client communicates with jaeger-agent, so I think it is safe to assume using thrift-0.10 is fine and compatible with Jaeger backend (even if jaeger-agent is using 0.9) |
@drzero42 @yurishkuro I think I have fixed most of the incompatibilities in #43 - feel free to take a look. |
And I'm still experiencing the error:
|
The function codecs.span_context_to_string has the following line in it:
parent_id = parent_id or 0L
This is invalid syntax in Python 3 as per PEP 237, as can be seen here:
SyntaxError: invalid syntax Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/jaeger_client/__init__.py", line 32, in <module> from .tracer import Tracer # noqa File "/usr/local/lib/python3.6/site-packages/jaeger_client/tracer.py", line 34, in <module> from .codecs import TextCodec, ZipkinCodec, ZipkinSpanFormat, BinaryCodec File "/usr/local/lib/python3.6/site-packages/jaeger_client/codecs.py", line 140 parent_id = parent_id or 0L ^ SyntaxError: invalid syntax
Instead of 0L in should just be 0. Not sure how to make in compatible with both 2 and 3 though.
The text was updated successfully, but these errors were encountered: