Hi List. I posted this message at noisepage's pd-everywhere forum but untill now there is no answer, so I am posting it to the list, maybe someone has some idea.
I want to use fiddle~, so I went to the extra folder, compiled it, (make fiddle~) then I grabbed fiddle~.pd_linux and copy it to “/usr/local/lib/python2.6/dist-packages/” (where pylibpd is). After this I tried to run the patch but fiddle isn’t working. I then opened the file pylibpd.py and noticed that there is a definition to add a search path: “”"def libpd_add_to_search_path(*args): return _pylibpd.libpd_add_to_search_path(*args) libpd_add_to_search_path = _pylibpd.libpd_add_to_search_path”"”.
I added this line to my echo.py derived script: libpd_add_to_search_path(‘/usr/local/lib/python2.6/dist-packages/’), and still doesn’t work.
What is that i am making wrong? Anyone has some insight: python script pasted in. http://pastebin.ubuntu.com/566725/ Patch attached.
thanks for any help Ricardo Lameiro -- Fagote / Contrafagote Bassoon / Contra-bassoon http://myspace.com/ricardolameiro
Yes, that was my first try.
2011/2/17 patrick puredata@11h11.com:
I want to use fiddle~, so I went to the extra folder, compiled it, (make fiddle~) then I grabbed fiddle~.pd_linux and copy it to “/usr/local/lib/python2.6/dist-packages/” (where pylibpd is).
did you try to put fiddle~.pd_linux where octa.pd is?
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Nothing like that, just an error related to the absence of jack server running.
"""" python octa.py bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) Cannot connect to server socket err = No such file or directory Cannot connect to server socket jack server is not running or cannot be started """"
This is all it outputs on the console
2011/2/17 patrick puredata@11h11.com:
any output in the terminal?
maybe hooking print: t_libpd_printhook libpd_printhook
Well, it seems it was related to the compiling of fiddle~. it wasnt linking to pylib.so. Peter Brinkmann just post a work around at http://noisepages.com/groups/pd-everywhere/forum/topic/python-libpd-external...
time to test it out :D
2011/2/17 Ricardo Lameiro ricardolameiro@gmail.com:
Nothing like that, just an error related to the absence of jack server running.
"""" python octa.py bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) bt_audio_service_open: connect() failed: Connection refused (111) Cannot connect to server socket err = No such file or directory Cannot connect to server socket jack server is not running or cannot be started """"
This is all it outputs on the console
2011/2/17 patrick puredata@11h11.com:
any output in the terminal?
maybe hooking print: t_libpd_printhook libpd_printhook
-- Fagote / Contrafagote Bassoon / Contra-bassoon http://myspace.com/ricardolameiro
Confirmed, i can reproduce your problem. No error, but fiddle doesn't work/load... I don't have this problem with my C++ GUI binding, i can even load Gem.pd_linux (i had to use /-Wl,–export-dynamic -Wl,–whole-archive ./libpd.a -Wl,–no-whole-archive)
Yeah, I checked out you page on libpd... it was it that push me to try the python stuff. It is working now. I do need to have the external on the same folder of the patch/script
2011/2/17 patrick puredata@11h11.com:
Confirmed, i can reproduce your problem. No error, but fiddle doesn't work/load... I don't have this problem with my C++ GUI binding, i can even load Gem.pd_linux (i had to use /-Wl,–export-dynamic -Wl,–whole-archive ./libpd.a -Wl,–no-whole-archive)