Csound Csound-dev Csound-tekno Search About

pyinit error

Date2017-02-09 11:43
FromAndreas Bergsland
Subjectpyinit error
Attachmentsandreas_bergsland.vcf  
Hi,
I have updated Csound using the most recent 6.08 64-bit win installer - 
checked for python opcodes - on a 64-bit Win 7 Pro machine.

However, I got an error message from pyinit
 >>>pyinit<<<
Unexpected untyped word pyinit when expecting a variable.

I figured it might be a problem with PYTHONPATH and csound not finding 
the python module. I tried changing it using a number of variant paths:
C:\Programme\Csound6_x64\bin (this is a German PC)
C:\Program Files\Csound6_x64\bin
C:\Python27\Lib (as I saw Oeyvind suggested in an earlier post)

The path for python is C:\Python27     (ver.2.7.3 installed)

Anybody knows what PYTHONPATH should be? And what is the module file it 
looks for? Is it csnd6.py?

Best,
Andreas

-- 
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-02-09 11:45
FromVictor Lazzarini
SubjectRe: pyinit error
I think it is a problem not finding the Python
opcodes, not the module. On Windows this is call libpy.dll I think. Check your opcode directory.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 9 Feb 2017, at 11:43, Andreas Bergsland  wrote:
> 
> Hi,
> I have updated Csound using the most recent 6.08 64-bit win installer - checked for python opcodes - on a 64-bit Win 7 Pro machine.
> 
> However, I got an error message from pyinit
> >>>pyinit<<<
> Unexpected untyped word pyinit when expecting a variable.
> 
> I figured it might be a problem with PYTHONPATH and csound not finding the python module. I tried changing it using a number of variant paths:
> C:\Programme\Csound6_x64\bin (this is a German PC)
> C:\Program Files\Csound6_x64\bin
> C:\Python27\Lib (as I saw Oeyvind suggested in an earlier post)
> 
> The path for python is C:\Python27     (ver.2.7.3 installed)
> 
> Anybody knows what PYTHONPATH should be? And what is the module file it looks for? Is it csnd6.py?
> 
> Best,
> Andreas
> 
> -- 
> Andreas Bergsland
> 
> Associate professor - førsteamanuensis
> Music Technology Programme - Musikkteknologiseksjonen
> Department of Music - Institutt for musikk
> Olavskvartalet
> NTNU (Norwegian University of Science and Technology)
> 7491 Trondheim
> NORWAY
> 
> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
> e-mail: andreas.bergsland@ntnu.no
> Web: http://folk.ntnu.no/andbe
> Office phone: 7359 0096
> Mobile:       4566 3316
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-02-09 13:10
FromAndreas Bergsland
SubjectRe: pyinit error
Attachmentsandreas_bergsland.vcf  
OK thanks! I got a little bit further it seems:
Now it says:
     Import error: No module named site

What can be wrong here?
Andreas
> I think it is a problem not finding the Python
> opcodes, not the module. On Windows this is call libpy.dll I think. Check your opcode directory.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 9 Feb 2017, at 11:43, Andreas Bergsland  wrote:
>>
>> Hi,
>> I have updated Csound using the most recent 6.08 64-bit win installer - checked for python opcodes - on a 64-bit Win 7 Pro machine.
>>
>> However, I got an error message from pyinit
>>>>> pyinit<<<
>> Unexpected untyped word pyinit when expecting a variable.
>>
>> I figured it might be a problem with PYTHONPATH and csound not finding the python module. I tried changing it using a number of variant paths:
>> C:\Programme\Csound6_x64\bin (this is a German PC)
>> C:\Program Files\Csound6_x64\bin
>> C:\Python27\Lib (as I saw Oeyvind suggested in an earlier post)
>>
>> The path for python is C:\Python27     (ver.2.7.3 installed)
>>
>> Anybody knows what PYTHONPATH should be? And what is the module file it looks for? Is it csnd6.py?
>>
>> Best,
>> Andreas
>>
>> -- 
>> Andreas Bergsland
>>
>> Associate professor - førsteamanuensis
>> Music Technology Programme - Musikkteknologiseksjonen
>> Department of Music - Institutt for musikk
>> Olavskvartalet
>> NTNU (Norwegian University of Science and Technology)
>> 7491 Trondheim
>> NORWAY
>>
>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>> e-mail: andreas.bergsland@ntnu.no
>> Web: http://folk.ntnu.no/andbe
>> Office phone: 7359 0096
>> Mobile:       4566 3316
>>
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>        https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


-- 
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-02-09 13:13
FromVictor Lazzarini
SubjectRe: pyinit error
Now that sounds more like a Python path problem. It can’t find the module you are looking for.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 9 Feb 2017, at 13:10, Andreas Bergsland  wrote:
> 
> OK thanks! I got a little bit further it seems:
> Now it says:
>    Import error: No module named site
> 
> What can be wrong here?
> Andreas
>> I think it is a problem not finding the Python
>> opcodes, not the module. On Windows this is call libpy.dll I think. Check your opcode directory.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 9 Feb 2017, at 11:43, Andreas Bergsland  wrote:
>>> 
>>> Hi,
>>> I have updated Csound using the most recent 6.08 64-bit win installer - checked for python opcodes - on a 64-bit Win 7 Pro machine.
>>> 
>>> However, I got an error message from pyinit
>>>>>> pyinit<<<
>>> Unexpected untyped word pyinit when expecting a variable.
>>> 
>>> I figured it might be a problem with PYTHONPATH and csound not finding the python module. I tried changing it using a number of variant paths:
>>> C:\Programme\Csound6_x64\bin (this is a German PC)
>>> C:\Program Files\Csound6_x64\bin
>>> C:\Python27\Lib (as I saw Oeyvind suggested in an earlier post)
>>> 
>>> The path for python is C:\Python27     (ver.2.7.3 installed)
>>> 
>>> Anybody knows what PYTHONPATH should be? And what is the module file it looks for? Is it csnd6.py?
>>> 
>>> Best,
>>> Andreas
>>> 
>>> -- 
>>> Andreas Bergsland
>>> 
>>> Associate professor - førsteamanuensis
>>> Music Technology Programme - Musikkteknologiseksjonen
>>> Department of Music - Institutt for musikk
>>> Olavskvartalet
>>> NTNU (Norwegian University of Science and Technology)
>>> 7491 Trondheim
>>> NORWAY
>>> 
>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>> e-mail: andreas.bergsland@ntnu.no
>>> Web: http://folk.ntnu.no/andbe
>>> Office phone: 7359 0096
>>> Mobile:       4566 3316
>>> 
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>       https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> 
> -- 
> Andreas Bergsland
> 
> Associate professor - førsteamanuensis
> Music Technology Programme - Musikkteknologiseksjonen
> Department of Music - Institutt for musikk
> Olavskvartalet
> NTNU (Norwegian University of Science and Technology)
> 7491 Trondheim
> NORWAY
> 
> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
> e-mail: andreas.bergsland@ntnu.no
> Web: http://folk.ntnu.no/andbe
> Office phone: 7359 0096
> Mobile:       4566 3316
> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-02-09 14:01
FromAndreas Bergsland
SubjectRe: pyinit error
Attachmentsandreas_bergsland.vcf  
Ok, so now both the System and User PYTHONPATHs are:

C:\Program Files\Csound6_x64\bin\;C:\Python27\Lib\

but still same error.

If it is csnd6.py it is looking for, I can see it is in C:\Program Files\Csound6_x64\bin

I also tried several reboots, with and without the "\" at the end of the path.

Any ideas?

Andreas

    
Now that sounds more like a Python path problem. It can’t find the module you are looking for.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

On 9 Feb 2017, at 13:10, Andreas Bergsland <andreas.bergsland@ntnu.no> wrote:

OK thanks! I got a little bit further it seems:
Now it says:
   Import error: No module named site

What can be wrong here?
Andreas
I think it is a problem not finding the Python
opcodes, not the module. On Windows this is call libpy.dll I think. Check your opcode directory.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 9 Feb 2017, at 11:43, Andreas Bergsland <andreas.bergsland@NTNU.NO> wrote:

Hi,
I have updated Csound using the most recent 6.08 64-bit win installer - checked for python opcodes - on a 64-bit Win 7 Pro machine.

However, I got an error message from pyinit
pyinit<<<
Unexpected untyped word pyinit when expecting a variable.

I figured it might be a problem with PYTHONPATH and csound not finding the python module. I tried changing it using a number of variant paths:
C:\Programme\Csound6_x64\bin (this is a German PC)
C:\Program Files\Csound6_x64\bin
C:\Python27\Lib (as I saw Oeyvind suggested in an earlier post)

The path for python is C:\Python27     (ver.2.7.3 installed)

Anybody knows what PYTHONPATH should be? And what is the module file it looks for? Is it csnd6.py?

Best,
Andreas

-- 
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
<andreas_bergsland.vcf>
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

-- 
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
<andreas_bergsland.vcf>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


-- 
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316

Date2017-02-09 14:10
FromVictor Lazzarini
SubjectRe: pyinit error
No, you are not looking fro csnd6.py, you are looking for site (probably site.py), that's
what import is asking for.

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 9 Feb 2017, at 14:01, Andreas Bergsland  wrote:
> 
> Ok, so now both the System and User PYTHONPATHs are:
> 
> C:\Program Files\Csound6_x64\bin\;C:\Python27\Lib\
> 
> but still same error.
> 
> If it is csnd6.py it is looking for, I can see it is in C:\Program Files\Csound6_x64\bin
> 
> I also tried several reboots, with and without the "\" at the end of the path.
> 
> Any ideas?
> 
> Andreas
>> Now that sounds more like a Python path problem. It can’t find the module you are looking for.
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952 
>> 
>> 
>>> On 9 Feb 2017, at 13:10, Andreas Bergsland 
>>>  wrote:
>>> 
>>> OK thanks! I got a little bit further it seems:
>>> Now it says:
>>>    Import error: No module named site
>>> 
>>> What can be wrong here?
>>> Andreas
>>> 
>>>> I think it is a problem not finding the Python
>>>> opcodes, not the module. On Windows this is call libpy.dll I think. Check your opcode directory.
>>>> 
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>> 
>>>> 
>>>>> On 9 Feb 2017, at 11:43, Andreas Bergsland 
>>>>>  wrote:
>>>>> 
>>>>> Hi,
>>>>> I have updated Csound using the most recent 6.08 64-bit win installer - checked for python opcodes - on a 64-bit Win 7 Pro machine.
>>>>> 
>>>>> However, I got an error message from pyinit
>>>>> 
>>>>>>>> pyinit<<<
>>>>>>>> 
>>>>> Unexpected untyped word pyinit when expecting a variable.
>>>>> 
>>>>> I figured it might be a problem with PYTHONPATH and csound not finding the python module. I tried changing it using a number of variant paths:
>>>>> C:\Programme\Csound6_x64\bin (this is a German PC)
>>>>> C:\Program Files\Csound6_x64\bin
>>>>> C:\Python27\Lib (as I saw Oeyvind suggested in an earlier post)
>>>>> 
>>>>> The path for python is C:\Python27     (ver.2.7.3 installed)
>>>>> 
>>>>> Anybody knows what PYTHONPATH should be? And what is the module file it looks for? Is it csnd6.py?
>>>>> 
>>>>> Best,
>>>>> Andreas
>>>>> 
>>>>> -- 
>>>>> Andreas Bergsland
>>>>> 
>>>>> Associate professor - førsteamanuensis
>>>>> Music Technology Programme - Musikkteknologiseksjonen
>>>>> Department of Music - Institutt for musikk
>>>>> Olavskvartalet
>>>>> NTNU (Norwegian University of Science and Technology)
>>>>> 7491 Trondheim
>>>>> NORWAY
>>>>> 
>>>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>>>> e-mail: 
>>>>> andreas.bergsland@ntnu.no
>>>>> 
>>>>> Web: 
>>>>> http://folk.ntnu.no/andbe
>>>>> 
>>>>> Office phone: 7359 0096
>>>>> Mobile:       4566 3316
>>>>> 
>>>>> 
>>>>> Csound mailing list
>>>>> 
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>> 
>>>>> Send bugs reports to
>>>>>       
>>>>> https://github.com/csound/csound/issues
>>>>> 
>>>>> Discussions of bugs and features can be posted here
>>>>> 
>>>>> 
>>>> Csound mailing list
>>>> 
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> 
>>>> Send bugs reports to
>>>>         
>>>> https://github.com/csound/csound/issues
>>>> 
>>>> Discussions of bugs and features can be posted here
>>>> 
>>> 
>>> -- 
>>> Andreas Bergsland
>>> 
>>> Associate professor - førsteamanuensis
>>> Music Technology Programme - Musikkteknologiseksjonen
>>> Department of Music - Institutt for musikk
>>> Olavskvartalet
>>> NTNU (Norwegian University of Science and Technology)
>>> 7491 Trondheim
>>> NORWAY
>>> 
>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>> e-mail: 
>>> andreas.bergsland@ntnu.no
>>> 
>>> Web: 
>>> http://folk.ntnu.no/andbe
>>> 
>>> Office phone: 7359 0096
>>> Mobile:       4566 3316
>>> 
>>> 
>>> Csound mailing list
>>> 
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> 
>>> Send bugs reports to
>>>       
>>> https://github.com/csound/csound/issues
>>> 
>>> Discussions of bugs and features can be posted here
>>> 
>>> 
>> 
>> Csound mailing list
>> 
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> 
>> Send bugs reports to
>>         
>> https://github.com/csound/csound/issues
>> 
>> Discussions of bugs and features can be posted here
>> 
> 
> 
> -- 
> Andreas Bergsland
> 
> Associate professor - førsteamanuensis
> Music Technology Programme - Musikkteknologiseksjonen
> Department of Music - Institutt for musikk
> Olavskvartalet
> NTNU (Norwegian University of Science and Technology)
> 7491 Trondheim
> NORWAY
> 
> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
> e-mail: 
> andreas.bergsland@ntnu.no
> 
> Web: 
> http://folk.ntnu.no/andbe
> 
> Office phone: 7359 0096
> Mobile:       4566 3316
> 
> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here 


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-02-09 14:14
FromForrest Curo
SubjectRe: pyinit error
Does the previous line in the program end properly?

On Thu, Feb 9, 2017 at 3:43 AM, Andreas Bergsland <andreas.bergsland@ntnu.no> wrote:
Hi,
I have updated Csound using the most recent 6.08 64-bit win installer - checked for python opcodes - on a 64-bit Win 7 Pro machine.

However, I got an error message from pyinit
>>>pyinit<<<
Unexpected untyped word pyinit when expecting a variable.

I figured it might be a problem with PYTHONPATH and csound not finding the python module. I tried changing it using a number of variant paths:
C:\Programme\Csound6_x64\bin (this is a German PC)
C:\Program Files\Csound6_x64\bin
C:\Python27\Lib (as I saw Oeyvind suggested in an earlier post)

The path for python is C:\Python27     (ver.2.7.3 installed)

Anybody knows what PYTHONPATH should be? And what is the module file it looks for? Is it csnd6.py?

Best,
Andreas

--
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-02-09 14:24
FromAndreas Bergsland
SubjectRe: pyinit error
Attachmentsandreas_bergsland.vcf  
I am just doing:
<CsInstruments>
pyinit
instr 1
endin
</CsInstruments>

and this runs fine on OSX at least
Does the previous line in the program end properly?

On Thu, Feb 9, 2017 at 3:43 AM, Andreas Bergsland <andreas.bergsland@ntnu.no> wrote:
Hi,
I have updated Csound using the most recent 6.08 64-bit win installer - checked for python opcodes - on a 64-bit Win 7 Pro machine.

However, I got an error message from pyinit
>>>pyinit<<<
Unexpected untyped word pyinit when expecting a variable.

I figured it might be a problem with PYTHONPATH and csound not finding the python module. I tried changing it using a number of variant paths:
C:\Programme\Csound6_x64\bin (this is a German PC)
C:\Program Files\Csound6_x64\bin
C:\Python27\Lib (as I saw Oeyvind suggested in an earlier post)

The path for python is C:\Python27     (ver.2.7.3 installed)

Anybody knows what PYTHONPATH should be? And what is the module file it looks for? Is it csnd6.py?

Best,
Andreas

--
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


-- 
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316

Date2017-02-09 14:28
FromAndreas Bergsland
SubjectRe: pyinit error
Attachmentsandreas_bergsland.vcf  
I have searched through the whole

Csound6_x64\

directory, but no file called site, at least as far as I can see.

Or does the module live in another file?

Andreas

