Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] python csnd on osx

Date2009-02-23 16:07
Fromvictor
SubjectRe: [Cs-dev] python csnd on osx
This is because the package was built for OSX 10.4, which installs and
links to MacPython 2.5. If you don't have that installed it won't work.
If you do, make sure you are using it instead of the apple-supplied
Python2.5

One solution is to install MacPython 2.5 and then re-install Csound. The
MacPython installation should redirect the python command to use it
instead of the apple supplied framework.

Victor

----- Original Message ----- 
From: "Oeyvind Brandtsegg" 
To: "Developer discussions" 
Sent: Monday, February 23, 2009 2:53 PM
Subject: Re: [Cs-dev] python csnd on osx


> Thanks for looking into this so quickly.
>
> Yes, I have 
> /Library/Frameworks/Python.framework/versions/2.5/lib/Python2.5/csnd.py
>
> I checked with a student's laptop as well, to have something to compare 
> with.
> He has Csound 5.08 and the same thing happens for him,
> so this is not new in 5.10 at least.
>
> On the student laptop he has OSX 10.5.6
> on the lab computer we have OSX 10.5.4
> maybe it is a osx 10.5 issue ?
>
> Is there anything I could do to make sure
> /Library/Frameworks/Python.framework/versions/2.5/lib/Python2.5/ is in
> the search path ?
> I know it should be, but it seems it's not (?)
>
> best
> Oeyvind
> 2009/2/23 victor :
>> Well, I just installed it here and it works for me (10.4). Check
>> that csnd.py is in
>>
>> /Library/Frameworks/Python.framework/versions/2.5/lib/Python2.5
>>
>>
>> Victor
>> ----- Original Message -----
>> From: "Oeyvind Brandtsegg" 
>> To: "Developer discussions" 
>> Sent: Monday, February 23, 2009 1:43 PM
>> Subject: Re: [Cs-dev] python csnd on osx
>>
>>
>>> Intel
>>>
>>>
>>> 2009/2/23 victor :
>>>> Intel or PPC?
>>>> ----- Original Message -----
>>>> From: "Oeyvind Brandtsegg" 
>>>> To: "Developer discussions" 
>>>> Sent: Monday, February 23, 2009 11:54 AM
>>>> Subject: [Cs-dev] python csnd on osx
>>>>
>>>>
>>>>> Hello
>>>>>
>>>>> I was trying to run some Python/Csound applications on a
>>>>> lab(univeersity) computer today and I got the error
>>>>> import csnd
>>>>> no module named csnd
>>>>>
>>>>> This is on OSX with Python2.5, Csound 5.10 floats.
>>>>> Is there a known problem ?
>>>>> I'm not the one responsible for installing things on these computers,
>>>>> so I'm not sure how to proceed, but wanted to check if this is a known
>>>>> issue before I try to track down the error..
>>>>>
>>>>> best
>>>>> Oeyvind
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>>>>> Francisco,
>>>>> CA
>>>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>>>> Enterprise
>>>>> -Strategies to boost innovation and cut costs with open source
>>>>> participation
>>>>> -Receive a $600 discount off the registration fee with the source 
>>>>> code:
>>>>> SFAD
>>>>> http://p.sf.net/sfu/XcvMzF8H
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Open Source Business Conference (OSBC), March 24-25, 2009, San 
>>>> Francisco,
>>>> CA
>>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>>> Enterprise
>>>> -Strategies to boost innovation and cut costs with open source
>>>> participation
>>>> -Receive a $600 discount off the registration fee with the source code:
>>>> SFAD
>>>> http://p.sf.net/sfu/XcvMzF8H
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Open Source Business Conference (OSBC), March 24-25, 2009, San 
>>> Francisco,
>>> CA
>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>> Enterprise
>>> -Strategies to boost innovation and cut costs with open source
>>> participation
>>> -Receive a $600 discount off the registration fee with the source code:
>>> SFAD
>>> http://p.sf.net/sfu/XcvMzF8H
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, 
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the 
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source 
>> participation
>> -Receive a $600 discount off the registration fee with the source code: 
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, 
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the 
> Enterprise
> -Strategies to boost innovation and cut costs with open source 
> participation
> -Receive a $600 discount off the registration fee with the source code: 
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-02-23 17:35
FromAnthony Kozar
SubjectRe: [Cs-dev] python csnd on osx
I have been working again on the OS X 10.5-specific package of Csound 5.10
this past weekend.  I am hoping to have it done today or tomorrow.
Installing this when it is ready should fix the csnd issue.

