Hey Everyone,
I hope this finds y'all well. I'm starting my first project with Python after taking an online venture through Code Academy for a better understanding of Python and learning to code. I have a need to get the sACN[E1.31] protocol from the network port on my machine into another program that I'm using. I've downloaded an sacn module from here: https://pypi.org/project/sacn/#history and have been kind of successful in importing the module into Cinema4D(C4D), but I'm noticing in the console that it's throwing errors for syntax. C4D is running python 2.7, but I don't know what the module was written in as it's probably about 2 years old. I can't see a way to upload screenshots or files here, so I'll try my bes to describe it.
From the source file:
This isn't a life or death thing, but it's certainly something that's making me stay up at night hahahaha!
I thank you for your time and hopefully I'll figure out what I'm missing as well!
P.S. Is there a place to post screenshots in this forum?
Cheers!
MattG
I hope this finds y'all well. I'm starting my first project with Python after taking an online venture through Code Academy for a better understanding of Python and learning to code. I have a need to get the sACN[E1.31] protocol from the network port on my machine into another program that I'm using. I've downloaded an sacn module from here: https://pypi.org/project/sacn/#history and have been kind of successful in importing the module into Cinema4D(C4D), but I'm noticing in the console that it's throwing errors for syntax. C4D is running python 2.7, but I don't know what the module was written in as it's probably about 2 years old. I can't see a way to upload screenshots or files here, so I'll try my bes to describe it.
From the source file:
class sACNreceiver: def __init__(self, bind_address: str = '0.0.0.0', bind_port: int = 5568):From the Console Inside C4D:
SyntaxError: invalid syntax Traceback (most recent call last): File "C:\Users\CAVMobile\AppData\Roaming\Maxon\Maxon Cinema 4D R21_64C2B3BD\library\scripts\sacn test.py", line 3, in <module> import sacn File "C:\Program Files\Maxon Cinema 4D R21\resource\modules\python\libs\python27\sacn\__init__.py", line 1, in <module> from sacn.receiver import sACNreceiver, LISTEN_ON_OPTIONS File "C:\Program Files\Maxon Cinema 4D R21\resource\modules\python\libs\python27\sacn\receiver.py", line 15 def __init__(self, bind_address: str = '0.0.0.0', bind_port: int = 5568): ^ SyntaxError: invalid syntaxNow, I'm not trying to troubleshoot C4D as that's a thread for their forum, but, I'm trying to see why there might be this syntax error being thrown.
This isn't a life or death thing, but it's certainly something that's making me stay up at night hahahaha!
I thank you for your time and hopefully I'll figure out what I'm missing as well!
P.S. Is there a place to post screenshots in this forum?
Cheers!
MattG