Tanganelli / CoAPthon

CoAPthon is a python library to the CoAP protocol aligned with the RFC
MIT License
224 stars 131 forks source link

not compatible with Python 3 (print syntax)? #164

Open wivaku opened 4 years ago

wivaku commented 4 years ago
pip --version
pip 20.2.2 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)
pip install CoAPthon
Processing ./Library/Caches/pip/wheels/c6/e2/84/ff63650286b3a63b0c2b29dd4f0f3504ba39d9ba1302fde4ba/CoAPthon-4.0.2-py3-none-any.whl
Installing collected packages: CoAPthon
Successfully installed CoAPthon-4.0.2
coapserver.py
  File "/usr/local/bin/coapserver.py", line 29
    print "CoAP Server start on " + host + ":" + str(port)
          ^
SyntaxError: invalid syntax
fpalmese commented 4 years ago

They made a specific version for python3. It's called CoAPthon3 check it out here: https://github.com/Tanganelli/CoAPthon3