Csound Csound-dev Csound-tekno Search About

[Csnd] python 2.5.1 in MacCsound

Date2009-01-09 19:07
FromChester Udell
Subject[Csnd] python 2.5.1 in MacCsound
Hi folks,

I was wondering if anyone knows how to get the python opcodes and  
python running in the current MacCsound environment in OS 10.5?   
Please be detailed as I have never run python in Csound before.  My  
aim is to do complex generative functions, but take advantage of  
Csound's ability to render sound in non-realtime.  I checked out the  
source forge stuff, but I just must be overlooking something...

Thanks!
-Chet Udell

Date2009-01-09 19:49
FromAnthony Kozar
Subject[Csnd] Re: python 2.5.1 in MacCsound
What have you tried so far?  And how did it fail?

Python opcodes are generally included with Csound so you just need to write
an appropriate orchestra and try it.  There are a number of examples in the
CVS repository:



However, the Python opcodes included with the OS X packages currently on
Sourceforge are not likely to work on 10.5 since they were compiled for
Python 2.3 on 10.4 -- but they might (Leopard includes a Python 2.3
library).

Your best chance at the moment for getting this to work is to install my
Csound 5.09 test package for Leopard:



(Source code is available in the same directory of the website).

I *hope* to have release packages of Csound 5.10 for Leopard posted to
Sourceforge within a week (or two).  I've never tested Python ops in
MacCsound though, so would appreciate knowing if it works.

Anthony Kozar
mailing-lists-1001 AT anthonykozar DOT net
http://anthonykozar.net/


Chester Udell wrote on 1/9/09 2:07 PM:

> Hi folks,
> 
> I was wondering if anyone knows how to get the python opcodes and
> python running in the current MacCsound environment in OS 10.5?
> Please be detailed as I have never run python in Csound before.  My
> aim is to do complex generative functions, but take advantage of
> Csound's ability to render sound in non-realtime.  I checked out the
> source forge stuff, but I just must be overlooking something...


Date2009-01-09 20:44
FromChester Udell
Subject[Csnd] Re: Re: python 2.5.1 in MacCsound
Fixed,

I had the intel python 2.5 initially.  I switched to the PPC universal  
2.4 and it seemed to talk with MacCsound.
The python 'print' calls will not show up in the macCsound i/o gui,  
but the opcodes work fine.

Thanks,
-Chet

On Jan 9, 2009, at 2:49 PM, Anthony Kozar wrote:

> What have you tried so far?  And how did it fail?
>
> Python opcodes are generally included with Csound so you just need  
> to write
> an appropriate orchestra and try it.  There are a number of examples  
> in the
> CVS repository:
>
>  />
>
> However, the Python opcodes included with the OS X packages  
> currently on
> Sourceforge are not likely to work on 10.5 since they were compiled  
> for
> Python 2.3 on 10.4 -- but they might (Leopard includes a Python 2.3
> library).
>
> Your best chance at the moment for getting this to work is to  
> install my
> Csound 5.09 test package for Leopard:
>
>  >
>
> (Source code is available in the same directory of the website).
>
> I *hope* to have release packages of Csound 5.10 for Leopard posted to
> Sourceforge within a week (or two).  I've never tested Python ops in
> MacCsound though, so would appreciate knowing if it works.
>
> Anthony Kozar
> mailing-lists-1001 AT anthonykozar DOT net
> http://anthonykozar.net/
>
>
> Chester Udell wrote on 1/9/09 2:07 PM:
>
>> Hi folks,
>>
>> I was wondering if anyone knows how to get the python opcodes and
>> python running in the current MacCsound environment in OS 10.5?
>> Please be detailed as I have never run python in Csound before.  My
>> aim is to do complex generative functions, but take advantage of
>> Csound's ability to render sound in non-realtime.  I checked out the
>> source forge stuff, but I just must be overlooking something...
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>


Date2009-06-01 08:36
FromChuckk Hubbard
Subject[Csnd] Re: Re: python 2.5.1 in MacCsound
Hi.
Any news on this? I see that there's still no binary for Intel 10.5,
and the users I've spoken to have said they get errors. One provided
this output:
==========
$ python rationale.py
Traceback (most recent call last):
   File "rationale.py", line 40, in 
     import csnd
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/csnd.py", line 7, in 
     import _csnd
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/_csnd.so, 2): Library not loaded: /Library/Frameworks/
CsoundLib.framework/Versions/5.2/lib_csnd.dylib
   Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/_csnd.so
   Reason: Incompatible library version: _csnd.so requires version
