Jul-16-2021, 02:51 PM
(Jul-16-2021, 02:24 PM)deanhystad Wrote: You need to wrap code inside python tags (use Insert Python button).
There is not a syntax error in this line if you are using Python 3.5 or newer, but it is in Python 2.7. The ": str" is a type hint. It adds information to the function signature that can be used by some tools to help with autocompletion or code analysis. Type hints like this are relatively new to Python. You have a choice of installing a newer version of Python or doing A LOT of editing. Many things have changed since Python 2.7
I just looked at the package description and it mentions the 3.5+ requirement.
Quote:Open Sound Control server and client implementations in pure python (3.5+).
If your Python 3 version is 3.5 or newer, make sure you are running the code using python3 and not python.
Thank you. I was reading and research my error and found out that python3 did not work because of my xcode is out of date so I need to upgrade it. Anyway, your comment is a confirmation that I need to use python3 thank you!