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

python3 and linux compatibility #5

Merged
merged 1 commit into from
Sep 14, 2015
Merged

Conversation

sibbi77
Copy link
Contributor

@sibbi77 sibbi77 commented Sep 9, 2015

No description provided.

@Holoratte
Copy link
Owner

Dear Sebastian,

I get the following error when I want to check battery settings (only for this query):

Exception in thread Thread-2:
Traceback (most recent call last):
File "C:\Python27\lib\threading.py", line 810, in __bootstrap_inner
self.run()
File "C:\Python27\lib\threading.py", line 763, in run
self.__target(_self.__args, *_self.__kwargs)
File "\RT-N56U-2\ArduMower\ArdumowerDK\ArdumowerDK.py", line 1154, in receiveThread
msg += mower.readline().decode('ASCII')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 43: ordinal not in range(128)

do we use some special characters or is it only me? need to check...

Best

Christian

@sibbi77
Copy link
Contributor Author

sibbi77 commented Sep 10, 2015

Hi,

hmm, the spec sais, it is likely UTF-8 encoded, with raw data encoding restricted to US-ASCII.
I'll need to change the ASCII decoder into a UTF-8 decoder. I'll update the pull request at the weekend.

Sebastian

@Holoratte
Copy link
Owner

It is just me. I use " °C " for the temperature sensor in the battery...

Holoratte added a commit that referenced this pull request Sep 14, 2015
python3 and linux compatibility
@Holoratte Holoratte merged commit 1627d2b into Holoratte:master Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants