W3C home > Mailing lists > Public > public-cwm-talk@w3.org > April to June 2005

Re: cwm on linux/darwin

From: Yosi Scharf <syosi@MIT.EDU>
Date: Fri, 03 Jun 2005 00:57:18 -0400
Message-ID: <429FE32E.3080401@mit.edu>
To: public-cwm-talk@w3.org

>
>
>I hope you'll forgive a naive question. My computer experience is neither 
>wide nor deep, but I had little trouble running cwm on a linux box -- 
>hooray! However, I get some inexplicable behavior running the same thing 
>on on the same files on my mac (OS X, 10.2.8). Here cwm has no difficulty 
>with things like cwm --n3 foo.n3 --rdf, but when I try cwm --rdf bar.rdf, 
>I get the following errors:
>
>jjc% cwm --rdf content.rdf
>Traceback (most recent call last):
>   File "/Users/jjc/Desktop/cwm-1.0.0/cwm.py", line 650, in ?
>     doCommand()
>   File "/Users/jjc/Desktop/cwm-1.0.0/cwm.py", line 426, in doCommand
>     referer="")
>   File "/Users/jjc/Desktop/cwm-1.0.0/swap/webAccess.py", line 151, in load
>     p = rdfxml.rdfxmlparser(store, F,  thisDoc=asIfFrom, flags=flags, 
>parser=parser)
>   File "/Users/jjc/Desktop/cwm-1.0.0/swap/rdfxml.py", line 16, in 
>rdfxmlparser
>     import sax2rdf
>   File "/Users/jjc/Desktop/cwm-1.0.0/swap/sax2rdf.py", line 99, in ?
>     nodeElementExceptions[RDF_NS_URI + a] = True
>NameError: name 'True' is not defined
>
>Can someone offer a clue as to what I'm missing?
>

What version of python are you running? What does

python -c 'import sys
print sys.version_info'

give you?

Before python 2.3, True and False  did not exist

Yosi Scharf
Received on Friday, 3 June 2005 04:57:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:11:02 GMT