5.2.0 or later, but lib_csnd.dylib provides version 5.1.0
==========

One of the people trying it said he looked into compiling Csound, but
gave up when he read how long it took you to compile all the
dependencies. I'd take a stab myself, but I still have 10.4 and can't
justify the expense of upgrading now.
I don't think using Python 2.3 will be a solution for this; I haven't
tried it, but I definitely used post-2.3 features in the program.
One user told me he tried all of the OSX binaries from SourceForge,
just to see, and none worked.

-Chuckk

On Fri, Jan 9, 2009 at 10:49 PM, Anthony Kozar
 wrote:
> What have you tried so far?  And how did it fail?
>
> Python opcodes are generally included with Csound so you just need to write
> an appropriate orchestra and try it.  There are a number of examples in the
> CVS repository:
>
>  />
>
> However, the Python opcodes included with the OS X packages currently on
> Sourceforge are not likely to work on 10.5 since they were compiled for
> Python 2.3 on 10.4 -- but they might (Leopard includes a Python 2.3
> library).
>
> Your best chance at the moment for getting this to work is to install my
> Csound 5.09 test package for Leopard:
>
> 
>
> (Source code is available in the same directory of the website).
>
> I *hope* to have release packages of Csound 5.10 for Leopard posted to
> Sourceforge within a week (or two).  I've never tested Python ops in
> MacCsound though, so would appreciate knowing if it works.
>
> Anthony Kozar
> mailing-lists-1001 AT anthonykozar DOT net
> http://anthonykozar.net/
>
>
> Chester Udell wrote on 1/9/09 2:07 PM:
>
>> Hi folks,
>>
>> I was wondering if anyone knows how to get the python opcodes and
>> python running in the current MacCsound environment in OS 10.5?
>> Please be detailed as I have never run python in Csound before.  My
>> aim is to do complex generative functions, but take advantage of
>> Csound's ability to render sound in non-realtime.  I checked out the
>> source forge stuff, but I just must be overlooking something...
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>



-- 
http://www.badmuthahubbard.com


Date2009-06-01 12:03
Fromvictor
Subject[Csnd] Re: Re: Re: python 2.5.1 in MacCsound
It is in CVS and will be there in the next release.

Victor
----- Original Message ----- 
From: "Chuckk Hubbard" 
To: 
Sent: Monday, June 01, 2009 8:36 AM
Subject: [Csnd] Re: Re: python 2.5.1 in MacCsound


Hi.
Any news on this? I see that there's still no binary for Intel 10.5,
and the users I've spoken to have said they get errors. One provided
this output:
==========
$ python rationale.py
Traceback (most recent call last):
   File "rationale.py", line 40, in 
     import csnd
   File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
python2.5/csnd.py", line 7, in 
     import _csnd
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/_csnd.so, 2): Library not loaded: /Library/Frameworks/
CsoundLib.framework/Versions/5.2/lib_csnd.dylib
   Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
lib/python2.5/_csnd.so
   Reason: Incompatible library version: _csnd.so requires version
5.2.0 or later, but lib_csnd.dylib provides version 5.1.0
==========

One of the people trying it said he looked into compiling Csound, but
gave up when he read how long it took you to compile all the
dependencies. I'd take a stab myself, but I still have 10.4 and can't
justify the expense of upgrading now.
I don't think using Python 2.3 will be a solution for this; I haven't
tried it, but I definitely used post-2.3 features in the program.
One user told me he tried all of the OSX binaries from SourceForge,
just to see, and none worked.

-Chuckk

On Fri, Jan 9, 2009 at 10:49 PM, Anthony Kozar
 wrote:
