Closed huuhuannt1998 closed 3 months ago
I can't reproduce that error. You're not naming your Python source file rule_engine.py
are you?
That is the name of my python file.
On Mon, Apr 8, 2024 at 13:25 Spencer McIntyre @.***> wrote:
I can't reproduce that error. You're not naming your Python source file rule_engine.py are you?
— Reply to this email directly, view it on GitHub https://github.com/zeroSteiner/rule-engine/issues/88#issuecomment-2043285531, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALOGWQB46QMLGCFMW5PGI7LY4LHHNAVCNFSM6AAAAABF5C3YAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBTGI4DKNJTGE . You are receiving this because you authored the thread.Message ID: @.***>
Try changing it to anything else. You're defining the rule_engine
module yourself and not defining the Rule
class. Rename it to test.py
or something else.
Try changing it to anything else. You're defining the
rule_engine
module yourself and not defining theRule
class. Rename it totest.py
or something else.
It works. Thanks for your help.
I have trying the following example:
I got this error "AttributeError: partially initialized module 'rule_engine' has no attribute 'Rule' (most likely due to a circular import)". How do I get this fixed?