[Csnd] csound6 and python error
Date | 2013-05-17 23:07 |
From | francesco |
Subject | [Csnd] csound6 and python error |
Hello All, curious about the latest news i tried Csound6 using Python but i have this error message ImportError: dynamic module does not define init function (init_csnd6) some python master can please tell me what i'm doing wrong? ubuntu 12.04 32 bit Thanks, ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/csound6-and-python-error-tp5723623.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-05-17 23:12 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csound6 and python error |
What python version are you using? Make sure it's 2.7. On 17 May 2013, at 23:07, francesco wrote: > Hello All, > curious about the latest news i tried Csound6 using Python > but i have this error message > ImportError: dynamic module does not define init function (init_csnd6) > > some python master can please tell me what i'm doing wrong? > > ubuntu 12.04 32 bit > > Thanks, > ciao, > francesco. > > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/csound6-and-python-error-tp5723623.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > 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 |
Date | 2013-05-17 23:18 |
From | francesco |
Subject | [Csnd] Re: csound6 and python error |
Yes, i'm using 2.7.3 from the repository. I do not have installed csound6 but i have added the build directory in PYTHONPATH and set OPCODE6DIR to same directory. Maybe this is wrong? Thanks, ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/csound6-and-python-error-tp5723623p5723625.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-05-17 23:23 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: csound6 and python error |
I wouldn't think so. Try this command with the python module (_csnd6.so). coltrane:debug victor$ nm _csnd6.so | grep 'init_csnd6' 0000000000075589 T _init_csnd6 If it prints out like above _init_csnd6, then the symbol is there OK. On 17 May 2013, at 23:18, francesco wrote: > Yes, i'm using 2.7.3 from the repository. > I do not have installed csound6 but i have added the build directory > in PYTHONPATH and set OPCODE6DIR to same directory. > Maybe this is wrong? > > > Thanks, > ciao, > francesco. > > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/csound6-and-python-error-tp5723623p5723625.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > 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 |
Date | 2013-05-17 23:28 |
From | francesco |
Subject | [Csnd] Re: csound6 and python error |
it doesn't print nothing! I guess somethings it's wrong. ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/csound6-and-python-error-tp5723623p5723627.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-05-17 23:32 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: csound6 and python error |
yes, then it's a build problem. This function is defined in the python_interface.cxx file that SWIG generates: coltrane:interfaces victor$ grep init_csnd6 python_interfacePYTHON_wrap.cxx # define SWIG_init init_csnd6 you can start checking that. On 17 May 2013, at 23:28, francesco wrote: > it doesn't print nothing! > I guess somethings it's wrong. > > ciao, > francesco. > > > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/csound6-and-python-error-tp5723623p5723627.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > 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 |
Date | 2013-05-17 23:37 |
From | francesco |
Subject | [Csnd] Re: csound6 and python error |
Ok, thank You for now. I will try to rebuild csound6. Eventually i will be here again, but tomorrow. ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/csound6-and-python-error-tp5723623p5723629.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-05-17 23:40 |
From | francesco |
Subject | [Csnd] Re: csound6 and python error |
it's there. fra@fra-dv5:~/csound6/build/interfaces$ grep init_csnd6 python_interfacePYTHON_wrap.cxx # define SWIG_init init_csnd6 -- View this message in context: http://csound.1045644.n5.nabble.com/csound6-and-python-error-tp5723623p5723630.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-05-17 23:46 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Re: csound6 and python error |
Well, that is the correct thing. I noticed that the _csnd6.so in the interfaces directory does not contain _init_csnd6. The one on the top-level build does. On 17 May 2013, at 23:40, francesco wrote: > it's there. > > fra@fra-dv5:~/csound6/build/interfaces$ grep init_csnd6 > python_interfacePYTHON_wrap.cxx > > # define SWIG_init init_csnd6 > > > > > > -- > View this message in context: http://csound.1045644.n5.nabble.com/csound6-and-python-error-tp5723623p5723630.html > Sent from the Csound - General mailing list archive at Nabble.com. > > > 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 |
Date | 2013-05-18 14:10 |
From | francesco |
Subject | [Csnd] Re: csound6 and python error |
Ok, Your first reply was the right! My build used python3, that i did not know to have installed. Now it's ok. I'm guessing Csound6 will works with Python 2, maybe it's possible to set cmake for searching for the correct Python version? Thank You and sorry for the noise. ciao, francesco. -- View this message in context: http://csound.1045644.n5.nabble.com/csound6-and-python-error-tp5723623p5723666.html Sent from the Csound - General mailing list archive at Nabble.com. |