Skip to content

crash (unfortunately can't share input file) #3

@michaeladamkatz

Description

@michaeladamkatz
PS C:\Users\michael.katz\Documents\_scratch4> type .\epcra_tier2_data2.xml | ppxml
Traceback (most recent call last):
  File "C:\Users\michael.katz\AppData\Local\Programs\Python\Python310\Scripts\ppxml-script.py", line 33, in <module>
    sys.exit(load_entry_point('ppxml==0.1.0', 'console_scripts', 'ppxml')())
  File "C:\Users\michael.katz\AppData\Local\Programs\Python\Python310\lib\site-packages\ppxml\__init__.py", line 44, in main
    data = color_code(format_code(get_xml(data, args.xpath)))
  File "C:\Users\michael.katz\AppData\Local\Programs\Python\Python310\lib\site-packages\ppxml\__init__.py", line 25, in get_xml
    parser = etree.XMLParser(remove_blank_text=True, encoding=chardet.detect(xml)['encoding'])
  File "C:\Users\michael.katz\AppData\Local\Programs\Python\Python310\lib\site-packages\chardet\__init__.py", line 36, in detect
    raise TypeError('Expected object of type bytes or bytearray, got: '
TypeError: Expected object of type bytes or bytearray, got: <class 'str'>

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