Author Topic: (solved) Missing Python Library (rc12)?  (Read 1527 times)

alexei

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://
(solved) Missing Python Library (rc12)?
« 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
« Last Edit: October 30, 2005, 11:32:22 pm by alexei »
C3100 RC12

alexei

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://
(solved) Missing Python Library (rc12)?
« Reply #1 on: October 30, 2005, 11:37:22 pm »
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
C3100 RC12

sashz

  • Sr. Member
  • ****
  • Posts: 388
    • View Profile
    • http://
(solved) Missing Python Library (rc12)?
« Reply #2 on: October 31, 2005, 12:22:19 am »
Quote
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