Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] csnd - initcsnd

Date2007-11-02 17:44
FromVictor Lazzarini
SubjectRe: [Cs-dev] csnd - initcsnd
csnd.dll is all the interfaces code that the
python module uses. I suppose it can go where
you keep your csound binary or anywhere else
in your path that is not in the way.

_csnd.pyd is on windows the name of the binary
bit (the actual DLL) of the csnd module (used
to be _csnd.dll), which csnd.py loads.

Victor

>
> 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

Date2007-11-03 17:40
From"Oeyvind Brandtsegg"
SubjectRe: [Cs-dev] csnd - initcsnd
AttachmentsNone