Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: Re: Re: Re: Python script to embed csd's for OLPC

Date2009-03-09 01:56
From"Art Hunkins"
Subject[Csnd] Re: Re: Re: Re: Re: Re: Python script to embed csd's for OLPC
I've no idea.

They're Victor's files, and I did nothing special in relation to them. I 
didn't know writing was involved. Hopefully, Victor has some idea.

Art Hunkins

----- Original Message ----- 
From: "Felipe Sateler" 
To: 
Sent: Sunday, March 08, 2009 9:48 PM
Subject: [Csnd] Re: Re: Re: Re: Re: Python script to embed csd's for OLPC


> Do you have write access to those files/directories?
>
> On Mon, Mar 9, 2009 at 12:18, Art Hunkins  wrote:
>> Victor,
>>
>> Today I tried (on OLPC) to run your two Activities, Waves and synth - 
>> from
>> their respective directories within csndsugui. I ran both with -d and -v
>> flags.
>>
>> Among the myriad of messages output, two in each run may have some
>> significance, and be related to why I'm getting no joy. (Both activities 
>> run
>> for about two seconds and come back to the command line "normally".)
>>
>> The messages:
>> /home/olpc/Activities/csndsugui/Waves.activity/csndsugui.pyc has bad 
>> mtime
>> and several lines later
>> can't create /home/olpc/Activities/csndsugui/Waves.activity/csndsugui.pyc
>>
>> (Of course, synth.activity substitutes synth.) BTW, both .pyc's are (or 
>> have
>> been) created (obviously compiled code with sporadic portions of what 
>> looks
>> like csndsugui.py scattered throughout).
>>
>> The installed Python version is 2.5.1.
>>
>> Any ideas?
>>
>> Art Hunkins
>>
>> ----- Original Message ----- From: "victor" 
>> To: 
>> Sent: Thursday, March 05, 2009 6:42 PM
>> Subject: [Csnd] Re: Re: Re: Python script to embed csd's for OLPC
>>
>>
>>> This is basically explained in:
>>>
>>> http://wiki.laptop.org/go/Activity_tutorial
>>>
>>> it's a bundle (a directory with all the required files). Your CSD and
>>> python script go there. You will need to include csndsugui.py in the
>>> bundle.
>>> Look at the examples in
>>>
>>> http://git.sugarlabs.org/projects/csndsugui
>>>
>>> (you can get them using git clone...)
>>>
>>> Victor
>>>
>>> ----- Original Message ----- From: "Art Hunkins" 
>>> To: 
>>> Sent: Thursday, March 05, 2009 10:28 PM
>>> Subject: [Csnd] Re: Re: Python script to embed csd's for OLPC
>>>
>>>
>>>> Victor,
>>>>
>>>> Where does a Python script have to be located and run from to be able 
>>>> to
>>>> find csndsugui? It is installed normally on my OLPC, and a script run 
>>>> from a
>>>> thumb drive cannot find it.
>>>>
>>>> Art Hunkins
>>>>
>>>> ----- Original Message ----- From: "victor" 
>>>> To: 
>>>> Sent: Thursday, March 05, 2009 4:23 PM
>>>> Subject: [Csnd] Re: Python script to embed csd's for OLPC
>>>>
>>>>
>>>>> See:
>>>>>
>>>>> http://wiki.laptop.org/go/Csndsugui
>>>>>
>>>>> Victor
>>>>> ----- Original Message ----- From: "Art Hunkins" 
>>>>> To: 
>>>>> Sent: Thursday, March 05, 2009 9:12 PM
>>>>> Subject: [Csnd] Python script to embed csd's for OLPC
>>>>>
>>>>>
>>>>>> Since Python opcodes are absent from OLPCsound, I'd like to try
>>>>>> embedding csd's in a Python script. My thought is to have an opening 
>>>>>> Python
>>>>>> "initialization dialog" allowing the performer to set initialization 
>>>>>> values
>>>>>> (accessed via chnget), then embark on real-time performance. No
>>>>>> performance-time interaction. The run concludes as usual with Ctrl-C.
>>>>>>
>>>>>> Can someone point me to a Csound .py script that does just this? (I'm
>>>>>> thinking that such a dialog could well substitute for a "setup GUI", 
>>>>>> and
>>>>>> would not require other software, such as the csndsugui activity, to 
>>>>>> be
>>>>>> downloaded.)
>>>>>>
>>>>>> Art Hunkins
>>>>>>
>>>>>>
>>>>>> 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"
>>>>
>>>>
>>>>
>>>> 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"
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> -- 
>
> Felipe Sateler
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound" 


