Closed
Description
I've found that the line of code above throws the following Traceback:
Traceback (most recent call last):
File "./syphon.py", line 303, in <module>
args.func(args)
File "./syphon.py", line 188, in produce
import ObserviumSyphon
File "/home/tim.s/orbit-db-utils/observium-syphon/ObserviumSyphon.py", line 14, in <module>
from OrbitDbProducer import OrbitDbProducer
File "/home/tim.s/orbit-db-utils/observium-syphon/OrbitDbProducer.py", line 97, in <module>
class OrbitDbProducer:
File "/home/tim.s/orbit-db-utils/observium-syphon/OrbitDbProducer.py", line 110, in OrbitDbProducer
} """), }
File "/usr/lib64/python2.7/site-packages/confluent_kafka-0.11.4-py2.7-linux-x86_64.egg/confluent_kafka/avro/load.py", line 30, in loads
except schema.AvroException.SchemaParseException as e:
AttributeError: type object 'AvroException' has no attribute 'SchemaParseException'
I also was able to eliminate the error by editing load.py, a diff to my edited version reads as follows:
21a22
> from avro.schema import SchemaParseException
30c31
< except schema.AvroException.SchemaParseException as e:
---
> except SchemaParseException as e:
Before this issue, my code is loading kafka libs via these statements.
from confluent_kafka import avro
from confluent_kafka.avro import AvroProducer
from avro.io import AvroTypeException
I'm hoping this information may be enough to identify an issue. Thanks for your attention.