I need to send messages from Python to Pure Data, so I followed this article. It was working fine until one day suddenly it stopped working. Pure Data doesn't receive anything anymore and I have tried this on Mac and Linux environment
I have uploaded script plus patch here: but a equivalent code is:
import os
os.system("echo '1;' | pdsend 3000")
and Puredata should receive the message with a simple netreceive 3000
Looks like Python and Pure Data can't find a path to communicate.
after i tried so change pdsend
with it's absoulute path as follow:
import os
os.system("echo '1;' | /Users/path_to_pure_data/PureData.app/Contents/Resources/bin/pdsend 3000")
it works.
at this point i don't know why Python doesn't automatically find it's path, and how to fix it.