You could also install the previous version of 5.09 that I built but I would
recommend just waiting for 5.10.

http://www.anthonykozar.net/files/Csound-OSX/

I don't think anyone has tried this yet either:  copy csnd.py and _csnd.so
from Victor's Csound package into /Library/Python/2.5/site-packages/

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


victor wrote on 2/23/09 11:07 AM:

> This is because the package was built for OSX 10.4, which installs and
> links to MacPython 2.5. If you don't have that installed it won't work.
> If you do, make sure you are using it instead of the apple-supplied
> Python2.5
> 
> One solution is to install MacPython 2.5 and then re-install Csound. The
> MacPython installation should redirect the python command to use it
> instead of the apple supplied framework.
> 
> Victor
> 
> ----- Original Message -----
> From: "Oeyvind Brandtsegg" 
> To: "Developer discussions" 
> Sent: Monday, February 23, 2009 2:53 PM
> Subject: Re: [Cs-dev] python csnd on osx
> 
> 
>> Thanks for looking into this so quickly.
>> 
>> Yes, I have 
>> /Library/Frameworks/Python.framework/versions/2.5/lib/Python2.5/csnd.py
>> 
>> I checked with a student's laptop as well, to have something to compare
>> with.
>> He has Csound 5.08 and the same thing happens for him,
>> so this is not new in 5.10 at least.
>> 
>> On the student laptop he has OSX 10.5.6
>> on the lab computer we have OSX 10.5.4
>> maybe it is a osx 10.5 issue ?
>> 
>> Is there anything I could do to make sure
>> /Library/Frameworks/Python.framework/versions/2.5/lib/Python2.5/ is in
>> the search path ?
>> I know it should be, but it seems it's not (?)


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-02-23 17:43
FromAnthony Kozar
SubjectRe: [Cs-dev] python csnd on osx
Ahhh ... Sorry, I just remembered you said you are using an Intel Mac.  The
packages that I am building are currently for PPC.  Apple's Python on 10.5
does appear to be a Universal build, so if you install my entire Csound
package and run Python under Rosetta (not sure how you do that explicitly
...) then it would probably work.

You might be better off trying to get Victor's version to work though (or
building Csound yourself).

I eventually want to figure out how to build an Intel version for 10.5 but
life has been greatly impeding my progress on all projects recently.

Anthony

Anthony Kozar wrote on 2/23/09 12:35 PM:

> I have been working again on the OS X 10.5-specific package of Csound 5.10
> this past weekend.  I am hoping to have it done today or tomorrow.  Installing
> this when it is ready should fix the csnd issue.
> 
> You could also install the previous version of 5.09 that I built but I would
> recommend just waiting for 5.10.
> 
> http://www.anthonykozar.net/files/Csound-OSX/
> 
> I don't think anyone has tried this yet either:  copy csnd.py and _csnd.so
> from Victor's Csound package into /Library/Python/2.5/site-packages/
> 
> Anthony Kozar
> mailing-lists-1001 AT anthonykozar DOT net
> http://anthonykozar.net/


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-02-23 18:25
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] python csnd on osx
Would it maybe be simplest to just copy csnd.py and _csnd.so into the
working directory, to have a workaround while waiting for a Csound
version build for OSX 10.5?
Is there any (other) reasons for using MacPython instead of the Apple
supplied framework (which is standard python I suppose)?
Is the next Csound build expected to use the standard apple-supplied python?

I'm doing lab work with a groups of students tomorrow, and the "copy
solution" is something I could ask them to do,
rather than (me) re-installing Python and Csound on the whole lab.

best
Oeyvind

