OS X Elementtree Error (build error?)
#1
Trying the latest available MacOS build with PR 16616 (this is the Python 3 integration, yes?), to try to help debug Skin Shortcuts/Python 3 bugs. The error I'm getting isn't one I'm familiar with, but a quick Google - though the results I clicked through were all related to Python 2.x - suggest this is an error with compilation configuration...

The error as follows:

Code:
2019-08-29 20:45:59.845 T:123145355706368   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'ImportError'>
                                            Error Contents: No module named expat; use SimpleXMLTreeBuilder instead
                                            Traceback (most recent call last):
                                              File "/Users/andymorton/Desktop/Kodi.app/Contents/Libraries/lib/python3.7/xml/etree/ElementTree.py", line 1454, in __init__
                                                from xml.parsers import expat
                                              File "/Users/andymorton/Desktop/Kodi.app/Contents/Libraries/lib/python3.7/xml/parsers/expat.py", line 4, in <module>
                                                from pyexpat import *
                                            ModuleNotFoundError: No module named 'pyexpat'
                                            
                                            During handling of the above exception, another exception occurred:
                                            
                                            Traceback (most recent call last):
                                              File "/Users/andymorton/Desktop/Kodi.app/Contents/Libraries/lib/python3.7/xml/etree/ElementTree.py", line 1457, in __init__
                                                import pyexpat as expat
                                            ModuleNotFoundError: No module named 'pyexpat'
                                            
                                            During handling of the above exception, another exception occurred:
                                            
                                            Traceback (most recent call last):
                                              File "/Users/andymorton/Library/Application Support/Kodi/addons/script.skinshortcuts/default.py", line 432, in <module>
                                                Main()
                                              File "/Users/andymorton/Library/Application Support/Kodi/addons/script.skinshortcuts/default.py", line 89, in __init__
                                                XML.buildMenu( self.MENUID, self.GROUP, self.LEVELS, self.MODE, self.OPTIONS, self.MINITEMS )
                                              File "/Users/andymorton/Library/Application Support/Kodi/addons/script.skinshortcuts/resources/lib/xmlfunctions.py", line 74, in buildMenu
                                                tree = xmltree.fromstring( f.read() )
                                              File "/Users/andymorton/Desktop/Kodi.app/Contents/Libraries/lib/python3.7/xml/etree/ElementTree.py", line 1314, in XML
                                                parser = XMLParser(target=TreeBuilder())
                                              File "/Users/andymorton/Desktop/Kodi.app/Contents/Libraries/lib/python3.7/xml/etree/ElementTree.py", line 1460, in __init__
                                                "No module named expat; use SimpleXMLTreeBuilder instead"
                                            ImportError: No module named expat; use SimpleXMLTreeBuilder instead
                                            -->End of Python script error report<--

The relevant import line

Code:
import xml.etree.ElementTree as xmltree

With the full log available at https://pastebin.com/xnn9mwbP
Reply
#2
I've fixed that yesterday, but haven't triggered a new build. Now the current version is available in the test-builds folder.
Reply
#3
Thanks Rechi. Updated build is working perfectly.
Reply

Logout Mark Read Team Forum Stats Members Help
Elementtree Error (build error?)0