-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError #4
Comments
This is a bug in the upstream pya2l library which I need to file and try to
have resolved. Replacing all non ASCII characters with ASCII in the A2L
using a text editor will help for now. Next you’ll probably have issues
with another pya2l bug involving name fields and //=, recommend replacing
all instances of //= with blanks. And then you’ll probably be able to get
an a2ldb generated.
…On Sun, Sep 5, 2021 at 2:40 AM TudorTuning ***@***.***> wrote:
I get a similar error message with all a2l files I have tested. What am I
doing wrong?
$ python3 a2l2xdf.py sa.a2l a2l2xdf.csv
Traceback (most recent call last):
File "a2l2xdf.py", line 15, in <module>
db.open_existing(argv[1]) if path.exists(f"{argv[1]}db") else db.import_a2l(argv[1])
File "/home/chris/.local/lib/python3.7/site-packages/pya2l/__init__.py", line 115, in import_a2l
prepro_result = prepro.process(self._a2lfn, encoding = detect_encoding(self._a2lfn))
File "/home/chris/.local/lib/python3.7/site-packages/pya2l/preprocessor.py", line 160, in process
data = self._process_file(file_name, join_lines = True, encoding = encoding)
File "/home/chris/.local/lib/python3.7/site-packages/pya2l/preprocessor.py", line 173, in _process_file
for num, line in enumerate(f_obj, 1):
File "/usr/lib/python3.7/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 7497: ordinal not in range(128)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABTO2NL2OGJHBEOH4YPJYDUAMUHPANCNFSM5DOSSP5A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get a similar error message with all a2l files I have tested. What am I doing wrong?
The text was updated successfully, but these errors were encountered: