Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Python interface availability

Date2006-02-03 22:07
FromMichael Gogins
SubjectRe: [Cs-dev] Python interface availability
On Windows with the Windows installer, the csnd module ends up in the installation bin directory. The CsoundVST module also ends up there. It contains the "Silence" algorithmic composition classes, which might well complement the athenaCL classes as they take a somewhat different approach to composition.

Nothing is installed in the Python directories, because then were would be multiple copies of the shared libraries, since the regular CsoundVST program uses some of them also. 

Presumably, an __init__.py file could be installed in Python/lib/site-packages/csnd that would point back to the csound bin directory, but I am not sure this is possible and haven't experimented it with it.

I would really be glad to see a way of loading and invoking the athenaCL code programmatically in Python and/or with CsoundVST, rather than working with the athenaCL command line.

Regards,
Mike

-----Original Message-----
>From: Anthony Kozar 
>Sent: Feb 3, 2006 4:29 PM
>To: New Csound Developer list 
>Subject: [Cs-dev] Python interface availability
>
>I have been communicating about Cs5 a little with Christopher Ariza (of
>athenaCL fame).  We have been discussing how athenaCL can begin using the
>Csound API.
>
>christopher ariza wrote on 2/3/06 11:34 AM:
>
>>> If you would like me to look into exactly which Csound 5 packages install
>>> the Python stuff by default, I would be happy to get back to you with that
>>> information. 
>> 
>> yes, that would be great if not too much trouble. the only missing
>> link off the tope of my head is the csnd.py module will have to be
>> added to the users sys.path; this of course can be done in python, so
>> knowing where the default locations for each platform install of
>> csnd.py is essential.
>
>So I need to answer the following questions about each of the packages on
>Sourceforge:
>
>A.  Does it include the Python interface (_csnd library and csnd.py)?
>B.  Does it install them somewhere in the Lib directory of the Python
>distro?
>C.  Does the user have to set PYTHONPATH or do any other configuration to
>make it work?
>
>Thanks very much for your help!
>
>I am looking to fill in the following table:
>
>Package                         included?   in Lib?     configured?
>--------------------------------------------------------------------
>Csound5.00_OS9.smi.bin              no*         no          yes*
>Csound5.00_OSX10.2.tar.gz
>Csound5.00_OSX10.3.tar.gz           yes         yes         ?
>Csound5.00_OSX10.4.tar.gz
>Csound5.00_win32.exe                yes         ?           ?
>Csound5.00_win32.i686.zip
>Csound5.00_i686.rpm
>Csound5.00_x86_64d.tar.gz
>Csound5.00_x86_64f.tar.gz
>Csound5.00_x86_64.rpm
>
>
>* Interface not included in 5.00 release but will be in future release; user
>will have to install by hand but no further configuration necessary.
>
>
>Anthony Kozar
>anthonykozar AT sbcglobal DOT net
>
>
>
>-------------------------------------------------------
>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
>for problems?  Stop!  Download the new AJAX search engine that makes
>searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
>_______________________________________________
>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. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-02-04 10:32
FromOeyvind Brandtsegg
Subjectre: [Cs-dev] Python interface availability
I fully agree, Michael.

Being able to use both Silence and athenaCL tools/functions programmatically in Python would be very flexible and nice. I've been looking at both libraries (maybe an insufficient term, as they are also applications) with eagerness and curiosity. Wanting to use them, but still at a stage where I wonder how to integrate them into my own setup.

best
Oeyvind





> From: Michael Gogins [gogins@pipeline.com]
> Sent: 2006-02-03 23:07:57 CET
> To: csound-devel@lists.sourceforge.net
> Subject: Re: [Cs-dev] Python interface availability
> 
> On Windows with the Windows installer, the csnd module ends up in the installation bin directory. The CsoundVST module also ends up there. It contains the "Silence" algorithmic composition classes, which might well complement the athenaCL classes as they take a somewhat different approach to composition.
> 
> Nothing is installed in the Python directories, because then were would be multiple copies of the shared libraries, since the regular CsoundVST program uses some of them also. 
> 
> Presumably, an __init__.py file could be installed in Python/lib/site-packages/csnd that would point back to the csound bin directory, but I am not sure this is possible and haven't experimented it with it.
> 
> I would really be glad to see a way of loading and invoking the athenaCL code programmatically in Python and/or with CsoundVST, rather than working with the athenaCL command line.
> 
> Regards,
> Mike
> 
> -----Original Message-----
> >From: Anthony Kozar 
> >Sent: Feb 3, 2006 4:29 PM
> >To: New Csound Developer list 
> >Subject: [Cs-dev] Python interface availability
> >
> >I have been communicating about Cs5 a little with Christopher Ariza (of
> >athenaCL fame).  We have been discussing how athenaCL can begin using the
> >Csound API.
> >
> >christopher ariza wrote on 2/3/06 11:34 AM:
> >
> >>> If you would like me to look into exactly which Csound 5 packages install
> >>> the Python stuff by default, I would be happy to get back to you with that
> >>> information. 
> >> 
> >> yes, that would be great if not too much trouble. the only missing
> >> link off the tope of my head is the csnd.py module will have to be
> >> added to the users sys.path; this of course can be done in python, so
> >> knowing where the default locations for each platform install of
> >> csnd.py is essential.
> >
> >So I need to answer the following questions about each of the packages on
> >Sourceforge:
> >
> >A.  Does it include the Python interface (_csnd library and csnd.py)?
> >B.  Does it install them somewhere in the Lib directory of the Python
> >distro?
> >C.  Does the user have to set PYTHONPATH or do any other configuration to
> >make it work?
> >
> >Thanks very much for your help!
> >
> >I am looking to fill in the following table:
> >
> >Package                         included?   in Lib?     configured?
> >--------------------------------------------------------------------
> >Csound5.00_OS9.smi.bin              no*         no          yes*
> >Csound5.00_OSX10.2.tar.gz
> >Csound5.00_OSX10.3.tar.gz           yes         yes         ?
> >Csound5.00_OSX10.4.tar.gz
> >Csound5.00_win32.exe                yes         ?           ?
> >Csound5.00_win32.i686.zip
> >Csound5.00_i686.rpm
> >Csound5.00_x86_64d.tar.gz
> >Csound5.00_x86_64f.tar.gz
> >Csound5.00_x86_64.rpm
> >
> >
> >* Interface not included in 5.00 release but will be in future release; user
> >will have to install by hand but no further configuration necessary.
> >
> >
> >Anthony Kozar
> >anthonykozar AT sbcglobal DOT net
> >
> >
> >
> >-------------------------------------------------------
> >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> >for problems?  Stop!  Download the new AJAX search engine that makes
> >searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> >_______________________________________________
> >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. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 

