Csound Csound-dev Csound-tekno Search About

[Csnd] bug report: pyexec not working on 5.19

Date2013-02-11 09:48
FromAndreas Bergsland
Subject[Csnd] bug report: pyexec not working on 5.19
Hi,
I had some problems when transferring a csd from mac to win and I found 
that it was pyexec that was causing the problem.
I tested the pyexec examples in the manual and got "Csound tidy up: 
Segmentation violation".
I am on win7 enterprise SP1, 64-bit running 5.19.02.
Best,
Andreas

-- 
Andreas Bergsland,
Postdoctoral researcher
Music Technology Group
Dept. of Music
NTNU
7491 Olavshallen
NORWAY

E-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Phone: +47 73 59 00 96
Cell:  +47 45 66 33 16


Date2013-02-11 10:58
FromVictor Lazzarini
SubjectRe: [Csnd] bug report: pyexec not working on 5.19
Is that a problem on the Mac too?  Can you give us a CSD example so we can fix it?
On 11 Feb 2013, at 09:48, Andreas Bergsland wrote:

> Hi,
> I had some problems when transferring a csd from mac to win and I found that it was pyexec that was causing the problem.
> I tested the pyexec examples in the manual and got "Csound tidy up: Segmentation violation".
> I am on win7 enterprise SP1, 64-bit running 5.19.02.
> Best,
> Andreas
> 
> -- 
> Andreas Bergsland,
> Postdoctoral researcher
> Music Technology Group
> Dept. of Music
> NTNU
> 7491 Olavshallen
> NORWAY
> 
> E-mail: andreas.bergsland@ntnu.no
> Web: http://folk.ntnu.no/andbe
> Phone: +47 73 59 00 96
> Cell:  +47 45 66 33 16
> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-02-11 11:48
FromAndreas Bergsland
SubjectRe: [Csnd] bug report: pyexec not working on 5.19
Seems to work fine on the mac (5.18.03). The files I tested were just 
the examples in the manual for pyexec:





sr=44100
kr=4410
ksmps=10
nchnls=1
;If you're not running CsoundAC you need the following line
;to initialize the python interpreter
pyinit
         pyruni "import random"
         pyexeci "pyexec1.py"

instr 1
         pyexec          "pyexec2.py"
         pylexeci        "pyexec3.py"
         pylexec         "pyexec4.py"
endin


i1 0 0.01
i1 0 0.01



pyexec1.py:
import time, os

print
print "Welcome to Csound!"

try:
     s = ', %s?' % os.getenv('USER')
except:
     s = '?'

print 'What sound do you want to hear today%s' % s
answer = raw_input()


pyexec2.py:
print 'your answer is "%s"' % answer

pyexec3.py:
message = 'a private random number: %f' % random.random()

pyexec4.py:
print message


> Is that a problem on the Mac too?  Can you give us a CSD example so we can fix it?
> On 11 Feb 2013, at 09:48, Andreas Bergsland wrote:
>
>> Hi,
>> I had some problems when transferring a csd from mac to win and I found that it was pyexec that was causing the problem.
>> I tested the pyexec examples in the manual and got "Csound tidy up: Segmentation violation".
>> I am on win7 enterprise SP1, 64-bit running 5.19.02.
>> Best,
>> Andreas
>>
>> -- 
>> Andreas Bergsland,
>> Postdoctoral researcher
>> Music Technology Group
>> Dept. of Music
>> NTNU
>> 7491 Olavshallen
>> NORWAY
>>
>> E-mail: andreas.bergsland@ntnu.no
>> Web: http://folk.ntnu.no/andbe
>> Phone: +47 73 59 00 96
>> Cell:  +47 45 66 33 16
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>              https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


-- 
Andreas Bergsland,
Postdoctoral researcher
Music Technology Group
Dept. of Music
NTNU
7491 Olavshallen
NORWAY

E-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Phone: +47 73 59 00 96
Cell:  +47 45 66 33 16


Date2013-02-11 11:54
FromVictor Lazzarini
SubjectRe: [Csnd] bug report: pyexec not working on 5.19
yes, I tested here with 5.19 and it works OK. So it appears to be a Windows issue.

Victor
On 11 Feb 2013, at 11:48, Andreas Bergsland wrote:

> Seems to work fine on the mac (5.18.03). The files I tested were just the examples in the manual for pyexec:
> 
> 
> 
> 
> 
> sr=44100
> kr=4410
> ksmps=10
> nchnls=1
> ;If you're not running CsoundAC you need the following line
> ;to initialize the python interpreter
> pyinit
>        pyruni "import random"
>        pyexeci "pyexec1.py"
> 
> instr 1
>        pyexec          "pyexec2.py"
>        pylexeci        "pyexec3.py"
>        pylexec         "pyexec4.py"
> endin
> 
> 
> i1 0 0.01
> i1 0 0.01
> 
> 
> 
> pyexec1.py:
> import time, os
> 
> print
> print "Welcome to Csound!"
> 
> try:
>    s = ', %s?' % os.getenv('USER')
> except:
>    s = '?'
> 
> print 'What sound do you want to hear today%s' % s
> answer = raw_input()
> 
> 
> pyexec2.py:
> print 'your answer is "%s"' % answer
> 
> pyexec3.py:
> message = 'a private random number: %f' % random.random()
> 
> pyexec4.py:
> print message
> 
> 
>> Is that a problem on the Mac too?  Can you give us a CSD example so we can fix it?
>> On 11 Feb 2013, at 09:48, Andreas Bergsland wrote:
>> 
>>> Hi,
>>> I had some problems when transferring a csd from mac to win and I found that it was pyexec that was causing the problem.
>>> I tested the pyexec examples in the manual and got "Csound tidy up: Segmentation violation".
>>> I am on win7 enterprise SP1, 64-bit running 5.19.02.
>>> Best,
>>> Andreas
>>> 
>>> -- 
>>> Andreas Bergsland,
>>> Postdoctoral researcher
>>> Music Technology Group
>>> Dept. of Music
>>> NTNU
>>> 7491 Olavshallen
>>> NORWAY
>>> 
>>> E-mail: andreas.bergsland@ntnu.no
>>> Web: http://folk.ntnu.no/andbe
>>> Phone: +47 73 59 00 96
>>> Cell:  +47 45 66 33 16
>>> 
>>> 
>>> 
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> 
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>> 
> 
> 
> -- 
> Andreas Bergsland,
> Postdoctoral researcher
> Music Technology Group
> Dept. of Music
> NTNU
> 7491 Olavshallen
> NORWAY
> 
> E-mail: andreas.bergsland@ntnu.no
> Web: http://folk.ntnu.no/andbe
> Phone: +47 73 59 00 96
> Cell:  +47 45 66 33 16
> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie