Skip to content
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: 'ascii' codec can't decode byte 0xd6 in position 0: ordinal not in range(128) #12

Closed
sjtuztq opened this issue Nov 29, 2020 · 11 comments
Labels
bug Something isn't working

Comments

@sjtuztq
Copy link

sjtuztq commented Nov 29, 2020

rec.load(fileCFG,fileDAT)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xd6 in position 0: ordinal not in range(128)

@dparrini
Copy link
Owner

dparrini commented Dec 13, 2020

Hi @sjtuztq , I pushed a commit addressing this issue:

a1026ad

Let me know if it worked for you. In case it don't fix the issue, please provide an anonymized version of the fileCFG file, keeping any special character there. Thanks

@LFBJC
Copy link
Contributor

LFBJC commented Aug 17, 2021

@dparrini I have a similar issue, when using the version 0.0.4 it raises a "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe7 in position 7: invalid continuation byte", so I had to downgrade to version 0.0.3 in order to read some of the oscillographies, but the version 0.0.3 doesn't read all oscillographies because of some issues with this version

@dparrini
Copy link
Owner

Hi @LFBJC I'll take a look into this, thanks for bringing this up. I'm updating the code to handle issue #18 and hope I can fix this one as well.

@dparrini dparrini added the bug Something isn't working label Aug 17, 2021
@dparrini dparrini pinned this issue Aug 17, 2021
@LFBJC
Copy link
Contributor

LFBJC commented Aug 17, 2021

I think something that may help is that in my case I could read these oscillographies on version 0.0.3, I think it's because of this commit what issue where you trying to address when you did this?

@LFBJC
Copy link
Contributor

LFBJC commented Aug 18, 2021

@dparrini still the same problem. (note: I copied the comtrade file from this repo and pasted on the comtrade file of my pc as I couldn't install the changes using pip)
image

@dparrini
Copy link
Owner

Hi @LFBJC , I pushed a new commit fb09c66 with what I think is a fix to the problem you're having. I didn't release a version in pip with this new commit yet but will if it solves your issue.
You can repeat the test you did by downloading the most recent comtrade.py file.

Let me know if it works. Thanks for your patience.
/David

@LFBJC
Copy link
Contributor

LFBJC commented Aug 19, 2021

Hi @dparrini I tried again, it raised another exception, but I think you're getting there.
image

@LFBJC
Copy link
Contributor

LFBJC commented Aug 19, 2021

I did a pull request

@dparrini
Copy link
Owner

Great @LFBJC , thank you for your support on this!

@LFBJC
Copy link
Contributor

LFBJC commented Aug 20, 2021

@dparrini no worries! tell me when you release a version in pip

@dparrini
Copy link
Owner

@LFBJC just published it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants