Joachim, This is has to do with wxPython, but I have not experienced this error before. Could you try: pythonw main.py in a terminal window ? This does not work here, but it might be the way on your system. Also, you could test if you are able to run PartikkelExplorer, to see if the same error appears there. Also, try running the wxController example that comes with csound to see if that works. best Oeyvind 2007/11/9, joachim heintz : > Victor - > > that's really great. Thanks a lot for this extra service. I installed > it, and everything seems to run fine. No more problems with > AttributeErrors. > > Unfortunately a new problem came up while running main.py from > Oeyvinds Partikkel Cloud Designer: > > Traceback (most recent call last): > File "/Users/jh/Desktop/partikkelCloudDesigner/main.py", line 43, > in -toplevel- > ctrl_app = wx.PySimpleApp() > File "//Library/Python/2.3/wx-2.8-mac-unicode/wx/_core.py", line > 7923, in __init__ > wx.App.__init__(self, redirect, filename, useBestVisual, > clearSigInt) > File "//Library/Python/2.3/wx-2.8-mac-unicode/wx/_core.py", line > 7791, in __init__ > raise SystemExit(msg) > SystemExit: This program needs access to the screen. > Please run with 'pythonw', not 'python', and only when you are logged > in on the main display of your Mac. > > Anything I can do here? Cheers - > > joachim > > > > Am 09.11.2007 um 13:29 schrieb Victor Lazzarini: > > > OK, Swig updated, it works. So here is the installer: > > > > http://music.nuim.ie/vlazzarini/tmp/main.shtml > > > > I am not adding it to sourceforge because I had not checked it > > is all OK (but it should be). I might do it next week if you tell > > me it's working fine. > > > > Victor > > > > At 12:20 09/11/2007, you wrote: > >> OK, it's causing trouble on PPC (that is why I had taken > >> csoundfile out) but > >> I think it's swig. I am updating it and will try to build. I'll > >> let you if I'm > >> successful. > >> > >> Victor > >> > >> At 12:04 09/11/2007, you wrote: > >>> Thanks a lot. Yes, using the PPC version (MacBook, but using the PPC > >>> version under Rosetta because of MacCsound). > >>> joachim > >>> > >>> > >>> > >>> Am 09.11.2007 um 12:58 schrieb Victor Lazzarini: > >>> > >>>> I'd have to make a new installer for you. Is that PPC you have? > >>>> I can > >>>> see if I can build one now. > >>>> > >>>> Victor > >>>> > >>>> At 11:41 09/11/2007, you wrote: > >>>>> Hello Victor - > >>>>> > >>>>> sorry for asking this again: is there a way to use the "new" > >>>>> Mac csnd > >>>>> module now? Thank you - > >>>>> > >>>>> joachim > >>>>> > >>>>> > >>>>> > >>>>> Am 07.11.2007 um 00:27 schrieb joachim heintz: > >>>>> > >>>>>> I get the same error when I try to run Csound via Python as Mike > >>>>>> showed it in his tutorial. The line: > >>>>>> csound.load('myfile.csd') > >>>>>> leads to an error: > >>>>>> AttributeError: load > >>>>>> > >>>>>> Can I replace the Mac csnd module with your fixed module > >>>>>> containing > >>>>>> the CsoundFile class "by hand"? Is it available in CVS or can you > >>>>>> send it to the list? Thanks - > >>>>>> > >>>>>> joachim > >>>>>> > >>>>>> > >>>>>> > >>>>>> Am 06.11.2007 um 16:41 schrieb Victor Lazzarini: > >>>>>> > >>>>>>> It seems to be OK now. So it'll be there in the next release. > >>>>>>> > >>>>>>> Victor > >>>>>>> > >>>>>>> At 15:34 06/11/2007, you wrote: > >>>>>>>> That's because the Mac csnd module does not have > >>>>>>>> the CsoundFile class. There was a time when this was > >>>>>>>> causing trouble so I commented it out. Will check if > >>>>>>>> it's still the case. > >>>>>>>> > >>>>>>>> Victor > >>>>>>>> > >>>>>>>> At 15:13 06/11/2007, you wrote: > >>>>>>>>> Thanks, Oeyvind, for your reply. I continued trying to install > >>>>>>>>> your > >>>>>>>>> Partikkel Cloud Designer. There are some results and new > >>>>>>>>> questions: > >>>>>>>>> > >>>>>>>>> 1. I think I can only use Python 2.3, because I use the PPC > >>>>>>>>> version > >>>>>>>>> of Csound 5.07 (IntelMac, but I want to use MacCsound). The > >>>>>>>>> module > >>>>>>>>> csnd is: /System/Library/Frameworks/Python.framework/Versions/ > >>>>>>>>> 2.3/lib/ python2.3/csnd.py > >>>>>>>>> > >>>>>>>>> 2. After loading csnd and giving the message "csound > >>>>>>>>> loaded" your > >>>>>>>>> script "main.py" fails in line 32: > >>>>>>>>> csThread = CsoundThread(csound, csoundCommandLine) > >>>>>>>>> because it calls csoundModule.py and fails in line 35: > >>>>>>>>> self.csound.setOrchestra('''#include 'cloud.orc' > >>>>>>>>> ''') > >>>>>>>>> saying: > >>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/ > >>>>>>>>>>> Versions/ 2.3/lib/ > >>>>>>>>>>> python2.3/csnd.py", line 2878, in > >>>>>>>>>>> __getattr__ = lambda self, name: _swig_getattr(self, > >>>>>>>>>>> CppSound, > >>>>>>>>>>> name) > >>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/ > >>>>>>>>>>> Versions/ 2.3/lib/ > >>>>>>>>>>> python2.3/csnd.py", line 27, in _swig_getattr > >>>>>>>>>>> raise AttributeError,name > >>>>>>>>>>> AttributeError: setOrchestra > >>>>>>>>> What is the problem here? Why this attribute error?!? > >>>>>>>>> > >>>>>>>>> (When I commend out this line, the same error occurs in the > >>>>>>>>> next > >>>>>>>>> lines: AttributeError: setScore etc.) > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> Thanks for help - > >>>>>>>>> > >>>>>>>>> joachim > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> Am 03.11.2007 um 19:00 schrieb Oeyvind Brandtsegg: > >>>>>>>>> > >>>>>>>>>> Hello. > >>>>>>>>>> > >>>>>>>>>> Your problem on python2.3 seems to be related to the csnd > >>>>>>>>>> module > >>>>>>>>>> and csound API. > >>>>>>>>>> Others will know better than me what's wrong there. > >>>>>>>>>> > >>>>>>>>>> On python2.4, you get the message 'no module named wx'... > >>>>>>>>>> Do you have wxWidgets(wxPython) installed ? > >>>>>>>>>> If you have it, you might try to edit the main.py file and > >>>>>>>>>> change > >>>>>>>>>> import wx > >>>>>>>>>> to > >>>>>>>>>> import wxPython.wx > >>>>>>>>>> ... the latter variant is really deprecated, and leads to a > >>>>>>>>>> warning > >>>>>>>>>> with newer versions of wx, but it will give backward > >>>>>>>>>> compatibility if > >>>>>>>>>> you have an old wx version. > >>>>>>>>>> Since you have several versions of python, make sure your > >>>>>>>>>> wxPython is > >>>>>>>>>> installed for 2.4 (not for 2.3 or 2.5) > >>>>>>>>>> > >>>>>>>>>> On python2.5, you also have problems with the csnd module. > >>>>>>>>>> I think this may be related to your install of csnd being for > >>>>>>>>>> python2.4 (not compatible with python2.5). > >>>>>>>>>> > >>>>>>>>>> Hope this helps, > >>>>>>>>>> and don't hestitate to ask for more help. > >>>>>>>>>> Oeyvind > >>>>>>>>>> > >>>>>>>>>> 2007/11/2, joachim heintz : > >>>>>>>>>>> Hello Oeyvind (and all) - > >>>>>>>>>>> > >>>>>>>>>>> I tried to run "main.py" in 3 different versions of > >>>>>>>>>>> MacPython > >>>>>>>>>>> (I'm on > >>>>>>>>>>> an IntelMac OS 10.4.10). > >>>>>>>>>>> > >>>>>>>>>>> On MacPython 2.3 (Python 2.3.5, IDLE 1.0) I got: > >>>>>>>>>>> csound loaded > >>>>>>>>>>> Traceback (most recent call last): > >>>>>>>>>>> File "/Users/jh/Desktop/partikkelCloudDesigner/main.py", > >>>>>>>>>>> line 32, > >>>>>>>>>>> in -toplevel- > >>>>>>>>>>> csThread = CsoundThread(csound, csoundCommandLine) > >>>>>>>>>>> File "/Users/jh/Desktop/partikkelCloudDesigner/cs/ > >>>>>>>>>>> csoundModule.py", line 35, in __init__ > >>>>>>>>>>> self.csound.setOrchestra('''#include 'cloud.orc' > >>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/ > >>>>>>>>>>> Versions/ 2.3/lib/ > >>>>>>>>>>> python2.3/csnd.py", line 2878, in > >>>>>>>>>>> __getattr__ = lambda self, name: _swig_getattr(self, > >>>>>>>>>>> CppSound, > >>>>>>>>>>> name) > >>>>>>>>>>> File "/System/Library/Frameworks/Python.framework/ > >>>>>>>>>>> Versions/ 2.3/lib/ > >>>>>>>>>>> python2.3/csnd.py", line 27, in _swig_getattr > >>>>>>>>>>> raise AttributeError,name > >>>>>>>>>>> AttributeError: setOrchestra > >>>>>>>>>>> > >>>>>>>>>>> On MacPython 2.4 (Python 2.4.4, IDLE 1.1.4): > >>>>>>>>>>> Traceback (most recent call last): > >>>>>>>>>>> File "/Users/jh/Desktop/partikkelCloudDesigner/main.py", > >>>>>>>>>>> line 17, > >>>>>>>>>>> in -toplevel- > >>>>>>>>>>> import wx > >>>>>>>>>>> ImportError: No module named wx > >>>>>>>>>>> > >>>>>>>>>>> On MacPython 2.5 (Python 2.5, IDLE 1.2): > >>>>>>>>>>> Traceback (most recent call last): > >>>>>>>>>>> File "/Users/jh/Desktop/partikkelCloudDesigner/main.py", > >>>>>>>>>>> line 18, > >>>>>>>>>>> in > >>>>>>>>>>> from cs.csMessages import * > >>>>>>>>>>> File "/Users/jh/Desktop/partikkelCloudDesigner/cs/ > >>>>>>>>>>> csMessages.py", > >>>>>>>>>>> line 14, in > >>>>>>>>>>> import csnd > >>>>>>>>>>> ImportError: No module named csnd > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> Anything I can do? Thanks - > >>>>>>>>>>> > >>>>>>>>>>> joachim > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> Am 26.10.2007 um 14:24 schrieb Oeyvind Brandtsegg: > >>>>>>>>>>> > >>>>>>>>>>>> I have the pleasure of announcing: > >>>>>>>>>>>> > >>>>>>>>>>>> Partikkel Cloud Designer > >>>>>>>>>>>> A Python application using the csoundAPI. It is used to > >>>>>>>>>>>> design 4- voice > >>>>>>>>>>>> partikkel granular clouds by means of parameter automation > >>>>>>>>>>>> data. > >>>>>>>>>>>> Clouds can be played back in this application, and in > >>>>>>>>>>>> ImproSculpt4. > >>>>>>>>>>>> http://oeyvind.teks.no/results/applications/ > >>>>>>>>>>>> partikkelapplications.htm#_Partikkel_Cloud_Designer > >>>>>>>>>>>> > >>>>>>>>>>>> best > >>>>>>>>>>>> Oeyvind > >>>>>>>>>>>> -- > >>>>>>>>>>>> Send bugs reports to this list. > >>>>>>>>>>>> To unsubscribe, send email to csound- > >>>>>>>>>>>> unsubscribe@lists.bath.ac.uk > >>>>>>>> > >>>>>>>> Victor Lazzarini > >>>>>>>> Music Technology Laboratory > >>>>>>>> Music Department > >>>>>>>> National University of Ireland, Maynooth > >>>>>>> > >>>>>>> Victor Lazzarini > >>>>>>> Music Technology Laboratory > >>>>>>> Music Department > >>>>>>> National University of Ireland, Maynooth > >>>> > >>>> Victor Lazzarini > >>>> Music Technology Laboratory > >>>> Music Department > >>>> National University of Ireland, Maynooth > >> > >> Victor Lazzarini > >> Music Technology Laboratory > >> Music Department > >> National University of Ireland, Maynooth > >> > > > > Victor Lazzarini > > Music Technology Laboratory > > Music Department > > National University of Ireland, Maynooth > > > > > > >