Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] csnd - initcsnd

Date2007-10-30 16:35
From"gogins@pipeline.com"
SubjectRe: [Cs-dev] csnd - initcsnd
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® 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

Date2007-11-02 14:57
From"Oeyvind Brandtsegg"
SubjectRe: [Cs-dev] csnd - initcsnd
AttachmentsNone