- From: David Booth <david@dbooth.org>
- Date: Mon, 28 Sep 2009 21:59:03 -0400
- To: public-cwm-bugs@w3.org
It looks like I'm having an installation problem that may be similar to what I reported in January 2008: http://lists.w3.org/Archives/Public/public-cwm-bugs/2008Jan/0002.html Per the README, I unpacked the tar file and did: cd test ; make post-install That initially failed because I don't have a command called python2.4 installed. (I'm on Ubuntu, and have python 2.5.2.) So I modified the Makefile to define 'P=python' instead of 'P=python2.4', and now it runs successfully through many of the tests, but fails on or after test 111/159. The error is: [[ 111/159 sparql/detailed.tests#t1001 sparql builtins from cwm Traceback (most recent call last): File "../cwm", line 750, in <module> doCommand() File "../cwm", line 617, in doCommand think(workingContext, mode=option_flags["think"]) File "/downloads/cwm/cwm-1.2.1/swap/query.py", line 88, in think return InferenceTask(knowledgeBase, ruleFormula, mode=mode, why=why, repeat=1).run() File "/downloads/cwm/cwm-1.2.1/swap/query.py", line 262, in run return self.runSmart() File "/downloads/cwm/cwm-1.2.1/swap/query.py", line 250, in runSmart total += cy.run() File "/downloads/cwm/cwm-1.2.1/swap/query.py", line 413, in run return rule.once() File "/downloads/cwm/cwm-1.2.1/swap/query.py", line 557, in once total = query.resolve() File "/downloads/cwm/cwm-1.2.1/swap/query.py", line 840, in resolve k = self.matchFormula(self.statements, self.variables, self._existentialVariables) File "/downloads/cwm/cwm-1.2.1/swap/query.py", line 1015, in matchFormula nbs = item.tryBuiltin(queue, bindings, evidence=evidence) File "/downloads/cwm/cwm-1.2.1/swap/query.py", line 1676, in tryBuiltin result = pred.evalObj(subj, BNone, BNone, proof, BNone) File "/downloads/cwm/cwm-1.2.1/swap/cwm_sparql.py", line 344, in evalObj F = self.store.load(inputURI, contentType="x-application/sparql") File "/downloads/cwm/cwm-1.2.1/swap/llyn.py", line 1609, in load referer=referer, why=why) File "/downloads/cwm/cwm-1.2.1/swap/webAccess.py", line 195, in load p = sparql_parser.N3Parser(StringIO.StringIO(buffer), sparql_parser.branches, convertor) File "/downloads/cwm/cwm-1.2.1/swap/sparql/sparql_parser.py", line 47, in __init__ lexer = sparql_tokens.Lexer() File "/downloads/cwm/cwm-1.2.1/swap/sparql/sparql_tokens.py", line 272, in __init__ self.fixTokens() File "/downloads/cwm/cwm-1.2.1/swap/sparql/sparql_tokens.py", line 314, in fixTokens importTokens() File "/downloads/cwm/cwm-1.2.1/swap/sparql/sparql_tokens.py", line 31, in importTokens from sparql_tokens_table import tokens as ts, regexps as rs File "/downloads/cwm/cwm-1.2.1/swap/sparql/sparql_tokens_table.py", line 90, in <module> u'c_http://www.w3.org/2000/10/swap/grammar/sparql#VAR2': re.compile(u'\\$[A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d \u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff \uf900-\ufdcf\ufdf0-\ufffd\U00010000-\U000effff][_0-9A-Za-z\xb7\xc0-\xd6 \xd8-\xf6\xf8-\u02ff\u0300-\u036f\u0370-\u037d\u037f-\u1fff\u200c-\u200d \u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf \ufdf0-\ufffd\U00010000-\U000effff]*', re.I), File "/usr/local/lib/python2.5/re.py", line 188, in compile return _compile(pattern, flags) File "/usr/local/lib/python2.5/re.py", line 241, in _compile raise error, v # invalid expression sre_constants.error: bad character range Files differ, result= 256 # If this is OK, cp ,temp/sparql_query1_result.rl sparql/query1_result.rl ######### Differences from reference output: --- sparql/query1_result.rl 2007-11-16 10:49:31.000000000 -0500 +++ ,temp/sparql_query1_result.rl 2009-09-28 21:37:02.748026548 -0400 @@ -1,58 +0,0 @@ -<?xml version="1.0"?> - - -<sparql xmlns="http://www.w3.org/2005/sparql-results#"> - - <head> - <variable name="friend"/> - <variable name="blurb"/> - <variable name="age"/> - <variable name="mbox"/> - <variable name="name"/> - <variable name="hpage"/> - <variable name="x"/> - </head> - - <results> - <result> - <binding name="friend"> - <bnode>http://example.com/swap/test/run#_bnode_0</bnode> - </binding> - <binding name="blurb"> - <literal datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#XMLLiteral"><p xmlns="http://www.w3.org/1999/xhtml">My name is <em>Alice</em></p></literal> - </binding> - <binding name="mbox"> - <literal></literal> - </binding> - <binding name="name"> - <literal>Alice</literal> - </binding> - <binding name="hpage"> - <uri>http://work.example.org/alice/</uri> - </binding> - <binding name="x"> - <bnode>http://example.com/swap/test/run#_bnode_1</bnode> - </binding> - </result> - <result> - <binding name="friend"> - <bnode>http://example.com/swap/test/run#_bnode_2</bnode> - </binding> - <binding name="age"> - <literal datatype="http://www.w3.org/2001/XMLSchema#integer">30</literal> - </binding> - <binding name="mbox"> - <uri>mailto:bob@work.example.org</uri> - </binding> - <binding name="name"> - <literal xml:lang="en">Bob</literal> - </binding> - <binding name="hpage"> - <uri>http://work.example.org/bob/</uri> - </binding> - <binding name="x"> - <bnode>http://example.com/swap/test/run#_bnode_3</bnode> - </binding> - </result> - </results> -</sparql> ######### from normal case sparql_query1_result.rl: cwm -n3 sparql/sparql_builtin1.n3 --think --strings make: *** [post-install] Error 255 ]] P.S. The cwm-1.2.1 README file seems to be suspiciously out of date: [[ $Id: README,v 1.11 2005/11/21 22:19:31 vkolovsk Exp $ . . . == What's New In this Release (1.2.0) == ]] -- David Booth, Ph.D. Cleveland Clinic (contractor) Opinions expressed herein are those of the author and do not necessarily reflect those of Cleveland Clinic.
Received on Tuesday, 29 September 2009 02:41:34 UTC