Trouble installing ctcsound (Python module)
Date | 2017-08-02 23:33 |
From | boleszek |
Subject | Trouble installing ctcsound (Python module) |
Hello, I am new to Csound, but not to Python. I want to start using Csound through python. As far as I can tell from other forums, the csnd6 module is being deprecated, and the ctcsound is the latest Python API to use (is this correct?). I downloaded Csound for MacOS from the sourceforge website and was hoping that ctcsound would come with it. But when I tried to import the module (by import ctcsound into Jupyter Notebook) I got the error "No module named 'ctcsound'". I then naively tried to run "pip instal ctcsound" in my terminal window, but was met with a different error: "Could not find a version that satisfies the requirement ctcsound (from versions: ) No matching distribution found for ctcsound" So I'm simply stuck very early in the game. How do I install ctcsound? Thank you, Bo -- View this message in context: http://csound.1045644.n5.nabble.com/Trouble-installing-ctcsound-Python-module-tp5757397.html Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-08-03 00:50 |
From | Victor Lazzarini |
Subject | Re: Trouble installing ctcsound (Python module) |
The versions in sourceforge are very old. Check our csound.github.io for the latest. ======================== Prof. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 2 Aug 2017, at 23:33, boleszek |
Date | 2017-08-03 08:18 |
From | Francois PINOT |
Subject | Re: Trouble installing ctcsound (Python module) |
To use ctcsound, you need Csound6.07 or higher and numpy. You can read some jupyter notebooks about the use of ctcsound in the cookbook here: https://github.com/fggp/ctcsound I recommend you to use the ctcsound.py file shipped with your csound distro, because the one in the github repo might contain new functions from the developing branch of csound which could not link with the libs in your distro.2017-08-03 0:33 GMT+02:00 boleszek <boleszeko@gmail.com>: Hello, |
Date | 2017-08-07 05:01 |
From | boleszek |
Subject | Re: Trouble installing ctcsound (Python module) |
Thanks for the quick answers! I uninstalled csound 6.06 (by deleting all files associated with it) and installed csound 6.09. Indeed, 6.09 comes with ctcsound as you said. When I first tried to import ctcsound in Jupyter Notebook I still got an error because ctcsound wasn't in my python path. So I added the directory of the ctcsound.py file to my python path (it took me a little while, but I found the file in /Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/Python/Current/ctcsound.py). I'm now able to import the module. Is this all I really need to do to use it, or are there some dependancies I will need to add to the path as well? Thanks, Bo -- View this message in context: http://csound.1045644.n5.nabble.com/Trouble-installing-ctcsound-Python-module-tp5757397p5757457.html Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2017-08-07 08:10 |
From | Francois PINOT |
Subject | Re: Trouble installing ctcsound (Python module) |
numpy is mandatory because ctcsound uses heavily numpy.ndarrays. The 7th recipe in the cookbook uses too matplotlib. François2017-08-07 6:01 GMT+02:00 boleszek <boleszeko@gmail.com>: Thanks for the quick answers! |
Date | 2017-08-07 16:22 |
From | boleszek |
Subject | Re: Trouble installing ctcsound (Python module) |
OK great! Numpy and matplotlib are a given. I was worried that there might be some other custom written modules to include. Thank you for providing us with this great tool! Cheers, Bo -- View this message in context: http://csound.1045644.n5.nabble.com/Trouble-installing-ctcsound-Python-module-tp5757397p5757463.html Sent from the Csound - General mailing list archive at Nabble.com. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |