ActivePython and Amara

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jay

    #1

    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@skipp inet.com.au) -
    see 'Help/About PythonWin' for further copyright information.[color=blue][color=green][color=darkred]
    >>> import amara[/color][/color][/color]

    # the only problem is that when i try to parse a file
    [color=blue][color=green][color=darkred]
    >>> amara.parse('ht ttp://www.digg.com/rss/index.xml')[/color][/color][/color]
    Traceback (most recent call last):
    File "<interacti ve input>", line 1, in ?
    File "C:\Python23\li b\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
    [color=blue][color=green][color=darkred]
    >>> import amara
    >>> print dir(amara)[/color][/color][/color]

    ['__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[color=blue][color=green][color=darkred]
    >>> from amara import domtools
    >>> print print domtools.__file __[/color][/color][/color]

    Then i got
    you might be on to something....
    [color=blue][color=green][color=darkred]
    >>> from amara import domtools
    >>> print domtools.__file __[/color][/color][/color]
    C:\Python23\lib \site-packages\amara\ domtools.pyc


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

Working...