Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] csnd - initcsnd

Date2007-11-02 17:18
FromMichael Gogins
SubjectRe: [Cs-dev] csnd - initcsnd
I have previously posted a description of this hierarchy. Here it is again, in shorter form.

csound64.dll.5.1 is Csound, and exports the Csound C API.

csnd.dll dynamically LINKS with csound64.dll.5.1, and exports the Csound C++ API, in the form of CppSound, and CsoundFile; also includes the Lua wrappers.

_csnd.pyd dynamically LINKS with csnd.dll, and provides Python C API stubs to it, generated by SWIG.

csnd.py dynamically LOADS _csnd.pyd, and provides Python class proxies to CppSound.

CsoundAC.dll exports algorithmic classes that can use Csound, and dynamically LINKS with csnd.dll.

_CsoundAC.pyd dynamically LINKS with CsoundAC.dll, and provides Python C API stubs to it, generated by SWIG.

CsoundAC.py dynamically LOADS _CsoundAC.pyd, and provides Python class proxies to CsoundAC.

Hope this helps,
Mike

-----Original Message-----
>From: Oeyvind Brandtsegg 
>Sent: Nov 2, 2007 10:57 AM
>To: Developer discussions 
>Subject: Re: [Cs-dev] csnd - initcsnd
>
>I got this working for python2.4 and also for 2.5,
>but moving csnd.dll out of /bin as Victor said.
>Only, I don't know the correct location for it.
>Currently I just put it in /interfaces and added /interfaces to my path.
>
>What does csnd.dll do anyway ? Is it related to the python csnd module
>or something else ? I would be glad to get a description of the
>relation between
>csnd.dll
>csnd.py
>_csnd.py
>_csnd.pyd (well, that's _csnd.py for 2.5, right ?)
>
>best
>Oeyvind
>
>2007/10/30, gogins@pipeline.com :
>> If you have a .pyd that is only for Python 2.5.
>>
>> Best bet:
>>
>> Upgrade to Python 2.5.
>>
>> Completely clean and rebuild Csound.
>>
>> Hope this helps,
>> Mike
>>
>> Original Message:
>> -----------------
>> From: Oeyvind Brandtsegg obrandts@gmail.com
>> Date: Tue, 30 Oct 2007 15:19:56 +0100
>> To: csound-devel@lists.sourceforge.net
>> Subject: Re: [Cs-dev] csnd - initcsnd
>>
>>
>> When deleting csnd.dll, I get:
>>    import csnd
>> ImportError: No module named csnd
>>
>>
>> If I try to import _csnd instead of csnd, i get:
>>    self.csound = _csnd.CppSound()
>> AttributeError: 'module' object has no attribute 'CppSound'
>>
>> I'm using python2.4, should that matter in this case ?
>>
>> best
>> Oeyvind
>>
>> 2007/10/30, Victor Lazzarini :
>> > The problem is that there is a file called csnd.dll in the directory,
>> > which is not a python module, import csnd tries to import it,
>> > when it should be importing csnd.py instead.
>> >
>> > Solution: move csnd.dll out of there.
>> >
>> > Victor
>> >
>> > ----- Original Message -----
>> > From: Oeyvind Brandtsegg 
>> > Date: Tuesday, October 30, 2007 12:52 pm
>> > Subject: Re: [Cs-dev] csnd - initcsnd
>> > To: Developer discussions
>> > 
>> >
>> > > I'm on winXP. I do have a _csnd.pyd file.
>> > > I use mingw/msys, and I have a "nm" and a "pexports" command but I
>> > > don't know how to use them (arguments ?).
>> > >
>> > > Oeyvind
>> > >
>> > > 2007/10/30, Michael Gogins :
>> > > > What platform, what architecture, what version of Csound?
>> > > >
>> > > > You might possibly be able to fix this. Python has naming
>> > > conventions for
>> > > > extension modules (_csnd.pyd on Windows, _csnd.so on Linux, etc.).
>> > > >
>> > > > Also run nm or pexports or dumpbin or whatever (depends on
>> > > platform) to list
>> > > > public symbols in modules and see if you find initcsnd.
>> > > >
>> > > > Regards,
>> > > > Mike
>> > > >
>> > > > ----- Original Message -----
>> > > > From: "Oeyvind Brandtsegg" 
>> > > > To: "Developer discussions"
>> > 
>> > > > Sent: Tuesday, October 30, 2007 6:30 AM
>> > > > Subject: [Cs-dev] csnd - initcsnd
>> > > >
>> > > >
>> > > > > I've compiled csound from a fresh CVS checkout,
>> > > > > and I get this error when trying to use the csnd module in python
>> > > > >
>> > > > >    import csnd
>> > > > > ImportError: dynamic module does not define init function
>> > > (initcsnd)> >
>> > > > > Any hints as to what this is related to is greatly appreciated.
>> > > > >
>> > > > > best
>> > > > > Oeyvind
>> > > > >
>> > > > >
>> > -------------------------------------------------------------
>> > > ------------
>> > > > > This SF.net email is sponsored by: Splunk Inc.
>> > > > > Still grepping through log files to find problems?  Stop.
>> > > > > Now Search log events and configuration files using AJAX and
>> > > a browser.
>> > > > > Download your FREE copy of Splunk now >> http://get.splunk.com/
>> > > > > _______________________________________________
>> > > > > Csound-devel mailing list
>> > > > > Csound-devel@lists.sourceforge.net
>> > > > >
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> > > >
>> > > >
>> > > >
>> > ---------------------------------------------------------------
>> > > ----------
>> > > > This SF.net email is sponsored by: Splunk Inc.
>> > > > Still grepping through log files to find problems?  Stop.
>> > > > Now Search log events and configuration files using AJAX and a
>> > > browser.> Download your FREE copy of Splunk now >>
>> > > http://get.splunk.com/>
>> > > _______________________________________________>
>> > Csound-devel
>> > > mailing list
>> > > > Csound-devel@lists.sourceforge.net
>> > > >
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> > > >
>> > >
>> > >
>> > -----------------------------------------------------------------
>> >
>> > > --------
>> > > This SF.net email is sponsored by: Splunk Inc.
>> > > Still grepping through log files to find problems?  Stop.
>> > > Now Search log events and configuration files using AJAX and a
>> > > browser.Download your FREE copy of Splunk now >>
>> > >
>> > http://get.splunk.com/_______________________________________________
>> > > Csound-devel mailing list
>> > > Csound-devel@lists.sourceforge.net
>> > > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> > -------------------------------------------------------------------------
>> > This SF.net email is sponsored by: Splunk Inc.
>> > Still grepping through log files to find problems?  Stop.
>> > Now Search log events and configuration files using AJAX and a browser.
>> > Download your FREE copy of Splunk now >> http://get.splunk.com/
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> --------------------------------------------------------------------
>> mail2web LIVE – Free email based on Microsoft(R) Exchange technology -
>> http://link.mail2web.com/LIVE
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc.
>> Still grepping through log files to find problems?  Stop.
>> Now Search log events and configuration files using AJAX and a browser.
>> Download your FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc.
>Still grepping through log files to find problems?  Stop.
>Now Search log events and configuration files using AJAX and a browser.
>Download your FREE copy of Splunk now >> http://get.splunk.com/
>_______________________________________________
>Csound-devel mailing list
>Csound-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/csound-devel




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/c