ok, thx
--
http://mail.python.org/mailman/listinfo/python-list
Rick, thanks. Based on your clue I checked, and it seems those Amara
packages are not being built rightly. I'll look to get those packages
fixed and updated tomorrow.
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.nethttp://fourthought.com
h
come on guys, the post isnt dead yet
--
http://mail.python.org/mailman/listinfo/python-list
Suggestions maybe?
--
http://mail.python.org/mailman/listinfo/python-list
you might be on to something
>>> from amara import domtools
>>> print domtools.__file__
C:\Python23\lib\site-packages\amara\domtools.pyc
>>>
--
http://mail.python.org/mailman/listinfo/python-list
"""
But anyway, i get this...
>>> import amara
>>>from amara import domtools
>>> print domtools.py
Traceback (most recent call last):
File "", line 1, in ?
NameError: name 'domtools' is not defined
"""
Sheesh! That right after waking up. And it shows :-)
Should have been "print domtools.__fi
Umm, yea, u definatly hijacked my thread. If you didnt mean to then
dont
But anyway, i get this...
>>> import amara
>>>from amara import domtools
>>> print domtools.py
Traceback (most recent call last):
File "", line 1, in ?
NameError: name 'domtools' is not defined
>>>
suggestions?
--
h
[EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
> """
> Not wanting to hijack this thread, but it got me interested in
> installing amara. I downloaded
> Amara-allinone-1.0.win32-py2.4.exe and ran it. It professed that
> the installation directory was to be
> D:\Python24\Lib\site-packages\ ..
"""
Not wanting to hijack this thread, but it got me interested in
installing amara. I downloaded Amara-allinone-1.0.win32-py2.4.exe
and ran it. It professed that the installation directory was to be
D:\Python24\Lib\site-packages\ ... but it placed FT and amara in D:
\Python24\Python24\Lib\site-pac
[EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
> """
> Spoke too soon, i get this error when running amara in
> ActivePython
>
import amara
amara.parse("http://www.digg.com/rss/index.xml";)
>
> Traceback (most recent call last):
> File "", line 1, in ?
> File "C:\Python23\Lib
"""
>>> import amara
>>> print dir(amara)
['__builtins__', '__doc__', '__file__', '__name__', '__path__',
'__version__', 'binderytools', 'os', 'parse']
"""
So it's not able to load domtools. What do you get trying
from amara import domtools
print domtools.py
--
Uche Ogbuji
when putting excactly what you got, i got
>>> python -c "import amara; print dir(amara)"
Traceback ( File "", line 1
python -c "import amara; print dir(amara)"
^
SyntaxError: invalid syntax
when doing it seperately, i got>
>>> import amara
>>> pri
"""
Spoke too soon, i get this error when running amara in ActivePython
>>> import amara
>>> amara.parse("http://www.digg.com/rss/index.xml";)
Traceback (most recent call last):
File "", line 1, in ?
File "C:\Python23\Lib\site-packages\amara\__init__.py", line 50, in
parse
if IsXml(source
Spoke too soon, i get this error when running amara in ActivePython
>>> import amara
>>> amara.parse("http://www.digg.com/rss/index.xml";)
Traceback (most recent call last):
File "", line 1, in ?
File "C:\Python23\Lib\site-packages\amara\__init__.py", line 50, in
parse
if IsXml(source):
Na
h, i just tryed the same thing earlier today and it didnt work, but
now it does, i downloaded the standalone package and now it works in
activepython when it didnt before and i tryed the same thing.
And yes, last time i did type python setup.py install.
Thx anyway.
--
http://mail.python.org
"""
No, when i said
"As far as it should work since their both transparent, umm, well its
not."
I meant that only mine isnt, maybe urs is but for some reason it isnt.
And you said amara works fine for you, ok, then could you tell me what
package to install...
I have installed Amara 1.1.6 for Pyt
No, when i said
"As far as it should work since their both transparent, umm, well its
not."
I meant that only mine isnt, maybe urs is but for some reason it isnt.
And you said amara works fine for you, ok, then could you tell me what
package to install...
I have installed Amara 1.1.6 for Python
ActivePython is same as Standard Python distribution but with a few
extras.
"As far as it should work since their both transparent, umm, well its
not."
Why do you think it is not transparent? Did you try installing it on
both?
I have ActivePython 2.4 here and it loads amara fine.
"
Traceback (mo
Ummm, my error conditions.
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 ([EMAIL PROTECTED]) -
see 'Help/About PythonWin' for further copyright information.
>>> import amara
Traceback (most recent call last):
File
Ok, im convinced to that i need to get Amara, I just installed 4Suite
and now installed Amara. Still doesnt work because like i said before,
i use ActivePython from
http://www.activestate.com/Products/ActivePython/
And the requirements for Amara is Python 2.4 so Thats where we have
a problem,
"""
Ok, i am now understanding some of parseing and how to use it and
nodes, things like that. But say i wanted to take the title of
http://www.digg.com/rss/index.xml
and XMLTramp seemed the most simple to understand.
would the path be something like this?
import xmltramp
rssDigg = xmltramp.loa
some great suggestions.
Ok, i am now understanding some of parseing and how to use it and
nodes, things like that. But say i wanted to take the title of
http://www.digg.com/rss/index.xml
and XMLTramp seemed the most simple to understand.
would the path be something like this?
import xmltramp
rss
Jay:
"""
K, I have this XML doc, i dont know much about XML, but what i want
to do is take certain parts of the XML doc, such as blah
and take just that and put onto a text doc. Then same thing
doe the part. Thats about it, i checked out some of the xml
modules but dont understand how to use th
On Sat, 10 Dec 2005 21:12:04 -0800, Jay wrote:
> OK, I have this XML doc, i dont know much about XML, but what i want
> to do is take certain parts of the XML doc
the most simple module I've found to do that is xmltramp from
http://www.aaronsw.com/2002/xmltramp/
for example:
#!/usr/bin/env pyt
Jay wrote:
> Yes i know, i did check out a couple but i could never understand it.
> They were confusing for me and i wasnt hoping for a full typed
> tutorial, just like some help with excactly wat im trying to do, not
> the whole module... but watever, Thx alot for the feedbak.
>
Well I don't wan
Look at the standard python library reference
http://docs.python.org/lib/dom-example.html
the handleSlide function almost does what you want, except that you should use
'parse' and not 'parseString'.
Original Message
From: "Jay" <[EMAIL PROTECTED]>
To:
Subject: Re:Using XML w
Yes i know, i did check out a couple but i could never understand it.
They were confusing for me and i wasnt hoping for a full typed
tutorial, just like some help with excactly wat im trying to do, not
the whole module... but watever, Thx alot for the feedbak.
--
http://mail.python.org/mailman/li
XPath is the least painful way of doing it.
Here are some samples with various libraries for XPath
http://www.oreillynet.com/pub/wlg/6225
Read XPath basics here
http://www.w3schools.com/xpath/default.asp
It is not practical and perhaps not polite to expect people write
tutorials just for you and
28 matches
Mail list logo