W3C home > Mailing lists > Public > public-cwm-bugs@w3.org > March 2007

cwm TypeError

From: Norman Walsh <ndw@nwalsh.com>
Date: Tue, 27 Mar 2007 13:56:29 -0400
To: public-cwm-bugs@w3.org
Message-ID: <87zm5yh8oi.fsf@nwalsh.com>

$cwm --rdf contact.rdf ../etc/pubs.rdf ../etc/places.rdf \
            --n3 ../ontologies/addr.ont ../ontologies/bio.ont ../ontologies/cc.ont ../ontologies/contacts.ont ../ontologies/dc.ont ../ontologies/foaf.ont ../ontologies/genealogy.ont ../ontologies/geowgs84.ont ../ontologies/pim.ont ../ontologies/pub.ont ../ontologies/sun.ont ../ontologies/upcoming.ont ../ontologies/vcard.ont ../ontologies/wordnet.ont rules.n3 \
	         ../etc/contacts.n3 ../etc/us-states.n3 \
		 ../etc/countries.n3 \
            --closure=e --think --data --base=bogus: --bySubject --rdf > addrbook.rdf
Traceback (most recent call last):
  File "/projects/w3c/2000/10/swap/cwm.py", line 740, in <module>
  File "/projects/w3c/2000/10/swap/cwm.py", line 607, in doCommand
    think(workingContext, mode=option_flags["think"])
  File "/projects/w3c/WWW/2000/10/swap/query.py", line 88, in think
    return InferenceTask(knowledgeBase, ruleFormula, mode=mode, why=why, repeat=1).run()
  File "/projects/w3c/WWW/2000/10/swap/query.py", line 262, in run
    return self.runSmart()
  File "/projects/w3c/WWW/2000/10/swap/query.py", line 250, in runSmart
    total += cy.run()
  File "/projects/w3c/WWW/2000/10/swap/query.py", line 422, in run
    found = rule.once()
  File "/projects/w3c/WWW/2000/10/swap/query.py", line 555, in once
    total = query.resolve()
  File "/projects/w3c/WWW/2000/10/swap/query.py", line 832, in resolve
    k = self.matchFormula(self.statements, self.variables, self._existentialVariables)
  File "/projects/w3c/WWW/2000/10/swap/query.py", line 1184, in matchFormula
    nbs = item.tryDeepSearch(queue)
  File "/projects/w3c/WWW/2000/10/swap/query.py", line 1772, in tryDeepSearch
    nb = nb.bind(x, (s.quad[p], env2))
  File "/projects/w3c/WWW/2000/10/swap/term.py", line 121, in newBinding
    retVal = Env(self, {var: val})
  File "/projects/w3c/WWW/2000/10/swap/term.py", line 99, in __init__
    for k, (a,b) in self.iteritems():
TypeError: unpack non-sequence

Much (but not all) of this data is public. If you need the actual
sources to find the bug, let me know and I'll see what I can do.

                                        Be seeing you,

Norman Walsh <ndw@nwalsh.com> | Everything should be made as simple as
http://nwalsh.com/            | possible, but no simpler.

Received on Tuesday, 27 March 2007 17:57:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:52:01 UTC