|
27 | 27 | from pandas.io.common import get_handle
|
28 | 28 | from pandas.io.xml import read_xml
|
29 | 29 |
|
30 |
| -""" |
31 |
| -CHECK LIST |
32 |
| -
|
33 |
| -[x] - ValueError: "Values for parser can only be lxml or etree." |
34 |
| -
|
35 |
| -etree |
36 |
| -[X] - ImportError: "lxml not found, please install or use the etree parser." |
37 |
| -[X] - TypeError: "expected str, bytes or os.PathLike object, not NoneType" |
38 |
| -[X] - ValueError: "Either element or attributes can be parsed not both." |
39 |
| -[X] - ValueError: "xpath does not return any nodes..." |
40 |
| -[X] - SyntaxError: "You have used an incorrect or unsupported XPath" |
41 |
| -[X] - ValueError: "names does not match length of child elements in xpath." |
42 |
| -[X] - TypeError: "...is not a valid type for names" |
43 |
| -[X] - ValueError: "To use stylesheet, you need lxml installed..." |
44 |
| -[] - URLError: (GENERAL ERROR WITH HTTPError AS SUBCLASS) |
45 |
| -[X] - HTTPError: "HTTP Error 404: Not Found" |
46 |
| -[] - OSError: (GENERAL ERROR WITH FileNotFoundError AS SUBCLASS) |
47 |
| -[X] - FileNotFoundError: "No such file or directory" |
48 |
| -[] - ParseError (FAILSAFE CATCH ALL FOR VERY COMPLEX XML) |
49 |
| -[X] - UnicodeDecodeError: "'utf-8' codec can't decode byte 0xe9..." |
50 |
| -[X] - UnicodeError: "UTF-16 stream does not start with BOM" |
51 |
| -[X] - BadZipFile: "File is not a zip file" |
52 |
| -[X] - OSError: "Invalid data stream" |
53 |
| -[X] - LZMAError: "Input format not supported by decoder" |
54 |
| -[X] - ValueError: "Unrecognized compression type" |
55 |
| -[X] - PermissionError: "Forbidden" |
56 |
| -
|
57 |
| -lxml |
58 |
| -[X] - ValueError: "Either element or attributes can be parsed not both." |
59 |
| -[X] - AttributeError: "__enter__" |
60 |
| -[X] - XSLTApplyError: "Cannot resolve URI" |
61 |
| -[X] - XSLTParseError: "document is not a stylesheet" |
62 |
| -[X] - ValueError: "xpath does not return any nodes." |
63 |
| -[X] - XPathEvalError: "Invalid expression" |
64 |
| -[] - XPathSyntaxError: (OLD VERSION IN lxml FOR XPATH ERRORS) |
65 |
| -[X] - TypeError: "empty namespace prefix is not supported in XPath" |
66 |
| -[X] - ValueError: "names does not match length of child elements in xpath." |
67 |
| -[X] - TypeError: "...is not a valid type for names" |
68 |
| -[X] - LookupError: "unknown encoding" |
69 |
| -[] - URLError: (USUALLY DUE TO NETWORKING) |
70 |
| -[X - HTTPError: "HTTP Error 404: Not Found" |
71 |
| -[X] - OSError: "failed to load external entity" |
72 |
| -[X] - XMLSyntaxError: "Start tag expected, '<' not found" |
73 |
| -[] - ParserError: (FAILSAFE CATCH ALL FOR VERY COMPLEX XML |
74 |
| -[X] - ValueError: "Values for parser can only be lxml or etree." |
75 |
| -[X] - UnicodeDecodeError: "'utf-8' codec can't decode byte 0xe9..." |
76 |
| -[X] - UnicodeError: "UTF-16 stream does not start with BOM" |
77 |
| -[X] - BadZipFile: "File is not a zip file" |
78 |
| -[X] - OSError: "Invalid data stream" |
79 |
| -[X] - LZMAError: "Input format not supported by decoder" |
80 |
| -[X] - ValueError: "Unrecognized compression type" |
81 |
| -[X] - PermissionError: "Forbidden" |
82 |
| -""" |
| 30 | +# CHECK LIST |
| 31 | + |
| 32 | +# [x] - ValueError: "Values for parser can only be lxml or etree." |
| 33 | + |
| 34 | +# etree |
| 35 | +# [X] - ImportError: "lxml not found, please install or use the etree parser." |
| 36 | +# [X] - TypeError: "expected str, bytes or os.PathLike object, not NoneType" |
| 37 | +# [X] - ValueError: "Either element or attributes can be parsed not both." |
| 38 | +# [X] - ValueError: "xpath does not return any nodes..." |
| 39 | +# [X] - SyntaxError: "You have used an incorrect or unsupported XPath" |
| 40 | +# [X] - ValueError: "names does not match length of child elements in xpath." |
| 41 | +# [X] - TypeError: "...is not a valid type for names" |
| 42 | +# [X] - ValueError: "To use stylesheet, you need lxml installed..." |
| 43 | +# [] - URLError: (GENERAL ERROR WITH HTTPError AS SUBCLASS) |
| 44 | +# [X] - HTTPError: "HTTP Error 404: Not Found" |
| 45 | +# [] - OSError: (GENERAL ERROR WITH FileNotFoundError AS SUBCLASS) |
| 46 | +# [X] - FileNotFoundError: "No such file or directory" |
| 47 | +# [] - ParseError (FAILSAFE CATCH ALL FOR VERY COMPLEX XML) |
| 48 | +# [X] - UnicodeDecodeError: "'utf-8' codec can't decode byte 0xe9..." |
| 49 | +# [X] - UnicodeError: "UTF-16 stream does not start with BOM" |
| 50 | +# [X] - BadZipFile: "File is not a zip file" |
| 51 | +# [X] - OSError: "Invalid data stream" |
| 52 | +# [X] - LZMAError: "Input format not supported by decoder" |
| 53 | +# [X] - ValueError: "Unrecognized compression type" |
| 54 | +# [X] - PermissionError: "Forbidden" |
| 55 | + |
| 56 | +# lxml |
| 57 | +# [X] - ValueError: "Either element or attributes can be parsed not both." |
| 58 | +# [X] - AttributeError: "__enter__" |
| 59 | +# [X] - XSLTApplyError: "Cannot resolve URI" |
| 60 | +# [X] - XSLTParseError: "document is not a stylesheet" |
| 61 | +# [X] - ValueError: "xpath does not return any nodes." |
| 62 | +# [X] - XPathEvalError: "Invalid expression" |
| 63 | +# [] - XPathSyntaxError: (OLD VERSION IN lxml FOR XPATH ERRORS) |
| 64 | +# [X] - TypeError: "empty namespace prefix is not supported in XPath" |
| 65 | +# [X] - ValueError: "names does not match length of child elements in xpath." |
| 66 | +# [X] - TypeError: "...is not a valid type for names" |
| 67 | +# [X] - LookupError: "unknown encoding" |
| 68 | +# [] - URLError: (USUALLY DUE TO NETWORKING) |
| 69 | +# [X - HTTPError: "HTTP Error 404: Not Found" |
| 70 | +# [X] - OSError: "failed to load external entity" |
| 71 | +# [X] - XMLSyntaxError: "Start tag expected, '<' not found" |
| 72 | +# [] - ParserError: (FAILSAFE CATCH ALL FOR VERY COMPLEX XML |
| 73 | +# [X] - ValueError: "Values for parser can only be lxml or etree." |
| 74 | +# [X] - UnicodeDecodeError: "'utf-8' codec can't decode byte 0xe9..." |
| 75 | +# [X] - UnicodeError: "UTF-16 stream does not start with BOM" |
| 76 | +# [X] - BadZipFile: "File is not a zip file" |
| 77 | +# [X] - OSError: "Invalid data stream" |
| 78 | +# [X] - LZMAError: "Input format not supported by decoder" |
| 79 | +# [X] - ValueError: "Unrecognized compression type" |
| 80 | +# [X] - PermissionError: "Forbidden" |
83 | 81 |
|
84 | 82 | geom_df = DataFrame(
|
85 | 83 | {
|
|
0 commit comments