OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: alexei on October 23, 2005, 04:34:29 am
-
Hi, I've just upgraded from a 750 to a 3100 and I'm reinstalling things ...
tried to use pythons xml library, but I get an error that it can't find any parsers, any ideas as to which packages I'm missing?
I've installed expat_1.95.8_armv5tel.ipk and python-xml
i.e.
zaurus:~/bin>ls -l /usr/lib/libexpat.so*
lrwxrwxrwx 1 root root 17 Oct 23 10:58 /usr/lib/libexpat.so -> libexpat.so.0.5.0
lrwxrwxrwx 1 root root 17 Oct 23 10:58 /usr/lib/libexpat.so.0 -> libexpat.so.0.5.0
-rwxr-xr-x 1 root root 114108 Oct 23 10:58 /usr/lib/libexpat.so.0.5.0
but the following script:
from xml.sax import make_parser
make_parser()
results in:
Traceback (most recent call last):
File "test_sax.py", line 4, in ?
make_parser(["xml.sax.expatreader"])
File "/usr/lib/python2.4/xml/sax/__init__.py", line 93, in make_parser
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
-
Hi,
there are two files that are missing from the python distribution:
urllib.py and urlparse.py (both should be in /usr/lib/python2.4/)
without these the xml stuff won't work and they don't seem to be available in any of the python ipks. As a quick solution just copy them across from any other machine and put them in /usr/lib/python2.4/ . At some point these should be added to one of the existing packages like python-xml or python-html
cheers,
Alexei
-
Hi,
there are two files that are missing from the python distribution:
urllib.py and urlparse.py (both should be in /usr/lib/python2.4/)
without these the xml stuff won't work and they don't seem to be available in any of the python ipks. As a quick solution just copy them across from any other machine and put them in /usr/lib/python2.4/ . At some point these should be added to one of the existing packages like python-xml or python-html
cheers,
Alexei
[div align=\"right\"][a href=\"index.php?act=findpost&pid=101417\"][{POST_SNAPBACK}][/a][/div]
thanks
added to python-html