Tutorial question

2 views
Skip to first unread message

Chris G.

unread,
Dec 12, 2008, 1:56:15 PM12/12/08
to fuxi-discussion
I'm running through the Fuxi tutorial in the user manual, and the
following error shows up when Python reaches the Ruleset
(n3Rules=ruleStore.rules,nsMapping=ruleStore.nsMgr) line:

Traceback (most recent call last):
File "test.py", line 11, in <module>
ruleSet = Ruleset
(n3Rules=ruleStore.rules,nsMapping=ruleStore.nsMgr)
File "c:\python25\lib\site-packages\FuXi-0.95b.dev_r229-py2.5.egg
\FuXi\Horn\Ho
rnRules.py", line 32, in __init__
newNss=nsMapping) for term in lhs]
IndexError: list index out of range


Any ideas what might be causing this? This has happened with every
rule n3 I try to import - even if there is just a single rule. If
there are no rules at all in the n3 file, no error is generated.

Thanks for any help!
Chris

Chris G.

unread,
Dec 12, 2008, 4:03:52 PM12/12/08
to fuxi-discussion
So while I'm still not sure why this was happening, I've managed to
get around it by using the svn checkout instead of easy_install and
going with the SetupRuleStore() method in the tutorial.

Chris

Chimezie

unread,
Dec 21, 2008, 12:21:18 AM12/21/08
to fuxi-discussion
Note, I've committed changes to svn and uploaded a new build to
cheeseshop / easy_install
Reply all
Reply to author
Forward
0 new messages