2009/2/23 victor :
> This is because the package was built for OSX 10.4, which installs and
> links to MacPython 2.5. If you don't have that installed it won't work.
> If you do, make sure you are using it instead of the apple-supplied
> Python2.5
>
> One solution is to install MacPython 2.5 and then re-install Csound. The
> MacPython installation should redirect the python command to use it
> instead of the apple supplied framework.
>
> Victor
>
> ----- Original Message -----
> From: "Oeyvind Brandtsegg" 
> To: "Developer discussions" 
> Sent: Monday, February 23, 2009 2:53 PM
> Subject: Re: [Cs-dev] python csnd on osx
>
>
>> Thanks for looking into this so quickly.
>>
>> Yes, I have
>> /Library/Frameworks/Python.framework/versions/2.5/lib/Python2.5/csnd.py
>>
>> I checked with a student's laptop as well, to have something to compare
>> with.
>> He has Csound 5.08 and the same thing happens for him,
>> so this is not new in 5.10 at least.
>>
>> On the student laptop he has OSX 10.5.6
>> on the lab computer we have OSX 10.5.4
>> maybe it is a osx 10.5 issue ?
>>
>> Is there anything I could do to make sure
>> /Library/Frameworks/Python.framework/versions/2.5/lib/Python2.5/ is in
>> the search path ?
>> I know it should be, but it seems it's not (?)
>>
>> best
>> Oeyvind
>> 2009/2/23 victor :
>>> Well, I just installed it here and it works for me (10.4). Check
>>> that csnd.py is in
>>>
>>> /Library/Frameworks/Python.framework/versions/2.5/lib/Python2.5
>>>
>>>
>>> Victor
>>> ----- Original Message -----
>>> From: "Oeyvind Brandtsegg" 
>>> To: "Developer discussions" 
>>> Sent: Monday, February 23, 2009 1:43 PM
>>> Subject: Re: [Cs-dev] python csnd on osx
>>>
>>>
>>>> Intel
>>>>
>>>>
>>>> 2009/2/23 victor :
>>>>> Intel or PPC?
>>>>> ----- Original Message -----
>>>>> From: "Oeyvind Brandtsegg" 
>>>>> To: "Developer discussions" 
>>>>> Sent: Monday, February 23, 2009 11:54 AM
>>>>> Subject: [Cs-dev] python csnd on osx
>>>>>
>>>>>
>>>>>> Hello
>>>>>>
>>>>>> I was trying to run some Python/Csound applications on a
>>>>>> lab(univeersity) computer today and I got the error
>>>>>> import csnd
>>>>>> no module named csnd
>>>>>>
>>>>>> This is on OSX with Python2.5, Csound 5.10 floats.
>>>>>> Is there a known problem ?
>>>>>> I'm not the one responsible for installing things on these computers,
>>>>>> so I'm not sure how to proceed, but wanted to check if this is a known
>>>>>> issue before I try to track down the error..
>>>>>>
>>>>>> best
>>>>>> Oeyvind
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>>>>>> Francisco,
>>>>>> CA
>>>>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>>>>> Enterprise
>>>>>> -Strategies to boost innovation and cut costs with open source
>>>>>> participation
>>>>>> -Receive a $600 discount off the registration fee with the source
>>>>>> code:
>>>>>> SFAD
>>>>>> http://p.sf.net/sfu/XcvMzF8H
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>>>>> Francisco,
>>>>> CA
>>>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>>>> Enterprise
>>>>> -Strategies to boost innovation and cut costs with open source
>>>>> participation
>>>>> -Receive a $600 discount off the registration fee with the source code:
>>>>> SFAD
>>>>> http://p.sf.net/sfu/XcvMzF8H
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Open Source Business Conference (OSBC), March 24-25, 2009, San
>>>> Francisco,
>>>> CA
>>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>>> Enterprise
>>>> -Strategies to boost innovation and cut costs with open source
>>>> participation
>>>> -Receive a $600 discount off the registration fee with the source code:
>>>> SFAD
>>>> http://p.sf.net/sfu/XcvMzF8H
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>>> CA
>>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>>> Enterprise
>>> -Strategies to boost innovation and cut costs with open source
>>> participation
>>> -Receive a $600 discount off the registration fee with the source code:
>>> SFAD
>>> http://p.sf.net/sfu/XcvMzF8H
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source code:
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net