Re: cwm TypeError

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: cwm TypeError

Tim Berners-Lee
Norm,

Does this still fail?  Yosi could not reproduce it without the files.
It does look like a nasty bug.
We might need the files.


Tim



FYI:

$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>
    doCommand()
  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,
                                          norm

-- 
Norman Walsh <[hidden email]> | Everything should be made as simple as
http://nwalsh.com/            | possible, but no simpler.



Reply | Threaded
Open this post in threaded view
|

Re: cwm TypeError

Norman Walsh-3
/ Tim Berners-Lee <[hidden email]> was heard to say:
| Does this still fail?  Yosi could not reproduce it without the files.
| It does look like a nasty bug.
| We might need the files.

Bah. I can't reconstruct it now. I'll make sure I build a proper set
of public use cases if it reoccurs.

                                        Be seeing you,
                                          norm

--
Norman Walsh
XML Standards Architect
Sun Microsystems, Inc.

attachment0 (191 bytes) Download Attachment