> No, you are not looking fro csnd6.py, you are looking for site (probably site.py), that's
> what import is asking for.
>
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 9 Feb 2017, at 14:01, Andreas Bergsland  wrote:
>>
>> Ok, so now both the System and User PYTHONPATHs are:
>>
>> C:\Program Files\Csound6_x64\bin\;C:\Python27\Lib\
>>
>> but still same error.
>>
>> If it is csnd6.py it is looking for, I can see it is in C:\Program Files\Csound6_x64\bin
>>
>> I also tried several reboots, with and without the "\" at the end of the path.
>>
>> Any ideas?
>>
>> Andreas
>>> Now that sounds more like a Python path problem. It can’t find the module you are looking for.
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>
>>>> On 9 Feb 2017, at 13:10, Andreas Bergsland 
>>>>   wrote:
>>>>
>>>> OK thanks! I got a little bit further it seems:
>>>> Now it says:
>>>>     Import error: No module named site
>>>>
>>>> What can be wrong here?
>>>> Andreas
>>>>
>>>>> I think it is a problem not finding the Python
>>>>> opcodes, not the module. On Windows this is call libpy.dll I think. Check your opcode directory.
>>>>>
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>>
>>>>>
>>>>>> On 9 Feb 2017, at 11:43, Andreas Bergsland 
>>>>>>   wrote:
>>>>>>
>>>>>> Hi,
>>>>>> I have updated Csound using the most recent 6.08 64-bit win installer - checked for python opcodes - on a 64-bit Win 7 Pro machine.
>>>>>>
>>>>>> However, I got an error message from pyinit
>>>>>>
>>>>>>>>> pyinit<<<
>>>>>>>>>
>>>>>> Unexpected untyped word pyinit when expecting a variable.
>>>>>>
>>>>>> I figured it might be a problem with PYTHONPATH and csound not finding the python module. I tried changing it using a number of variant paths:
>>>>>> C:\Programme\Csound6_x64\bin (this is a German PC)
>>>>>> C:\Program Files\Csound6_x64\bin
>>>>>> C:\Python27\Lib (as I saw Oeyvind suggested in an earlier post)
>>>>>>
>>>>>> The path for python is C:\Python27     (ver.2.7.3 installed)
>>>>>>
>>>>>> Anybody knows what PYTHONPATH should be? And what is the module file it looks for? Is it csnd6.py?
>>>>>>
>>>>>> Best,
>>>>>> Andreas
>>>>>>
>>>>>> -- 
>>>>>> Andreas Bergsland
>>>>>>
>>>>>> Associate professor - førsteamanuensis
>>>>>> Music Technology Programme - Musikkteknologiseksjonen
>>>>>> Department of Music - Institutt for musikk
>>>>>> Olavskvartalet
>>>>>> NTNU (Norwegian University of Science and Technology)
>>>>>> 7491 Trondheim
>>>>>> NORWAY
>>>>>>
>>>>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>>>>> e-mail:
>>>>>> andreas.bergsland@ntnu.no
>>>>>>
>>>>>> Web:
>>>>>> http://folk.ntnu.no/andbe
>>>>>>
>>>>>> Office phone: 7359 0096
>>>>>> Mobile:       4566 3316
>>>>>>
>>>>>>
>>>>>> Csound mailing list
>>>>>>
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>
>>>>>> Send bugs reports to
>>>>>>        
>>>>>> https://github.com/csound/csound/issues
>>>>>>
>>>>>> Discussions of bugs and features can be posted here
>>>>>> 
>>>>>>
>>>>> Csound mailing list
>>>>>
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>
>>>>> Send bugs reports to
>>>>>          
>>>>> https://github.com/csound/csound/issues
>>>>>
>>>>> Discussions of bugs and features can be posted here
>>>>>
>>>> -- 
>>>> Andreas Bergsland
>>>>
>>>> Associate professor - førsteamanuensis
>>>> Music Technology Programme - Musikkteknologiseksjonen
>>>> Department of Music - Institutt for musikk
>>>> Olavskvartalet
>>>> NTNU (Norwegian University of Science and Technology)
>>>> 7491 Trondheim
>>>> NORWAY
>>>>
>>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>>> e-mail:
>>>> andreas.bergsland@ntnu.no
>>>>
>>>> Web:
>>>> http://folk.ntnu.no/andbe
>>>>
>>>> Office phone: 7359 0096
>>>> Mobile:       4566 3316
>>>>
>>>>
>>>> Csound mailing list
>>>>
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>
>>>> Send bugs reports to
>>>>        
>>>> https://github.com/csound/csound/issues
>>>>
>>>> Discussions of bugs and features can be posted here
>>>> 
>>>>
>>> Csound mailing list
>>>
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>
>>> Send bugs reports to
>>>          
>>> https://github.com/csound/csound/issues
>>>
>>> Discussions of bugs and features can be posted here
>>>
>>
>> -- 
>> Andreas Bergsland
>>
>> Associate professor - førsteamanuensis
>> Music Technology Programme - Musikkteknologiseksjonen
>> Department of Music - Institutt for musikk
>> Olavskvartalet
>> NTNU (Norwegian University of Science and Technology)
>> 7491 Trondheim
>> NORWAY
>>
>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>> e-mail:
>> andreas.bergsland@ntnu.no
>>
>> Web:
>> http://folk.ntnu.no/andbe
>>
>> Office phone: 7359 0096
>> Mobile:       4566 3316
>>
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here 
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


