Don't delete csnd.dll, you need it. Move it somewhere else in your path.
It works here.
Victor
----- Original Message -----
From: Oeyvind Brandtsegg <obrandts@gmail.com>
Date: Tuesday, October 30, 2007 2:20 pm
Subject: Re: [Cs-dev] csnd - initcsnd
To: Developer discussions <csound-devel@lists.sourceforge.net>
> 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 <Victor.Lazzarini@nuim.ie>:
> > 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 <obrandts@gmail.com>
> > Date: Tuesday, October 30, 2007 12:52 pm
> > Subject: Re: [Cs-dev] csnd - initcsnd
> > To: Developer discussions
> > <csound-devel@lists.sourceforge.net>
> >
> > > 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 <gogins@pipeline.com>:
> > > > 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" <obrandts@gmail.com>
> > > > To: "Developer discussions"
> > <csound-devel@lists.sourceforge.net>
> > > > 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