> What have you tried so far? And how did it fail?
>
> Python opcodes are generally included with Csound so you just need to 
> write
> an appropriate orchestra and try it. There are a number of examples in the
> CVS repository:
>
>  />
>
> However, the Python opcodes included with the OS X packages currently on
> Sourceforge are not likely to work on 10.5 since they were compiled for
> Python 2.3 on 10.4 -- but they might (Leopard includes a Python 2.3
> library).
>
> Your best chance at the moment for getting this to work is to install my
> Csound 5.09 test package for Leopard:
>
> 
>
> (Source code is available in the same directory of the website).
>
> I *hope* to have release packages of Csound 5.10 for Leopard posted to
> Sourceforge within a week (or two). I've never tested Python ops in
> MacCsound though, so would appreciate knowing if it works.
>
> Anthony Kozar
> mailing-lists-1001 AT anthonykozar DOT net
> http://anthonykozar.net/
>
>
> Chester Udell wrote on 1/9/09 2:07 PM:
>
>> Hi folks,
>>
>> I was wondering if anyone knows how to get the python opcodes and
>> python running in the current MacCsound environment in OS 10.5?
>> Please be detailed as I have never run python in Csound before. My
>> aim is to do complex generative functions, but take advantage of
>> Csound's ability to render sound in non-realtime. I checked out the
>> source forge stuff, but I just must be overlooking something...
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"
>



-- 
http://www.badmuthahubbard.com


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
csound"= 


Date2009-06-03 08:27
FromChuckk Hubbard
Subject[Csnd] Re: Re: Re: Re: python 2.5.1 in MacCsound
Sorry but I'm not sure I follow- an OSX 10.5 Intel binary is in CVS?
-Chuckk

On Mon, Jun 1, 2009 at 2:03 PM, victor  wrote:
> It is in CVS and will be there in the next release.
>
> Victor
> ----- Original Message ----- From: "Chuckk Hubbard"
> 
> To: 
> Sent: Monday, June 01, 2009 8:36 AM
> Subject: [Csnd] Re: Re: python 2.5.1 in MacCsound
>
>
> Hi.
> Any news on this? I see that there's still no binary for Intel 10.5,
> and the users I've spoken to have said they get errors. One provided
> this output:
> ==========
> $ python rationale.py
> Traceback (most recent call last):
>  File "rationale.py", line 40, in 
>    import csnd
>  File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
> python2.5/csnd.py", line 7, in 
>    import _csnd
> ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.5/
> lib/python2.5/_csnd.so, 2): Library not loaded: /Library/Frameworks/
> CsoundLib.framework/Versions/5.2/lib_csnd.dylib
>  Referenced from: /Library/Frameworks/Python.framework/Versions/2.5/
> lib/python2.5/_csnd.so
>  Reason: Incompatible library version: _csnd.so requires version
> 5.2.0 or later, but lib_csnd.dylib provides version 5.1.0
> ==========
>
> One of the people trying it said he looked into compiling Csound, but
> gave up when he read how long it took you to compile all the
> dependencies. I'd take a stab myself, but I still have 10.4 and can't
> justify the expense of upgrading now.
> I don't think using Python 2.3 will be a solution for this; I haven't
> tried it, but I definitely used post-2.3 features in the program.
> One user told me he tried all of the OSX binaries from SourceForge,
> just to see, and none worked.
>
> -Chuckk
>
> On Fri, Jan 9, 2009 at 10:49 PM, Anthony Kozar
>  wrote:
>>
>> What have you tried so far? And how did it fail?
>>
>> Python opcodes are generally included with Csound so you just need to
>> write
>> an appropriate orchestra and try it. There are a number of examples in the
>> CVS repository:
>>
>>
>> > />
>>
>> However, the Python opcodes included with the OS X packages currently on
>> Sourceforge are not likely to work on 10.5 since they were compiled for
>> Python 2.3 on 10.4 -- but they might (Leopard includes a Python 2.3
>> library).
>>
>> Your best chance at the moment for getting this to work is to install my
>> Csound 5.09 test package for Leopard:
>>
>>
>> 
>>
>> (Source code is available in the same directory of the website).
>>
>> I *hope* to have release packages of Csound 5.10 for Leopard posted to
>> Sourceforge within a week (or two). I've never tested Python ops in
>> MacCsound though, so would appreciate knowing if it works.
>>
>> Anthony Kozar
>> mailing-lists-1001 AT anthonykozar DOT net
>> http://anthonykozar.net/
>>
>>
>> Chester Udell wrote on 1/9/09 2:07 PM:
>>
>>> Hi folks,
>>>
>>> I was wondering if anyone knows how to get the python opcodes and
>>> python running in the current MacCsound environment in OS 10.5?
>>> Please be detailed as I have never run python in Csound before. My
>>> aim is to do complex generative functions, but take advantage of
>>> Csound's ability to render sound in non-realtime. I checked out the
>>> source forge stuff, but I just must be overlooking something...
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> --
> http://www.badmuthahubbard.com
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"=
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>



-- 
http://www.badmuthahubbard.com