oldray / fuxi

Automatically exported from code.google.com/p/fuxi
0 stars 0 forks source link

testOwl errors out under the gms strategy #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. testOwl  --strategy gms

What is the expected output? What do you see instead?

======================================================================
ERROR: testOwl (__main__.OwlTestSuite)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/Shared/workspaces/workspace/fuxi/test/testOWL.py", line 361, in testOwl
    conclusionFile)
  File "/Users/Shared/workspaces/workspace/fuxi/test/testOWL.py", line 248, in MagicOWLProof
    timing=self.calculateEntailments(factGraph)
  File "/Users/Shared/workspaces/workspace/fuxi/test/testOWL.py", line 152, in calculateEntailments
    self.network.feedFactsToAdd(generateTokenSet(factGraph))
  File "/Users/Shared/workspaces/workspace/fuxi/build/lib/FuXi/Rete/Network.py", line 604, in feedFactsToAdd
    self.addWME(token)
  File "/Users/Shared/workspaces/workspace/fuxi/build/lib/FuXi/Rete/Network.py", line 594, in addWME
    alphaNode.activate(wme.unboundCopy())
  File "/Users/Shared/workspaces/workspace/fuxi/build/lib/FuXi/Rete/AlphaNode.py", line 322, in activate
    memory.successor.propagate(memory.position,aReteToken.debug,wme=aReteToken)
  File "/Users/Shared/workspaces/workspace/fuxi/build/lib/FuXi/Rete/BetaNode.py", line 660, in propagate
    self._activate(PartialInstanciation([wme],consistentBindings=wme.bindingDict.copy()),debug)
  File "/Users/Shared/workspaces/workspace/fuxi/build/lib/FuXi/Rete/BetaNode.py", line 607, in _activate
    self.network.fireConsequent(partInstOrList,self,debug)
  File "/Users/Shared/workspaces/workspace/fuxi/build/lib/FuXi/Rete/Network.py", line 553, in fireConsequent
    self.addWME(inferredToken)
  File "/Users/Shared/workspaces/workspace/fuxi/build/lib/FuXi/Rete/Network.py", line 594, in addWME
    alphaNode.activate(wme.unboundCopy())
  File "/Users/Shared/workspaces/workspace/fuxi/build/lib/FuXi/Rete/AlphaNode.py", line 322, in activate
    memory.successor.propagate(memory.position,aReteToken.debug,wme=aReteToken)
  File "/Users/Shared/workspaces/workspace/fuxi/build/lib/FuXi/Rete/BetaNode.py", line 652, in propagate
    print self.clauseRepresentation()
  File "/Users/Shared/workspaces/workspace/fuxi/build/lib/FuXi/Rete/BetaNode.py", line 557, in clauseRepresentation
    return repr(first(self.rules).formula)
AttributeError: 'NoneType' object has no attribute 'formula'

----------------------------------------------------------------------
Ran 1 test in 0.798s

FAILED (errors=1)

Original issue reported on code.google.com by onew...@gmail.com on 21 Dec 2010 at 7:47

GoogleCodeExporter commented 9 years ago
This issue is merged with #40.

Original comment by onew...@gmail.com on 21 Dec 2010 at 10:02