ActivePython and Amara

Jay JMailone at gmail.com
Mon Dec 12 22:58:36 EST 2005


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 at skippinet.com.au) -
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?




More information about the Python-list mailing list