I would definately try running it from the console (command prompt) to see if that changes anything. Oeyvind 2008/10/8 kind beta : > thanks, oeyvind. > > --- Oeyvind Brandtsegg schrieb am Mi, 8.10.2008: > > Von: Oeyvind Brandtsegg > Betreff: [Csnd] Re: tkinter within csound > An: csound@lists.bath.ac.uk > Datum: Mittwoch, 8. Oktober 2008, 15:04 > > Just a wild guess, I'm not able to test something right now: > > I think your error stems from the pyinit statement, not related to > tkinter, but related to running python inside csound. > > yes, i guess so, because the csound example prouces the same error message > ievent.orc > > --------------------------- > pyinit > > pyruni {{ > import csound > from random import random > > for i in range(800): > csound.ievent(1, i * .2, 0.05, 6.8 + random() * 3, 70.0) > csound.ievent(1, i * .2, 0.05, 8.8 + random() * 3, 70.0) > }} > > --------------------- > > Do your Csound version have the py opcodes ? > (run csound -z and see if you can find pyinit in the displayed list, > if you have pyinit you probably also have about 90 to 100 other py > opcodes in the same list) > > yes, the py opcodes are there. pyinit and pyruni work fine. but code > containig import or from import. > > i run the csound from the > csound5gui, could this be the problem? > > thanks, > ancel > > best > Oeyvind > > 2008/10/8 kind beta : >> hello. >> >> is it possible to use tkinter within csound? >> i use the csound 5.09, python 2.52 and winXP. >> >> the following code: >> ---- >> pyinit >> pyruni {{ >> from Tkinter import * >> gusi = Tk() >> }} >> ---- >> produces the following message: >> ---- >> INIT ERROR in instr 0: pyruni: python exception >> pyruni " >> from Tkinter import * >> gusi = Tk() >> " >> header init errors >> ----- >> >> the csound example file ievent.orc form /Csound/examples/py/ievent.orc >> produces the same error message. >> >> can anyone tell me, what it takes to make this > work? >> >> i posted this in the csound forum, but now i realised that more is > happening >> on this list... >> > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > >