Re: Amara (XML) problem on Solaris

2006-01-01 Thread uche . ogbuji
Doru-Catalin Togea wrote: > import amara > > doc = amara.create_document() > doc.xml_append(doc.xml_create_element(u"units")) > > print "OK" > > On Windows XP Pro it runs like this: > > C:\owera\test\xaps2-test>python amara-test1.py > OK > > C:\owera\test\xaps2-test> > > On Solaris it runs like thi

Re: Amara (XML) problem on Solaris

2005-12-14 Thread Doru-Catalin Togea
On Wed, 14 Dec 2005, Alan Franzoni wrote: > Also, are you sure the code is correct? I've taken a peek at the Amara's > website, and the create_document() function seems to lie within the > binderytools module. I think the line should look like: > > depending on the way you imported the module, but

Re: Amara (XML) problem on Solaris

2005-12-13 Thread Alan Franzoni
Doru-Catalin Togea wrote: > AttributeError: 'module' object has no attribute 'create_document' > bash-2.03$ > > Any ideas what is going on? I would say it's a problem with the Amara installation on Solaris. I've never used it, but maybe it's a package from another source which acts a bit differen

Amara (XML) problem on Solaris

2005-12-13 Thread Doru-Catalin Togea
Hi! I have ActiveState Python 2.4.1 on Win XP Pro, with Amara 1.1.6. I have a script which works fine. I am trying to run the same script on a Solaris machine, with Python 2.4.2 and Amara 1.1.6. It gives me this error: bash-2.03$ python generateXML.py Traceback (most recent call last): File