Re: [PD] py/pyext
Hi Benoit, so you have loaded the external library successfully which is indicated by the banner ("py/pyext 0.2.1pre - python script objects" etcc) in the console and upon instantiation there's no further output than "pyext simple ex3 ... couldn't create"? That's strange, because if there's an error with Python, not being able to load a module (script) or having another problem, there would be an additional error message from Python (like "ImportError: No module named simple"). gr~~~ Am 04.10.2011 um 16:31 schrieb Benoît Pin: Hi all, I'm trying to use the py/pyext extra on OSX 10.7 with Pd-extended 0.42.5. I managed to instantiate [py] and [pym] objects, but not [pyext …]. I tried to open the demo patch "attr-1.pd" and the [pyext simple ex3] object is dashed in red, and the console prints "pyext simple ex3 ... couldn't create". I've found on archives that the "scripts" folder needs to be in the pd search path (and it is the case for me). I've also checked this "scripts" folder and it contains a simple.py module within a ex3 class. So, everything should be ok, it seems. Unfortunately, it still doesn't work. I guess that I'm missing some piece of information… Any help will be appreciated. Benoît Pin. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] py/pyext
Hi all, I'm trying to use the py/pyext extra on OSX 10.7 with Pd-extended 0.42.5. I managed to instantiate [py] and [pym] objects, but not [pyext …]. I tried to open the demo patch "attr-1.pd" and the [pyext simple ex3] object is dashed in red, and the console prints "pyext simple ex3 ... couldn't create". I've found on archives that the "scripts" folder needs to be in the pd search path (and it is the case for me). I've also checked this "scripts" folder and it contains a simple.py module within a ex3 class. So, everything should be ok, it seems. Unfortunately, it still doesn't work. I guess that I'm missing some piece of information… Any help will be appreciated. Benoît Pin. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] py/pyext: building on Ubuntu Lucid with Python 2.6 (and python in pd)
On Tue, Dec 7, 2010 at 12:21 PM, Lorenzo Sutton wrote: > Hi Husk, > > Husk 00 wrote: >> >> Hey Lorenzo, >> I know I'm not answering exactly to your question but from Thomas >> grill's site you can find a py.pd_linux binary build with python 2.6: >> http://g.org/ext/beta/linux/pd/py.pd_linux > > Thanks for the suggestion... I had downloaded that very file before trying > to compile, but I think it's using Python 2.5 because in Pd it gives an > error: > > libpython2.5.so.1.0: cannot open shared object file: No such file or > directory Are you sure is this the file you downloaded? It was upgraded some months ago and I tested just now and it works with python 2.6 (py.pd_linux revision 265: 79063, apr 16 2010) I use it in all my project and I'm also using a lucid machine. husk -- when Art become pratical we call it technology. When Technology become useless we call it Art www.estereotips.net ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] py/pyext: building on Ubuntu Lucid with Python 2.6 (and python in pd)
IOhannes m zmoelnig wrote: On 2010-12-07 11:14, Lorenzo Sutton wrote: Has anyone managed to do it successfully? I managed to build flext, but when I call the ../flext/build.sh script from within the pyext source dir it fails with the first error being to the fact m_pd.h is not found. I have pd-extended installed and thus m_pd.h lives in /usr/include/pdextended/ and this seems some trivial path problem, but I try something like adding INCPATH+=/usr/include/pdextended to your config.txt I tried, and I actually also spotted in file called buildsys/config-lnx-pd-gcc.txt under the flext directory PDPATH=/usr/local/src/pd which I changed to PDPATH=/usr/include/pdextended the build still complains about m_pd.h missing. :/ Lorenzo fgmadft IOhannes ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] py/pyext: building on Ubuntu Lucid with Python 2.6 (and python in pd)
Hey Lorenzo, I know I'm not answering exactly to your question but from Thomas grill's site you can find a py.pd_linux binary build with python 2.6: http://g.org/ext/beta/linux/pd/py.pd_linux I hope it helps you husk On Tue, Dec 7, 2010 at 11:14 AM, Lorenzo Sutton wrote: > Has anyone managed to do it successfully? > > I managed to build flext, but when I call the ../flext/build.sh script from > within the pyext source dir it fails with the first error being to the fact > m_pd.h is not found. > I have pd-extended installed and thus m_pd.h lives in > /usr/include/pdextended/ and this seems some trivial path problem, but I > really can't seem to find a simple way to add that dir to the build process > (build.sh seems to call another script but I can't figure out how everything > works out). > > Somewhat related to this, would it be possible to make py/pyext somewhat > more "python-minor-version-agnostic"? Sorry if the question seems naive, I > guess the build process actually links to the exact Python in the user's > system. > In general IMHO it would *really* be nice to be able to have an easy way to > hack up externals in python (I could do with even message-only ones) 'by > default' with a Pd-extended. > > Thanks, > Lorenzo. > > > ___ > Pd-list@iem.at mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list > > -- when Art become pratical we call it technology. When Technology become useless we call it Art www.estereotips.net ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] py/pyext: building on Ubuntu Lucid with Python 2.6 (and python in pd)
On 2010-12-07 11:14, Lorenzo Sutton wrote: > Has anyone managed to do it successfully? > > I managed to build flext, but when I call the ../flext/build.sh script > from within the pyext source dir it fails with the first error being to > the fact m_pd.h is not found. > I have pd-extended installed and thus m_pd.h lives in > /usr/include/pdextended/ and this seems some trivial path problem, but I try something like adding INCPATH+=/usr/include/pdextended to your config.txt fgmadft IOhannes smime.p7s Description: S/MIME Cryptographic Signature ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] py/pyext: building on Ubuntu Lucid with Python 2.6 (and python in pd)
Has anyone managed to do it successfully? I managed to build flext, but when I call the ../flext/build.sh script from within the pyext source dir it fails with the first error being to the fact m_pd.h is not found. I have pd-extended installed and thus m_pd.h lives in /usr/include/pdextended/ and this seems some trivial path problem, but I really can't seem to find a simple way to add that dir to the build process (build.sh seems to call another script but I can't figure out how everything works out). Somewhat related to this, would it be possible to make py/pyext somewhat more "python-minor-version-agnostic"? Sorry if the question seems naive, I guess the build process actually links to the exact Python in the user's system. In general IMHO it would *really* be nice to be able to have an easy way to hack up externals in python (I could do with even message-only ones) 'by default' with a Pd-extended. Thanks, Lorenzo. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Py/pyext binary for OS X 10.4?
Am 15.08.2008 um 17:14 schrieb Phil Stone: Hello, Sorry to revive an old thread (from last March), but the URL referred to by Thomas below no longer seems to work. Anybody have a working py/pyext binary for OS X 10.4? The one in the latest Pd-extended seems to have the compiled-by-10.5 problem, and won't load. There should be one (OSX 10.4, Python upgraded to 2.5) in http://g.org/ext/beta . Please note that i'm not providing all combinations of OS and Python versions. By the way, I'm in the process of switching my web pages for flext and the externals to http://puredata.info/Members/thomas ... i'll shortly make a redirection from the original pages. There's also an FAQ now which waits for submissions. gr~~~ smime.p7s Description: S/MIME cryptographic signature ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Py/pyext binary for OS X 10.4?
I had one... but didnt touch it for over half a year. So i dont really know if it is working. I remember that i didnt want to go through the flext build system, but at the end it wasnt actually that hard actually i see some py.pd_darwin in the pd-extended folder, but i guess they dont work Sorry Luigi Am 15.08.2008 um 23:14 schrieb Phil Stone: Hello, Sorry to revive an old thread (from last March), but the URL referred to by Thomas below no longer seems to work. Anybody have a working py/pyext binary for OS X 10.4? The one in the latest Pd-extended seems to have the compiled-by-10.5 problem, and won't load. Many thanks, Phil Stone In http://lists.puredata.info/pipermail/pd-list/2008-03/060118.html , Thomas Grill (gr at g.org) writes: Hey all, I had the chance to compile py on a 10.4 machine... the binary is in http://g.org/ext/beta/pd/osx. I hope it works for you. gr~~~ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list >---< Luigi Rensinghoff [EMAIL PROTECTED] skype:gigischinke ichat:gigicarlo ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] Py/pyext binary for OS X 10.4?
Hello, Sorry to revive an old thread (from last March), but the URL referred to by Thomas below no longer seems to work. Anybody have a working py/pyext binary for OS X 10.4? The one in the latest Pd-extended seems to have the compiled-by-10.5 problem, and won't load. Many thanks, Phil Stone In http://lists.puredata.info/pipermail/pd-list/2008-03/060118.html , Thomas Grill (gr at g.org) writes: > Hey all, > I had the chance to compile py on a 10.4 machine... the binary is in > http://g.org/ext/beta/pd/osx. I hope it works for you. > > gr~~~ ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] py/pyext
Thomas Grill wrote: > i guess it's in the archive many times already: You probably don't have > the script folder in your pd path. Great, thanks. Sorry for asking... -- peace, love & harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] py/pyext
Hi Tim, the patch path is always added tp the python path, probably exactly as it is in Nova. The scripts folder that comes with the Python package is separate from the patches though. greetings, Thomas Am 12.09.2007 um 11:31 schrieb Tim Blechmann: > hi thomas, > >> i guess it's in the archive many times already: You probably don't >> have the script folder in your pd path. > > i am not that familiar with the py/pyext internals, but what about > adding the path of the patch, that is instantiating the script, to the > python search paths temporarily? in nova this works fine and saves > many > headaches ... > > cheers, tim > > -- > [EMAIL PROTECTED]ICQ: 96771783 > http://tim.klingt.org > > Linux is like a wigwam: no windows, no gates, apache inside, stable. ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] py/pyext
hi thomas, > i guess it's in the archive many times already: You probably don't > have the script folder in your pd path. i am not that familiar with the py/pyext internals, but what about adding the path of the patch, that is instantiating the script, to the python search paths temporarily? in nova this works fine and saves many headaches ... cheers, tim -- [EMAIL PROTECTED]ICQ: 96771783 http://tim.klingt.org Linux is like a wigwam: no windows, no gates, apache inside, stable. signature.asc Description: This is a digitally signed message part ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] py/pyext
Hi Atte, i guess it's in the archive many times already: You probably don't have the script folder in your pd path. greetings, Thomas Am 12.09.2007 um 08:49 schrieb Atte André Jensen: > Hi > > I think I installed py/pyext allright, but it doesn't seem to work. > For > instance opening "pd/script-1.pd" in pd prints the following: > > Opened Alsa Client 128 in:1 out:1 > > > py/pyext 0.2.0 - python script objects > (C)2002-2005 Thomas Grill - http://g.org/ext > > using Python 2.4.4 (#1, Apr 5 2007, 20:09:06) > [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] > > > py - No module loaded > ImportError: No module named script > py - No module loaded > ImportError: No module named script > ImportError: No module named script > py - No module loaded > ImportError: No module named script > py - No module loaded > ImportError: No module named script > > An opening "pd/attr-1.pd" prints: > > pyext simple ex3 > ... couldn't create > > Any help in getting further is appreciated! > > -- > peace, love & harmony > Atte > > http://atte.dk | http://myspace.com/attejensen > http://anagrammer.dk | http://atte.dk/compositions > > ___ > PD-list@iem.at mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list > ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] py/pyext
Hi I think I installed py/pyext allright, but it doesn't seem to work. For instance opening "pd/script-1.pd" in pd prints the following: Opened Alsa Client 128 in:1 out:1 py/pyext 0.2.0 - python script objects (C)2002-2005 Thomas Grill - http://g.org/ext using Python 2.4.4 (#1, Apr 5 2007, 20:09:06) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] py - No module loaded ImportError: No module named script py - No module loaded ImportError: No module named script ImportError: No module named script py - No module loaded ImportError: No module named script py - No module loaded ImportError: No module named script An opening "pd/attr-1.pd" prints: pyext simple ex3 ... couldn't create Any help in getting further is appreciated! -- peace, love & harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] py/pyext and Python 2.5 was Re: py compile error
Hey all, thank you all for your reports. I just updated py/pyext in cvs and i hope i fixed it in a way that i didn't break compatibility for older Python versions. Please let me know if there are any further troubles. greetings, Thomas Jamie Bullock schrieb: > Hi Thomas, > > The build falls over here when compiling py (current CVS): > > g++ -c -msse -mfpmath=sse -ffast-math -O3 -pthread -fPIC -DPY_EXPORTS > -DPY_NUMPY -DPY_USE_GIL -DNDEBUG -DFLEXT_THREADS -DFLEXT_SYS=2 -DPD > -I/usr/include/python2.5 -I/usr/local/src/pd/src > -I/usr/local/include/stk -I/usr/local/include/sndobj > -I/usr/local/include/flext source/pybuffer.cpp -o > pd-linux/release-multi/pybuffer.opp > source/pybuffer.cpp:222: error: invalid conversion from ‘int > (*)(PyObject*, int, const char**)’ to ‘Py_ssize_t (*)(PyObject*, > Py_ssize_t, char**)’ > source/pybuffer.cpp:440: warning: ‘intargfunc’ is deprecated (declared > at /usr/include/python2.5/object.h:133) > source/pybuffer.cpp:441: warning: ‘intargfunc’ is deprecated (declared > at /usr/include/python2.5/object.h:133) > source/pybuffer.cpp:442: warning: ‘intintargfunc’ is deprecated > (declared at /usr/include/python2.5/object.h:134) > > Jamie > > > -- Thomas Grill http://g.org ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Py/pyext
Make sure that DLL is in the pd /bin folder and it will be found. On 6/3/07, David Powers <[EMAIL PROTECTED]> wrote: Hi list, I installed the latest pd-extended specifically hoping to finally use py/pyext. But py/pyext don't work I guess. Anyone know why? I'm on WinXP RC1. Specifically, I get two seperate issues: 1. pyext simply can't be created 2. py gives me the error "This application has failed to start because pthreadVC.dll was not found. Re-installing the application may fix this problem." Adding python scripting to PD is the single coolest thing I can think of to extend my PD abilities. Do I need to try to compile from the source? That's still a little scary for me, even though I code for a living it's all web stuff PHP/Ajax etc., so I'm not really used to it. I have cygwin installed, and MinGw, but I'm kinda clueless how to use them. I think I have M$ Visual C++ too... I did get something to compile once but it was a year ago and I forgot how I did it. ~David ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] Py/pyext
pthreadVC.dll should be included in Pd-0.39-2-extended-rc2. .hc On Jun 3, 2007, at 11:45 AM, David Powers wrote: > Hi list, > > I installed the latest pd-extended specifically hoping to finally use > py/pyext. But py/pyext don't work I guess. Anyone know why? I'm on > WinXP RC1. Specifically, I get two seperate issues: > 1. pyext simply can't be created > 2. py gives me the error "This application has failed to start because > pthreadVC.dll was not found. Re-installing the application may fix > this problem." > > Adding python scripting to PD is the single coolest thing I can think > of to extend my PD abilities. > > Do I need to try to compile from the source? That's still a little > scary for me, even though I code for a living it's all web stuff > PHP/Ajax etc., so I'm not really used to it. I have cygwin installed, > and MinGw, but I'm kinda clueless how to use them. I think I have M$ > Visual C++ too... I did get something to compile once but it was a > year ago and I forgot how I did it. > > ~David > > ___ > PD-list@iem.at mailing list > UNSUBSCRIBE and account-management -> http://lists.puredata.info/ > listinfo/pd-list If you are not part of the solution, you are part of the problem. ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] Py/pyext
Hi list, I installed the latest pd-extended specifically hoping to finally use py/pyext. But py/pyext don't work I guess. Anyone know why? I'm on WinXP RC1. Specifically, I get two seperate issues: 1. pyext simply can't be created 2. py gives me the error "This application has failed to start because pthreadVC.dll was not found. Re-installing the application may fix this problem." Adding python scripting to PD is the single coolest thing I can think of to extend my PD abilities. Do I need to try to compile from the source? That's still a little scary for me, even though I code for a living it's all web stuff PHP/Ajax etc., so I'm not really used to it. I have cygwin installed, and MinGw, but I'm kinda clueless how to use them. I think I have M$ Visual C++ too... I did get something to compile once but it was a year ago and I forgot how I did it. ~David ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] py/pyext missing in pd-extended
The Pd-extended release just includes THomas's binaries for all the flext stuff. It would definitely be nicer if that was all built from source and included. Since you'll be working on a lot of GUI stuff, I'd be very interested to hear how the new GUI stuff works out in Pd-extended. .hc On May 31, 2007, at 4:23 PM, B. Bogart wrote: > Hey all, > > So I'm starting work on pixelTANGO again and need to get things > working > in pd-extended. Has there been any changes in this dialogue since I've > been out of the loop? > > Thomas, if you could provide a simple "normal" makefile for all > platforms for flext and flext externals then I can see if I can figure > out how to integrate that into the PD extended (pixelTANGO) makefile > (s). > > I'm not gcc expert, so a set of sample makefiles would be ideal. > > If anyone else has started the work please drop me a line so we can > coordinate. > > Thanks all, > > B. Bogart > > Thomas Grill wrote: >> Hi all, >>> of course you could also try to support thomas's build system ... >>> but it >>> seems, there's no one, who's interested in doing the work... >>> >> compiling flext and flext-based externals is pretty >> straightforward. One >> could just ignore the flext build system, building flext as a >> shared or >> static library (with the first option preferred), and based on that >> compile the externals. For preprocessor definitions just >> FLEXT_SYS=2 and >> FLEXT_SHARED (in the case of a shared library) have to be defined, >> although some more are optional. >> >> greetings, >> Thomas >> As we enjoy great advantages from inventions of others, we should be glad of an opportunity to serve others by any invention of ours; and this we should do freely and generously. - Benjamin Franklin ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] py/pyext missing in pd-extended
Hey all, So I'm starting work on pixelTANGO again and need to get things working in pd-extended. Has there been any changes in this dialogue since I've been out of the loop? Thomas, if you could provide a simple "normal" makefile for all platforms for flext and flext externals then I can see if I can figure out how to integrate that into the PD extended (pixelTANGO) makefile(s). I'm not gcc expert, so a set of sample makefiles would be ideal. If anyone else has started the work please drop me a line so we can coordinate. Thanks all, B. Bogart Thomas Grill wrote: > Hi all, >> of course you could also try to support thomas's build system ... but it >> seems, there's no one, who's interested in doing the work... >> > compiling flext and flext-based externals is pretty straightforward. One > could just ignore the flext build system, building flext as a shared or > static library (with the first option preferred), and based on that > compile the externals. For preprocessor definitions just FLEXT_SYS=2 and > FLEXT_SHARED (in the case of a shared library) have to be defined, > although some more are optional. > > greetings, > Thomas > ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list