Re: [PD] pyext on OSX (marius schebella)
for me your python-function worked without complaining, maybe you are using the (somewhat reduced) python version which ships with macosx. if so, you could consider getting a full python distribution. for ex. the prebuilt binaries from pythonmac at: http://www.pythonmac.org/packages/ christian Hi, I am trying python for the first time on osx and somehow I have problems loading some libraries (for example urllib). maybe my script is wrong, but I cannot test it, because pd crashes when I import urllib. marius. import sys,urllib print Script initialized try: print Script arguments: ,sys.argv except: print def printpage(arg): import urllib f = urllib.urlopen(arg) # Read from the object, storing the page's contents in 's'. s = f.read() f.close() print (s) _ MSN Amor: busca tu ½ naranja http://latam.msn.com/amor/ ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pyext on OSX (marius schebella)
maybe you are using the (somewhat reduced) python version which ships with macosx. should work with the shipped version as well... Marius' problem don't seem to be related to missing functionality greetings, Thomas -- Thomas Grill http://g.org ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pyext on OSX (marius schebella)
marius schebella schrieb: thank you for your answers. weird. I can run the (sligtly modified) script from the commandline. but when I try to load it into Pd then it crashes. both py and pyext work with other scripts, but as soon as I try to import urllib (or sgmllib) pd crashes, even without defining a function. Does it also crash if you load urllib not in the functions but in the beginning of the script? I just tried the new beta version of dyn~ (crashed) Would you mind to elaborate what exactly crashed? Your recursive self-destructive patch? greetings, Thomas -- Thomas Grill http://g.org ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pyext on OSX (marius schebella)
thank you for your answers. weird. I can run the (sligtly modified) script from the commandline. but when I try to load it into Pd then it crashes. both py and pyext work with other scripts, but as soon as I try to import urllib (or sgmllib) pd crashes, even without defining a function. I just tried the new beta version of dyn~ (crashed), and will also try to get the full python version. the shipped version, btw, is 2.3.5 from aug 19, compiled with gcc 4.0.1. marius. Thomas Grill wrote: maybe you are using the (somewhat reduced) python version which ships with macosx. should work with the shipped version as well... Marius' problem don't seem to be related to missing functionality greetings, Thomas ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pyext on OSX (marius schebella)
ok, stupid, but I mixed up dyn an py and replaced dyn, but not py. now, with the corrected beta version everything is working. marius. Thomas Grill wrote: marius schebella schrieb: thank you for your answers. weird. I can run the (sligtly modified) script from the commandline. but when I try to load it into Pd then it crashes. both py and pyext work with other scripts, but as soon as I try to import urllib (or sgmllib) pd crashes, even without defining a function. Does it also crash if you load urllib not in the functions but in the beginning of the script? I just tried the new beta version of dyn~ (crashed) Would you mind to elaborate what exactly crashed? Your recursive self-destructive patch? greetings, Thomas ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list