ActivePython and Amara



Ok, i had this posted on the other thread "XML w/ Python" but it kinda
got off topic from the title to ill start a new thread. My question is
this...

the import of amara works in ActivePython...

PythonWin 2.3.5 (#62, Feb 9 2005, 16:17:08) [MSC v.1200 32 bit
(Intel)] on win32.
Portions Copyright 1994-2004 Mark Hammond (mhammond@xxxxxxxxxxxxxxxx) -
see 'Help/About PythonWin' for further copyright information.
>>> import amara

# the only problem is that when i try to parse a file

>>> amara.parse('htttp://www.digg.com/rss/index.xml')
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python23\lib\site-packages\amara\__init__.py", line 50, in
parse
if IsXml(source):
NameError: global name 'IsXml' is not defined

# So, someone else suggested i type

>>> import amara
>>> print dir(amara)

['__builtins__', '__doc__', '__file__', '__name__', '__path__',
'__version__', 'binderytools', 'os', 'parse']


# they told me that i didnt have
#Quote: So it's not able to load domtools.
What do you get trying
>>> from amara import domtools
>>> print print domtools.__file__

Then i got
you might be on to something....

>>> from amara import domtools
>>> print domtools.__file__
C:\Python23\lib\site-packages\amara\domtools.pyc


This is where i no longer got replies, how would i got about fixing
this?

.



Relevant Pages

  • ANN: Amara XML Toolkit 1.2.0.2
    ... Fix bindery bug with e.g. del html.head.title ... Amara XML Toolkit is a collection of Python tools for XML processing-- ...
    (comp.lang.python.announce)
  • ANN: Amara XML Toolkit 1.1.6
    ... Make most key functions available from the amara module ... Amara XML Toolkit is a collection of Python tools for XML processing-- ... * saxtools: set of tools to make SAX easier to use in Python ...
    (comp.lang.python.announce)
  • ANN: Amara XML Toolkit 1.0
    ... Amara from one package in one step. ... Amara XML Toolkit is a collection of Python tools for XML processing-- ... Amara DOM Tools goes even further. ...
    (comp.lang.python.announce)
  • Re: ActivePython and Amara
    ... i know much about python and i dont excactly need help ... i can post my program that i made without elementtree that used amara, ... had more advanced examples or the one module elementtree... ...
    (comp.lang.python)
  • Re: ActivePython and Amara
    ... i know much about python and i dont excactly need help ... i can post my program that i made without elementtree that used amara, ... had more advanced examples or the one module elementtree... ...
    (comp.lang.python)