-- 
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-02-09 14:47
FromAndreas Bergsland
SubjectRe: pyinit error
Attachmentsandreas_bergsland.vcf  
OK, I solved it finally. Seemed to be restart i combination with the 
right PYTHONPATH settings
(Sigurd tipped me that site.py resided in the Python27\Lib folder)
Sorry for all the fuzz, and thanks for the help.
Andreas
> I have searched through the whole
>
> Csound6_x64\
>
> directory, but no file called site, at least as far as I can see.
>
> Or does the module live in another file?
>
> Andreas
>
>> No, you are not looking fro csnd6.py, you are looking for site 
>> (probably site.py), that's
>> what import is asking for.
>>
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>>
>>> On 9 Feb 2017, at 14:01, Andreas Bergsland 
>>>  wrote:
>>>
>>> Ok, so now both the System and User PYTHONPATHs are:
>>>
>>> C:\Program Files\Csound6_x64\bin\;C:\Python27\Lib\
>>>
>>> but still same error.
>>>
>>> If it is csnd6.py it is looking for, I can see it is in C:\Program 
>>> Files\Csound6_x64\bin
>>>
>>> I also tried several reboots, with and without the "\" at the end of 
>>> the path.
>>>
>>> Any ideas?
>>>
>>> Andreas
>>>> Now that sounds more like a Python path problem. It can’t find the 
>>>> module you are looking for.
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy,
>>>> Maynooth University,
>>>> Maynooth, Co Kildare, Ireland
>>>> Tel: 00 353 7086936
>>>> Fax: 00 353 1 7086952
>>>>
>>>>
>>>>> On 9 Feb 2017, at 13:10, Andreas Bergsland 
>>>>> 
>>>>>   wrote:
>>>>>
>>>>> OK thanks! I got a little bit further it seems:
>>>>> Now it says:
>>>>>     Import error: No module named site
>>>>>
>>>>> What can be wrong here?
>>>>> Andreas
>>>>>
>>>>>> I think it is a problem not finding the Python
>>>>>> opcodes, not the module. On Windows this is call libpy.dll I 
>>>>>> think. Check your opcode directory.
>>>>>>
>>>>>> Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>> Maynooth University
>>>>>> Ireland
>>>>>>
>>>>>>
>>>>>>> On 9 Feb 2017, at 11:43, Andreas Bergsland 
>>>>>>> 
>>>>>>>   wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>> I have updated Csound using the most recent 6.08 64-bit win 
>>>>>>> installer - checked for python opcodes - on a 64-bit Win 7 Pro 
>>>>>>> machine.
>>>>>>>
>>>>>>> However, I got an error message from pyinit
>>>>>>>
>>>>>>>>>> pyinit<<<
>>>>>>>>>>
>>>>>>> Unexpected untyped word pyinit when expecting a variable.
>>>>>>>
>>>>>>> I figured it might be a problem with PYTHONPATH and csound not 
>>>>>>> finding the python module. I tried changing it using a number of 
>>>>>>> variant paths:
>>>>>>> C:\Programme\Csound6_x64\bin (this is a German PC)
>>>>>>> C:\Program Files\Csound6_x64\bin
>>>>>>> C:\Python27\Lib (as I saw Oeyvind suggested in an earlier post)
>>>>>>>
>>>>>>> The path for python is C:\Python27     (ver.2.7.3 installed)
>>>>>>>
>>>>>>> Anybody knows what PYTHONPATH should be? And what is the module 
>>>>>>> file it looks for? Is it csnd6.py?
>>>>>>>
>>>>>>> Best,
>>>>>>> Andreas
>>>>>>>
>>>>>>> -- 
>>>>>>> Andreas Bergsland
>>>>>>>
>>>>>>> Associate professor - førsteamanuensis
>>>>>>> Music Technology Programme - Musikkteknologiseksjonen
>>>>>>> Department of Music - Institutt for musikk
>>>>>>> Olavskvartalet
>>>>>>> NTNU (Norwegian University of Science and Technology)
>>>>>>> 7491 Trondheim
>>>>>>> NORWAY
>>>>>>>
>>>>>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>>>>>> e-mail:
>>>>>>> andreas.bergsland@ntnu.no
>>>>>>>
>>>>>>> Web:
>>>>>>> http://folk.ntnu.no/andbe
>>>>>>>
>>>>>>> Office phone: 7359 0096
>>>>>>> Mobile:       4566 3316
>>>>>>>
>>>>>>>
>>>>>>> Csound mailing list
>>>>>>>
>>>>>>> Csound@listserv.heanet.ie
>>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>>
>>>>>>> Send bugs reports to
>>>>>>>        https://github.com/csound/csound/issues
>>>>>>>
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> 
>>>>>>>
>>>>>> Csound mailing list
>>>>>>
>>>>>> Csound@listserv.heanet.ie
>>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>>
>>>>>> Send bugs reports to
>>>>>>          https://github.com/csound/csound/issues
>>>>>>
>>>>>> Discussions of bugs and features can be posted here
>>>>>>
>>>>> -- 
>>>>> Andreas Bergsland
>>>>>
>>>>> Associate professor - førsteamanuensis
>>>>> Music Technology Programme - Musikkteknologiseksjonen
>>>>> Department of Music - Institutt for musikk
>>>>> Olavskvartalet
>>>>> NTNU (Norwegian University of Science and Technology)
>>>>> 7491 Trondheim
>>>>> NORWAY
>>>>>
>>>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>>>> e-mail:
>>>>> andreas.bergsland@ntnu.no
>>>>>
>>>>> Web:
>>>>> http://folk.ntnu.no/andbe
>>>>>
>>>>> Office phone: 7359 0096
>>>>> Mobile:       4566 3316
>>>>>
>>>>>
>>>>> Csound mailing list
>>>>>
>>>>> Csound@listserv.heanet.ie
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>>
>>>>> Send bugs reports to
>>>>>        https://github.com/csound/csound/issues
>>>>>
>>>>> Discussions of bugs and features can be posted here
>>>>> 
>>>>>
>>>> Csound mailing list
>>>>
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>>
>>>> Send bugs reports to
>>>>          https://github.com/csound/csound/issues
>>>>
>>>> Discussions of bugs and features can be posted here
>>>>
>>>
>>> -- 
>>> Andreas Bergsland
>>>
>>> Associate professor - førsteamanuensis
>>> Music Technology Programme - Musikkteknologiseksjonen
>>> Department of Music - Institutt for musikk
>>> Olavskvartalet
>>> NTNU (Norwegian University of Science and Technology)
>>> 7491 Trondheim
>>> NORWAY
>>>
>>> Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
>>> e-mail:
>>> andreas.bergsland@ntnu.no
>>>
>>> Web:
>>> http://folk.ntnu.no/andbe
>>>
>>> Office phone: 7359 0096
>>> Mobile:       4566 3316
>>>
>>> Csound mailing list Csound@listserv.heanet.ie 
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to 
>>> https://github.com/csound/csound/issues Discussions of bugs and 
>>> features can be posted here 
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>          https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>


-- 
Andreas Bergsland

Associate professor - førsteamanuensis
Music Technology Programme - Musikkteknologiseksjonen
Department of Music - Institutt for musikk
Olavskvartalet
NTNU (Norwegian University of Science and Technology)
7491 Trondheim
NORWAY

Visiting address/besøksadresse: Fjordgt.1 (3.etg.)
e-mail: andreas.bergsland@ntnu.no
Web: http://folk.ntnu.no/andbe
Office phone: 7359 0096
Mobile:       4566 3316


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here