-
Notifications
You must be signed in to change notification settings - Fork 224
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
Runtime error on Python 3 in NMEA Stream Reader #87
Comments
|
Hi Tom,
I found the error in the pynmea2 code. in the file stream.py, there is one
statement that can't work in Python3 because it mix str and bytes. I have
made the correction and some simplification in the file.
I can propose that to be posted to the main.
Rgds
Laurent Carré
http://sterwen.typepad.com
Le dim. 12 mai 2019 à 22:50, Tom Flanagan <notifications@github.com> a
écrit :
… Closed #87 <#87>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#87 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AHHVXVLTVREOMIM52YUNF2LPVB7JBANCNFSM4HGXV6XA>
.
|
Hello, The bug still exist line 48 in the current version |
Actually, |
I think |
<class 'bytes'> <class 'str'>
Traceback (most recent call last):
File "GPS_nmea.py", line 112, in
main()
File "GPS_nmea.py", line 106, in main
pos=nmeatty.getNMEAPosition()
File "GPS_nmea.py", line 69, in getNMEAPosition
for msg in self._reader.next():
File "/usr/local/lib/python3.4/dist-packages/pynmea2/stream.py", line 49, in next
lines = (self.buffer + data).split('\n')
TypeError: Can't convert 'bytes' object to str implicitly
The text was updated successfully, but these errors were encountered: