ampledata / aprs

Python APRS Module
https://github.com/ampledata/aprs
Other
95 stars 53 forks source link

Trying your send example throws an error #7

Closed webbermr closed 7 years ago

webbermr commented 8 years ago

Hi, I'm new to Python so I could be doing something wrong. I used your example replacing with my callsign and password and get the following error:

C:\Users\Mark\AppData\Local\Programs\Python\Python35-32>python aprs1.py 2016-02-04 11:55:23,764 INFO aprs.classes.connect:63 - Connected to server=rotat e.aprs.net port=14580 2016-02-04 11:55:23,764 INFO aprs.classes.connect:63 - Connected to server=rotat e.aprs.net port=14580 Traceback (most recent call last): File "aprs1.py", line 4, in a.connect() File "C:\Users\Mark\AppData\Local\Programs\Python\Python35-32\lib\site-package s\aprs\classes.py", line 65, in connect self.aprsis_sock.sendall(full_auth + '\n\r') TypeError: a bytes-like object is required, not 'str'

ampledata commented 8 years ago

would you mind pasting in the exact code you're trying to execute?