Date2009-03-09 02:01
FromFelipe Sateler
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Python script to embed csd's for OLPC
There is the possibility that the files have Victor's ownership, and
thus your user can't write to them. The pyc files are automatically
generated by python when you execute a py files. Check the output of
ls -l $file to determine if you have the right access permissions

On Mon, Mar 9, 2009 at 12:56, Art Hunkins  wrote:
> I've no idea.
>
> They're Victor's files, and I did nothing special in relation to them. I
> didn't know writing was involved. Hopefully, Victor has some idea.
>
> Art Hunkins
>
> ----- Original Message ----- From: "Felipe Sateler" 
> To: 
> Sent: Sunday, March 08, 2009 9:48 PM
> Subject: [Csnd] Re: Re: Re: Re: Re: Python script to embed csd's for OLPC
>
>
>> Do you have write access to those files/directories?
>>
>> On Mon, Mar 9, 2009 at 12:18, Art Hunkins  wrote:
>>>
>>> Victor,
>>>
>>> Today I tried (on OLPC) to run your two Activities, Waves and synth -
>>> from
>>> their respective directories within csndsugui. I ran both with -d and -v
>>> flags.
>>>
>>> Among the myriad of messages output, two in each run may have some
>>> significance, and be related to why I'm getting no joy. (Both activities
>>> run
>>> for about two seconds and come back to the command line "normally".)
>>>
>>> The messages:
>>> /home/olpc/Activities/csndsugui/Waves.activity/csndsugui.pyc has bad
>>> mtime
>>> and several lines later
>>> can't create /home/olpc/Activities/csndsugui/Waves.activity/csndsugui.pyc
>>>
>>> (Of course, synth.activity substitutes synth.) BTW, both .pyc's are (or
>>> have
>>> been) created (obviously compiled code with sporadic portions of what
>>> looks
>>> like csndsugui.py scattered throughout).
>>>
>>> The installed Python version is 2.5.1.
>>>
>>> Any ideas?
>>>
>>> Art Hunkins
>>>
>>> ----- Original Message ----- From: "victor" 
>>> To: 
>>> Sent: Thursday, March 05, 2009 6:42 PM
>>> Subject: [Csnd] Re: Re: Re: Python script to embed csd's for OLPC
>>>
>>>
>>>> This is basically explained in:
>>>>
>>>> http://wiki.laptop.org/go/Activity_tutorial
>>>>
>>>> it's a bundle (a directory with all the required files). Your CSD and
>>>> python script go there. You will need to include csndsugui.py in the
>>>> bundle.
>>>> Look at the examples in
>>>>
>>>> http://git.sugarlabs.org/projects/csndsugui
>>>>
>>>> (you can get them using git clone...)
>>>>
>>>> Victor
>>>>
>>>> ----- Original Message ----- From: "Art Hunkins" 
>>>> To: 
>>>> Sent: Thursday, March 05, 2009 10:28 PM
>>>> Subject: [Csnd] Re: Re: Python script to embed csd's for OLPC
>>>>
>>>>
>>>>> Victor,
>>>>>
>>>>> Where does a Python script have to be located and run from to be able
>>>>> to
>>>>> find csndsugui? It is installed normally on my OLPC, and a script run
>>>>> from a
>>>>> thumb drive cannot find it.
>>>>>
>>>>> Art Hunkins
>>>>>
>>>>> ----- Original Message ----- From: "victor" 
>>>>> To: 
>>>>> Sent: Thursday, March 05, 2009 4:23 PM
>>>>> Subject: [Csnd] Re: Python script to embed csd's for OLPC
>>>>>
>>>>>
>>>>>> See:
>>>>>>
>>>>>> http://wiki.laptop.org/go/Csndsugui
>>>>>>
>>>>>> Victor
>>>>>> ----- Original Message ----- From: "Art Hunkins" 
>>>>>> To: 
>>>>>> Sent: Thursday, March 05, 2009 9:12 PM
>>>>>> Subject: [Csnd] Python script to embed csd's for OLPC
>>>>>>
>>>>>>
>>>>>>> Since Python opcodes are absent from OLPCsound, I'd like to try
>>>>>>> embedding csd's in a Python script. My thought is to have an opening
>>>>>>> Python
>>>>>>> "initialization dialog" allowing the performer to set initialization
>>>>>>> values
>>>>>>> (accessed via chnget), then embark on real-time performance. No
>>>>>>> performance-time interaction. The run concludes as usual with Ctrl-C.
>>>>>>>
>>>>>>> Can someone point me to a Csound .py script that does just this? (I'm
>>>>>>> thinking that such a dialog could well substitute for a "setup GUI",
>>>>>>> and
>>>>>>> would not require other software, such as the csndsugui activity, to
>>>>>>> be
>>>>>>> downloaded.)
>>>>>>>
>>>>>>> Art Hunkins
>>>>>>>
>>>>>>>
>>>>>>> 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"
>>>>>
>>>>>
>>>>>
>>>>> 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"
>>>
>>>
>>>
>>> Send bugs reports to this list.
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>> csound"
>>>
>>
>>
>>
>> --
>>
>> Felipe Sateler
>>
>>
>> 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"
>



