Forum Archive

Missing Module

C0deH4cker

It appears that the C-based module _elementtree is missing. I know there is a pure Python version of this module available, but I'd prefer to use the C module for speed purposes. Here's the attempted import and resulting error:

>>> from xml.etree.cElementTree import *
Traceback (most recent call last):
  File "", line 1, in 
  File "/var/mobile/Applications/3B311422-DFF2-4138-9B78-0D0D33BFFF14/Pythonista.app/pylib/xml/etree/cElementTree.py", line 3, in 
    from _elementtree import *
ImportError: No module named _elementtree

Thank you!

Edit:
Looks like there's another module or two missing:

from xml.parsers import expat #nope
import pyexpat as expat #nope
omz

Thanks! I was aware of the missing pyexpat, but hadn't noticed _elementtree. Will both be fixed in the next update.