Date2006-03-10 18:56
FromAnthony Kozar
SubjectRe: [Cs-dev] Python interface availability
I am still trying to get a complete picture of python interface availability
in the different release packages.  Here is what I have now:

A.  Does it include the Python interface (_csnd library and csnd.py)?
B.  Does it install them somewhere in the Lib directory of the Python
distro?
C.  Does the user have to set PYTHONPATH or do any other configuration to
make it work?

Package                         included?   in Lib?     configured?
--------------------------------------------------------------------
Csound5.00_OS9.smi.bin              no*         no          yes*
Csound5.00_OSX10.2.tar.gz           yes#        yes         yes
Csound5.00_OSX10.3.tar.gz           yes         yes         yes
Csound5.00_OSX10.4.tar.gz           yes         yes         yes
Csound5.00_win32.exe                yes         no+         no
Csound5.00_win32.i686.zip           yes         no          no
Csound5.00_i686.rpm                 yes?        ?           ?
Csound5.00_i386f.tar.gz             yes         ?           ?
Csound5.00_x86_64d.tar.gz           yes         ?           ?
Csound5.00_x86_64f.tar.gz           yes         ?           ?
Csound5.00_x86_64.rpm               yes?        ?           ?


To Michael:  Regarding the Windows installer, does the installer set
PYTHONPATH so that the csnd module is found in the bin directory that it is
installed to?

To Istvan:  Am I correct that there is not an installer in the Windows zip
package?  Do your RPM packages include the Python interface and install them
into the Python Lib directory?

To John ff:  Where does your installer put the csnd.py and _csnd.so files?

To Victor:  Thanks very much for updating the 10.2 package.  It now installs
the csnd python module into the correct place on my system.  However, when I
try to import it, I get the following error messages:

[fiona:lib/python2.3/site-packages] anthony% python
Python 2.3.5 (#1, Feb 10 2005, 16:29:16)
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import csnd
Traceback (most recent call last):
  File "", line 1, in ?
  File 
"/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/csnd.py",
line 4, in ?
    import _csnd
ImportError: Failure linking new module: : dyld: python Undefined symbols:
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/_csnd.so
undefined reference to _btowc expected to be defined in
/usr/lib/libSystem.B.dylib
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/_csnd.so
undefined reference to _iswctype expected to be defined in
/usr/lib/libSystem.B.dylib
/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/_csnd.so
undefined reference to _mbsrtowcs expected to be defined in /

(This is with the most recent 5.00 package for 10.2).


Thanks very much!

Anthony

Michael Gogins wrote on 2/3/06 5:07 PM:

> On Windows with the Windows installer, the csnd module ends up in the
> installation bin directory.

> Nothing is installed in the Python directories, because then were would be
> multiple copies of the shared libraries, since the regular CsoundVST program
> uses some of them also. 



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-03-10 21:41
FromIstvan Varga
SubjectRe: [Cs-dev] Python interface availability
AttachmentsNone  

Date2006-03-10 21:44
FromIstvan Varga
SubjectRe: [Cs-dev] Python interface availability
AttachmentsNone  

Date2006-03-10 22:05
FromAnthony Kozar
SubjectRe: [Cs-dev] Python interface availability
Thanks very much Istvan for answering my questions about the Windows and
Linux packages that you mentioned.  That is very helpful since I cannot open
the RPMs myself :)

Anthony



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-03-10 23:34
FromAnthony Kozar
SubjectRe: [Cs-dev] Python interface availability
OK.  I am going to send the following information to Christopher Ariza
unless I hear back any further about the Linux tarballs (which are the only
packages that I am unsure about at this point).

Thanks to all for the help.

Anthony


Package                         included?   in Lib?     configured?
--------------------------------------------------------------------
Csound5.00_OS9.smi.bin              no*         no          yes*
Csound5.00_OSX10.2.tar.gz           yes#        yes         yes
Csound5.00_OSX10.3.tar.gz           yes         yes         yes
Csound5.00_OSX10.4.tar.gz           yes         yes         yes
Csound5.00_win32.exe                yes         no+         yes
Csound5.00_win32.i686.zip           yes         no          no
Csound5.00_i386f.tar.gz             yes         no?         ?
Csound5.00_x86_64d.tar.gz           yes         no?         ?
Csound5.00_x86_64f.tar.gz           yes         no?         ?
Csound5.00_x86_64.rpm               yes         yes         yes
Csound5.00_i686.rpm                 yes         yes         yes

* Interface not included in 5.00 release on OS 9 but will be in future
release; user will have to install by hand but no further configuration
necessary.

# The OS X 10.2 csnd module is installed correctly but will not load
on my machine due to a linking issue.

+ The Windows installer does not put the files into the Python lib directory
but it does set PYTHONPATH correctly so that they are automatically found.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net