Open jgehrcke opened 6 years ago
This happens when you have a ASN.1 schema object (e.g. the one not carrying any payload) and attempt to operate on it:
i = Integer()
bool(i)
But that should work for a schema instance object:
i = Integer(1)
bool(i)
So the question is how to pinpoint that non-initialized ASN.1 data structure? We really need some more info. May be pyasn1 debugging?
The caller was ldap3
, and I have switched back to using pyasn1 0.3.7
with ldap3 2.4
.
Can you advise how could I reproduce this with ldap3?
Or a little more of a stack trace revealing from where in ldap3 pyasn1 was called...?
Or a little more of a stack trace
I have added more (edited the post above). There was no reason to not show that earlier, my mistake.
Now my guess is that you are using some older ldap3 version which was designed to work with older pyasn1. The newer ldap3 versions accommodate both old and contemporary pyasn1 releases.
In other words, it seems that you somehow ended up with an incompatible ldap3 <-> pyasn1 version combination.
This conclusion is based on this observation.
Having said that, could you upgrade ldap3 and give it another try? ;-)
Just observed an error with pyasn 0.4.1:
Right now I unfortunately can't provide more context / more parts of the traceback.