-- 

	Felipe Sateler

Date2009-03-09 08:33
Fromvictor
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Python script to embed csd's for OLPC
Not sure. I have never run Activities from the command line, I
always run them from the sugar UI. I am not sure they are meant
to be run from the terminal.

Victor
----- Original Message ----- 
From: "Felipe Sateler" 
To: 
Sent: Monday, March 09, 2009 2:01 AM
Subject: [Csnd] Re: Re: Re: Re: Re: Re: Re: Python script to embed csd's for 
OLPC


> There is the possibility that the files have Victor's ownership, and
> thus your user can't write to them. The pyc files are automatically
> generated by python when you execute a py files. Check the output of
> ls -l $file to determine if you have the right access permissions
>
> On Mon, Mar 9, 2009 at 12:56, Art Hunkins  wrote:
>> I've no idea.
>>
>> They're Victor's files, and I did nothing special in relation to them. I
>> didn't know writing was involved. Hopefully, Victor has some idea.
>>
>> Art Hunkins
>>
>> ----- Original Message ----- From: "Felipe Sateler" 
>> To: 
>> Sent: Sunday, March 08, 2009 9:48 PM
>> Subject: [Csnd] Re: Re: Re: Re: Re: Python script to embed csd's for OLPC
>>
>>
>>> Do you have write access to those files/directories?
>>>
>>> On Mon, Mar 9, 2009 at 12:18, Art Hunkins  wrote:
>>>>
>>>> Victor,
>>>>
>>>> Today I tried (on OLPC) to run your two Activities, Waves and synth -
>>>> from
>>>> their respective directories within csndsugui. I ran both with -d 
>>>> and -v
>>>> flags.
>>>>
>>>> Among the myriad of messages output, two in each run may have some
>>>> significance, and be related to why I'm getting no joy. (Both 
>>>> activities
>>>> run
>>>> for about two seconds and come back to the command line "normally".)
>>>>
>>>> The messages:
>>>> /home/olpc/Activities/csndsugui/Waves.activity/csndsugui.pyc has bad
>>>> mtime
>>>> and several lines later
>>>> can't create 
>>>> /home/olpc/Activities/csndsugui/Waves.activity/csndsugui.pyc
>>>>
>>>> (Of course, synth.activity substitutes synth.) BTW, both .pyc's are (or
>>>> have
>>>> been) created (obviously compiled code with sporadic portions of what
>>>> looks
>>>> like csndsugui.py scattered throughout).
>>>>
>>>> The installed Python version is 2.5.1.
>>>>
>>>> Any ideas?
>>>>
>>>> Art Hunkins
>>>>
>>>> ----- Original Message ----- From: "victor" 
>>>> To: 
>>>> Sent: Thursday, March 05, 2009 6:42 PM
>>>> Subject: [Csnd] Re: Re: Re: Python script to embed csd's for OLPC
>>>>
>>>>
>>>>> This is basically explained in:
>>>>>
>>>>> http://wiki.laptop.org/go/Activity_tutorial
>>>>>
>>>>> it's a bundle (a directory with all the required files). Your CSD and
>>>>> python script go there. You will need to include csndsugui.py in the
>>>>> bundle.
>>>>> Look at the examples in
>>>>>
>>>>> http://git.sugarlabs.org/projects/csndsugui
>>>>>
>>>>> (you can get them using git clone...)
>>>>>
>>>>> Victor
>>>>>
>>>>> ----- Original Message ----- From: "Art Hunkins" 
>>>>> To: 
>>>>> Sent: Thursday, March 05, 2009 10:28 PM
>>>>> Subject: [Csnd] Re: Re: Python script to embed csd's for OLPC
>>>>>
>>>>>
>>>>>> Victor,
>>>>>>
>>>>>> Where does a Python script have to be located and run from to be able
>>>>>> to
>>>>>> find csndsugui? It is installed normally on my OLPC, and a script run
>>>>>> from a
>>>>>> thumb drive cannot find it.
>>>>>>
>>>>>> Art Hunkins
>>>>>>
>>>>>> ----- Original Message ----- From: "victor" 
>>>>>> 
>>>>>> To: 
>>>>>> Sent: Thursday, March 05, 2009 4:23 PM
>>>>>> Subject: [Csnd] Re: Python script to embed csd's for OLPC
>>>>>>
>>>>>>
>>>>>>> See:
>>>>>>>
>>>>>>> http://wiki.laptop.org/go/Csndsugui
>>>>>>>
>>>>>>> Victor
>>>>>>> ----- Original Message ----- From: "Art Hunkins" 
>>>>>>> To: 
>>>>>>> Sent: Thursday, March 05, 2009 9:12 PM
>>>>>>> Subject: [Csnd] Python script to embed csd's for OLPC
>>>>>>>
>>>>>>>
>>>>>>>> Since Python opcodes are absent from OLPCsound, I'd like to try
>>>>>>>> embedding csd's in a Python script. My thought is to have an 
>>>>>>>> opening
>>>>>>>> Python
>>>>>>>> "initialization dialog" allowing the performer to set 
>>>>>>>> initialization
>>>>>>>> values
>>>>>>>> (accessed via chnget), then embark on real-time performance. No
>>>>>>>> performance-time interaction. The run concludes as usual with 
>>>>>>>> Ctrl-C.
>>>>>>>>
>>>>>>>> Can someone point me to a Csound .py script that does just this? 
>>>>>>>> (I'm
>>>>>>>> thinking that such a dialog could well substitute for a "setup 
>>>>>>>> GUI",
>>>>>>>> and
>>>>>>>> would not require other software, such as the csndsugui activity, 
>>>>>>>> to
>>>>>>>> be
>>>>>>>> downloaded.)
>>>>>>>>
>>>>>>>> Art Hunkins
>>>>>>>>
>>>>>>>>
>>>>>>>> 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"
>>>>>>
>>>>>>
>>>>>>
>>>>>> 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"
>>>>
>>>>
>>>>
>>>> Send bugs reports to this list.
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>> "unsubscribe
>>>> csound"
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> Felipe Sateler
>>>
>>>
>>> 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"
>>
>
>
>
> -- 
>
> Felipe Sateler
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe 
> csound"