Skip to content

Reference to invalid character number: line 38, column 137 #5

Description

@Doofitator

When attempting to run the script, I get the following output:

[nemo@Sailfish ~]$ python sms_import.py --import sms-20181206090639.xml 
Traceback (most recent call last):
  File "sms_import.py", line 13, in <module>
    sms_list = parser.get_all_sms_in_sf_format()
  File "/home/nemo/sail_sms.py", line 31, in get_all_sms_in_sf_format
    xmldom = minidom.parse(self.xml_file)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1918, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile
    parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: reference to invalid character number: line 38, column 137

I don't know what xml.parsers.expat.ExpatError is, but I've played with Python before. If you don't want to / don't have time to fix it, could you at least point me in the right direction so I can try?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions