Csound Csound-dev Csound-tekno Search About

[Csnd] Help

Date2019-01-27 14:11
FromSalvatore Mirenda
Subject[Csnd] Help
Hi all!
Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound. 
I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
Thank you so much in advance.
Salvatore

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

Date2019-01-27 15:25
FromFrancois PINOT
SubjectRe: [Csnd] Help
Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.

François

Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi all!
Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound.
I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
Thank you so much in advance.
Salvatore

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

Date2019-01-27 16:10
FromSalvatore Mirenda
SubjectRe: [Csnd] Help
Thanks a lot….in the meanwhile I made it working just installing python 3.7 from the installer (.pkg)…imported the ctcsound module into the python script and it works (I can hear exactly what I wrote in the cad)…but now when I try to compile the script with Pyinstaller from terminal to get the executable (as I usually do) I get an error (last line says: AttributeError: 'PyiModuleGraph' object has no attribute ‘edgeData’) and the executable doesn’t appear to be created! 



Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.

François

Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi all!
Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound.
I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
Thank you so much in advance.
Salvatore

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


Date2019-01-27 16:23
FromFrancois PINOT
SubjectRe: [Csnd] Help

Le dim. 27 janv. 2019 à 17:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Thanks a lot….in the meanwhile I made it working just installing python 3.7 from the installer (.pkg)…imported the ctcsound module into the python script and it works (I can hear exactly what I wrote in the cad)…but now when I try to compile the script with Pyinstaller from terminal to get the executable (as I usually do) I get an error (last line says: AttributeError: 'PyiModuleGraph' object has no attribute ‘edgeData’) and the executable doesn’t appear to be created! 



Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.

François

Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi all!
Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound.
I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
Thank you so much in advance.
Salvatore

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

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

Date2019-01-27 18:23
FromSalvatore Mirenda
SubjectRe: [Csnd] Help
Yeah, I already read it but unfortunately it doesn't work. Thanks

Il giorno dom 27 gen 2019, 17:23 Francois PINOT <fggpinot@gmail.com> ha scritto:

Le dim. 27 janv. 2019 à 17:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Thanks a lot….in the meanwhile I made it working just installing python 3.7 from the installer (.pkg)…imported the ctcsound module into the python script and it works (I can hear exactly what I wrote in the cad)…but now when I try to compile the script with Pyinstaller from terminal to get the executable (as I usually do) I get an error (last line says: AttributeError: 'PyiModuleGraph' object has no attribute ‘edgeData’) and the executable doesn’t appear to be created! 



Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.

François

Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi all!
Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound.
I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
Thank you so much in advance.
Salvatore

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

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

Date2019-01-29 15:15
FromSalvatore Mirenda
SubjectRe: [Csnd] Help
AttachmentsSchermata 2019-01-29 alle 16.10.40.png  
Hi François, I don’t understand why I get this error as soon as I type the ‘c’ variable…I’m writing exactly the same as in the example in cookbook repository….

Thanks,
Salvatore

Il giorno 27 gen 2019, alle ore 17:23, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:


Le dim. 27 janv. 2019 à 17:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Thanks a lot….in the meanwhile I made it working just installing python 3.7 from the installer (.pkg)…imported the ctcsound module into the python script and it works (I can hear exactly what I wrote in the cad)…but now when I try to compile the script with Pyinstaller from terminal to get the executable (as I usually do) I get an error (last line says: AttributeError: 'PyiModuleGraph' object has no attribute ‘edgeData’) and the executable doesn’t appear to be created! 



Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.

François

Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi all!
Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound.
I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
Thank you so much in advance.
Salvatore

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

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


Date2019-01-29 16:22
FromFrancois PINOT
SubjectRe: [Csnd] Help
AttachmentsSchermata 2019-01-29 alle 16.10.40.png  
Are you using the ctcsound.py module shipped within your Csound installation package? It's important to use this one because it is tied with the Csound dynamic library. If you're using another version of ctcsound.py, it might be that the method and attributes of the module are not correctly paired with the objects in the dynamic library.

Le mar. 29 janv. 2019 à 16:15, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi François, I don’t understand why I get this error as soon as I type the ‘c’ variable…I’m writing exactly the same as in the example in cookbook repository….

Thanks,
Salvatore

Il giorno 27 gen 2019, alle ore 17:23, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:


Le dim. 27 janv. 2019 à 17:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Thanks a lot….in the meanwhile I made it working just installing python 3.7 from the installer (.pkg)…imported the ctcsound module into the python script and it works (I can hear exactly what I wrote in the cad)…but now when I try to compile the script with Pyinstaller from terminal to get the executable (as I usually do) I get an error (last line says: AttributeError: 'PyiModuleGraph' object has no attribute ‘edgeData’) and the executable doesn’t appear to be created! 



Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.

François

Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi all!
Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound.
I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
Thank you so much in advance.
Salvatore

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

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

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

Date2019-01-29 16:28
FromSalvatore Mirenda
SubjectRe: [Csnd] Help
I've installed today the csound Mac osx pkg (latest release 6.12) and I read it’s automatically included. What I’m trying to do is writing a python script from within anaconda (from terminal as well as from Jupyter). Where should I check if I’m using the ctcsound.py module?
Thanks

Il giorno 29 gen 2019, alle ore 17:22, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Are you using the ctcsound.py module shipped within your Csound installation package? It's important to use this one because it is tied with the Csound dynamic library. If you're using another version of ctcsound.py, it might be that the method and attributes of the module are not correctly paired with the objects in the dynamic library.

Le mar. 29 janv. 2019 à 16:15, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi François, I don’t understand why I get this error as soon as I type the ‘c’ variable…I’m writing exactly the same as in the example in cookbook repository….

<Schermata 2019-01-29 alle 16.10.40.png>
Thanks,
Salvatore

Il giorno 27 gen 2019, alle ore 17:23, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:


Le dim. 27 janv. 2019 à 17:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Thanks a lot….in the meanwhile I made it working just installing python 3.7 from the installer (.pkg)…imported the ctcsound module into the python script and it works (I can hear exactly what I wrote in the cad)…but now when I try to compile the script with Pyinstaller from terminal to get the executable (as I usually do) I get an error (last line says: AttributeError: 'PyiModuleGraph' object has no attribute ‘edgeData’) and the executable doesn’t appear to be created! 



Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.

François

Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi all!
Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound.
I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
Thank you so much in advance.
Salvatore

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

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

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


Date2019-01-29 17:08
FromFrancois PINOT
SubjectRe: [Csnd] Help
import ctcsound
print(ctcsound.__str__())

This should display the path to the ctcsound.py module you're using.

Le mar. 29 janv. 2019 à 17:28, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
I've installed today the csound Mac osx pkg (latest release 6.12) and I read it’s automatically included. What I’m trying to do is writing a python script from within anaconda (from terminal as well as from Jupyter). Where should I check if I’m using the ctcsound.py module?
Thanks

Il giorno 29 gen 2019, alle ore 17:22, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Are you using the ctcsound.py module shipped within your Csound installation package? It's important to use this one because it is tied with the Csound dynamic library. If you're using another version of ctcsound.py, it might be that the method and attributes of the module are not correctly paired with the objects in the dynamic library.

Le mar. 29 janv. 2019 à 16:15, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi François, I don’t understand why I get this error as soon as I type the ‘c’ variable…I’m writing exactly the same as in the example in cookbook repository….

<Schermata 2019-01-29 alle 16.10.40.png>
Thanks,
Salvatore

Il giorno 27 gen 2019, alle ore 17:23, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:


Le dim. 27 janv. 2019 à 17:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Thanks a lot….in the meanwhile I made it working just installing python 3.7 from the installer (.pkg)…imported the ctcsound module into the python script and it works (I can hear exactly what I wrote in the cad)…but now when I try to compile the script with Pyinstaller from terminal to get the executable (as I usually do) I get an error (last line says: AttributeError: 'PyiModuleGraph' object has no attribute ‘edgeData’) and the executable doesn’t appear to be created! 



Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.

François

Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi all!
Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound.
I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
Thank you so much in advance.
Salvatore

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

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

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

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

Date2019-01-29 17:25
FromSalvatore Mirenda
SubjectRe: [Csnd] Help
Thanks I will try…but I’m not even able to import it anymore!! What I’m going to do is uninstall everything (anaconda, csound….all) and try just to install python 3.7 from pkg and see if it works!! I don’t really know what else to do..it worked just few days ago…then I tried to sort things in Conda but nothing seems to work properly!!!

Il giorno 29 gen 2019, alle ore 18:08, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

import ctcsound
print(ctcsound.__str__())

This should display the path to the ctcsound.py module you're using.

Le mar. 29 janv. 2019 à 17:28, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
I've installed today the csound Mac osx pkg (latest release 6.12) and I read it’s automatically included. What I’m trying to do is writing a python script from within anaconda (from terminal as well as from Jupyter). Where should I check if I’m using the ctcsound.py module?
Thanks

Il giorno 29 gen 2019, alle ore 17:22, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Are you using the ctcsound.py module shipped within your Csound installation package? It's important to use this one because it is tied with the Csound dynamic library. If you're using another version of ctcsound.py, it might be that the method and attributes of the module are not correctly paired with the objects in the dynamic library.

Le mar. 29 janv. 2019 à 16:15, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi François, I don’t understand why I get this error as soon as I type the ‘c’ variable…I’m writing exactly the same as in the example in cookbook repository….

<Schermata 2019-01-29 alle 16.10.40.png>
Thanks,
Salvatore

Il giorno 27 gen 2019, alle ore 17:23, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:


Le dim. 27 janv. 2019 à 17:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Thanks a lot….in the meanwhile I made it working just installing python 3.7 from the installer (.pkg)…imported the ctcsound module into the python script and it works (I can hear exactly what I wrote in the cad)…but now when I try to compile the script with Pyinstaller from terminal to get the executable (as I usually do) I get an error (last line says: AttributeError: 'PyiModuleGraph' object has no attribute ‘edgeData’) and the executable doesn’t appear to be created! 



Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:

Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.

François

Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
Hi all!
Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound.
I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
Thank you so much in advance.
Salvatore

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

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

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

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


Date2019-01-29 17:33
FromVictor Lazzarini
SubjectRe: [Csnd] Help
Here I am using 3.6.5 installed from python.org and it works fine


MacBook-Pro:Downloads victor$ python3
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 03:03:55) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctcsound
>>> print(ctcsound.__str__())

>>> 


========================
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 29 Jan 2019, at 17:25, Salvatore Mirenda  wrote:
> 
> Thanks I will try…but I’m not even able to import it anymore!! What I’m going to do is uninstall everything (anaconda, csound….all) and try just to install python 3.7 from pkg and see if it works!! I don’t really know what else to do..it worked just few days ago…then I tried to sort things in Conda but nothing seems to work properly!!!
> 
>> Il giorno 29 gen 2019, alle ore 18:08, Francois PINOT  ha scritto:
>> 
>> import ctcsound
>> print(ctcsound.__str__())
>> 
>> This should display the path to the ctcsound.py module you're using.
>> 
>> Le mar. 29 janv. 2019 à 17:28, Salvatore Mirenda  a écrit :
>> I've installed today the csound Mac osx pkg (latest release 6.12) and I read it’s automatically included. What I’m trying to do is writing a python script from within anaconda (from terminal as well as from Jupyter). Where should I check if I’m using the ctcsound.py module?
>> Thanks
>> 
>>> Il giorno 29 gen 2019, alle ore 17:22, Francois PINOT  ha scritto:
>>> 
>>> Are you using the ctcsound.py module shipped within your Csound installation package? It's important to use this one because it is tied with the Csound dynamic library. If you're using another version of ctcsound.py, it might be that the method and attributes of the module are not correctly paired with the objects in the dynamic library.
>>> 
>>> Le mar. 29 janv. 2019 à 16:15, Salvatore Mirenda  a écrit :
>>> Hi François, I don’t understand why I get this error as soon as I type the ‘c’ variable…I’m writing exactly the same as in the example in cookbook repository….
>>> 
>>> 
>>> Thanks,
>>> Salvatore
>>> 
>>>> Il giorno 27 gen 2019, alle ore 17:23, Francois PINOT  ha scritto:
>>>> 
>>>> Maybe this can help: https://stackoverflow.com/questions/52277608/pyinstaller-error-pyimodulegraph-object-has-no-attribute-edgedata ?
>>>> 
>>>> Le dim. 27 janv. 2019 à 17:11, Salvatore Mirenda  a écrit :
>>>> Thanks a lot….in the meanwhile I made it working just installing python 3.7 from the installer (.pkg)…imported the ctcsound module into the python script and it works (I can hear exactly what I wrote in the cad)…but now when I try to compile the script with Pyinstaller from terminal to get the executable (as I usually do) I get an error (last line says: AttributeError: 'PyiModuleGraph' object has no attribute ‘edgeData’) and the executable doesn’t appear to be created! 
>>>> 
>>>> 
>>>> 
>>>>> Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT  ha scritto:
>>>>> 
>>>>> Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.
>>>>> 
>>>>> François
>>>>> 
>>>>> Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda  a écrit :
>>>>> Hi all!
>>>>> Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
>>>>> I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound. 
>>>>> I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
>>>>> Thank you so much in advance.
>>>>> Salvatore
>>>>> 
>>>>> 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
>>>>> 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
>>>> 
>>>> 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
>>>> 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
>>> 
>>> 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
>>> 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
>> 
>> 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
>> 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
> 
> 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


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

Date2019-01-29 18:15
FromSalvatore Mirenda
SubjectRe: [Csnd] Help
Ok...thanks a lot Victor.
I'll follow your suggestions 


Il giorno mar 29 gen 2019, 18:33 Victor Lazzarini <Victor.Lazzarini@mu.ie> ha scritto:
Here I am using 3.6.5 installed from python.org and it works fine


MacBook-Pro:Downloads victor$ python3
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 03:03:55)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctcsound
>>> print(ctcsound.__str__())
<module 'ctcsound' from '/Library/Python/2.7/site-packages/ctcsound.py'>
>>>


========================
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 29 Jan 2019, at 17:25, Salvatore Mirenda <salvatore.mirenda78@GMAIL.COM> wrote:
>
> Thanks I will try…but I’m not even able to import it anymore!! What I’m going to do is uninstall everything (anaconda, csound….all) and try just to install python 3.7 from pkg and see if it works!! I don’t really know what else to do..it worked just few days ago…then I tried to sort things in Conda but nothing seems to work properly!!!
>
>> Il giorno 29 gen 2019, alle ore 18:08, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:
>>
>> import ctcsound
>> print(ctcsound.__str__())
>>
>> This should display the path to the ctcsound.py module you're using.
>>
>> Le mar. 29 janv. 2019 à 17:28, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
>> I've installed today the csound Mac osx pkg (latest release 6.12) and I read it’s automatically included. What I’m trying to do is writing a python script from within anaconda (from terminal as well as from Jupyter). Where should I check if I’m using the ctcsound.py module?
>> Thanks
>>
>>> Il giorno 29 gen 2019, alle ore 17:22, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:
>>>
>>> Are you using the ctcsound.py module shipped within your Csound installation package? It's important to use this one because it is tied with the Csound dynamic library. If you're using another version of ctcsound.py, it might be that the method and attributes of the module are not correctly paired with the objects in the dynamic library.
>>>
>>> Le mar. 29 janv. 2019 à 16:15, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
>>> Hi François, I don’t understand why I get this error as soon as I type the ‘c’ variable…I’m writing exactly the same as in the example in cookbook repository….
>>>
>>> <Schermata 2019-01-29 alle 16.10.40.png>
>>> Thanks,
>>> Salvatore
>>>
>>>> Il giorno 27 gen 2019, alle ore 17:23, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:
>>>>
>>>> Maybe this can help: https://stackoverflow.com/questions/52277608/pyinstaller-error-pyimodulegraph-object-has-no-attribute-edgedata ?
>>>>
>>>> Le dim. 27 janv. 2019 à 17:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
>>>> Thanks a lot….in the meanwhile I made it working just installing python 3.7 from the installer (.pkg)…imported the ctcsound module into the python script and it works (I can hear exactly what I wrote in the cad)…but now when I try to compile the script with Pyinstaller from terminal to get the executable (as I usually do) I get an error (last line says: AttributeError: 'PyiModuleGraph' object has no attribute ‘edgeData’) and the executable doesn’t appear to be created!
>>>>
>>>>
>>>>
>>>>> Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT <fggpinot@GMAIL.COM> ha scritto:
>>>>>
>>>>> Normally csnd6 and ctcsound are copied by the csound installer in your PYTHONPATH. csnd6 can only be used with Python2.x. ctcsound can be used with Python2.x and Python3.x as well. There are Jupyter notebooks about using ctcsound here: https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb and there: https://github.com/fggp/ctcsound/tree/master/cookbook.
>>>>>
>>>>> François
>>>>>
>>>>> Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda <salvatore.mirenda78@gmail.com> a écrit :
>>>>> Hi all!
>>>>> Can somebody suggest documentation (or just suggesting an "how to do that") about using Csound within Python? I'd just want to write instruments and scores as I would in Csound but within Python.
>>>>> I already know that there are Csound modules called csnd6 and ctcsound (that come within Csound installation), but I can't get the properly way on making them interacting with a Python script. I don't understand how to install this module (if possible to do that). I tried as usually the installation with pip install from terminal, but when I use on a python script, using PyCharm  (import csnd6 or ctcsound) I get....no module named csnd6 or ctcsound.
>>>>> I'm running Csound 6.11 (installed from the .pkg), Python 3.7.2 (installed from sources) on a Mac OSx 10.14 (Mojave).
>>>>> Thank you so much in advance.
>>>>> Salvatore
>>>>>
>>>>> 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
>>>>> 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
>>>>
>>>> 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
>>>> 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
>>>
>>> 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
>>> 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
>>
>> 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
>> 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
>
> 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


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

Date2019-01-29 18:17
FromKelly Hirai
SubjectRe: [Csnd] Help
anaconda when activated changes the PYTHON_PATH variable for the process 
[ie. a shell] so that it points to your own private version of python. 
it doesn't do this globally.

if you were to install csound (from the terminal) after activating your 
environment, it should put the modules in the right place.

this can be tricky if you have to sudo to install csound. if thats the 
case then from the terminal i would try as a strategy, _roughly_

sudo su
source activate
and run the csound installer.

k.

On 1/29/19 12:25 PM, Salvatore Mirenda wrote:
> Thanks I will try…but I’m not even able to import it anymore!! What I’m 
> going to do is uninstall everything (anaconda, csound….all) and try just 
> to install python 3.7 from pkg and see if it works!! I don’t really know 
> what else to do..it worked just few days ago…then I tried to sort things 
> in Conda but nothing seems to work properly!!!
> 
>> Il giorno 29 gen 2019, alle ore 18:08, Francois PINOT 
>> > ha scritto:
>>
>> import ctcsound
>> print(ctcsound.__str__())
>>
>> This should display the path to the ctcsound.py module you're using.
>>
>> Le mar. 29 janv. 2019 à 17:28, Salvatore Mirenda 
>> > 
>> a écrit :
>>
>>     I've installed today the csound Mac osx pkg (latest release 6.12)
>>     and I read it’s automatically included. What I’m trying to do is
>>     writing a python script from within anaconda (from terminal as
>>     well as from Jupyter). Where should I check if I’m using the
>>     ctcsound.py module?
>>     Thanks
>>
>>>     Il giorno 29 gen 2019, alle ore 17:22, Francois PINOT
>>>     > ha scritto:
>>>
>>>     Are you using the ctcsound.py module shipped within your Csound
>>>     installation package? It's important to use this one because it
>>>     is tied with the Csound dynamic library. If you're using another
>>>     version of ctcsound.py, it might be that the method and
>>>     attributes of the module are not correctly paired with the
>>>     objects in the dynamic library.
>>>
>>>     Le mar. 29 janv. 2019 à 16:15, Salvatore Mirenda
>>>     >>     > a écrit :
>>>
>>>         Hi François, I don’t understand why I get this error as soon
>>>         as I type the ‘c’ variable…I’m writing exactly the same as in
>>>         the example in cookbook repository….
>>>
>>>         
>>>         Thanks,
>>>         Salvatore
>>>
>>>>         Il giorno 27 gen 2019, alle ore 17:23, Francois PINOT
>>>>         > ha scritto:
>>>>
>>>>         Maybe this can help:
>>>>         https://stackoverflow.com/questions/52277608/pyinstaller-error-pyimodulegraph-object-has-no-attribute-edgedata
>>>>         ?
>>>>
>>>>         Le dim. 27 janv. 2019 à 17:11, Salvatore Mirenda
>>>>         >>>         > a écrit :
>>>>
>>>>             Thanks a lot….in the meanwhile I made it working just
>>>>             installing python 3.7 from the installer (.pkg)…imported
>>>>             the ctcsound module into the python script and it works
>>>>             (I can hear exactly what I wrote in the cad)…but now
>>>>             when I try to compile the script with Pyinstaller from
>>>>             terminal to get the executable (as I usually do) I get
>>>>             an error (last line says: AttributeError:
>>>>             'PyiModuleGraph' object has no attribute ‘edgeData’) and
>>>>             the executable doesn’t appear to be created!
>>>>
>>>>
>>>>
>>>>>             Il giorno 27 gen 2019, alle ore 16:25, Francois PINOT
>>>>>             > ha
>>>>>             scritto:
>>>>>
>>>>>             Normally csnd6 and ctcsound are copied by the csound
>>>>>             installer in your PYTHONPATH. csnd6 can only be used
>>>>>             with Python2.x. ctcsound can be used with Python2.x and
>>>>>             Python3.x as well. There are Jupyter notebooks about
>>>>>             using ctcsound here:
>>>>>             https://github.com/csound/csoundAPI_examples/blob/master/python/CtcsoundAPIExamples.ipynb
>>>>>             and there:
>>>>>             https://github.com/fggp/ctcsound/tree/master/cookbook.
>>>>>
>>>>>             François
>>>>>
>>>>>             Le dim. 27 janv. 2019 à 15:11, Salvatore Mirenda
>>>>>             >>>>             > a écrit :
>>>>>
>>>>>                 Hi all!
>>>>>                 Can somebody suggest documentation (or just
>>>>>                 suggesting an "how to do that") about using Csound
>>>>>                 within Python? I'd just want to write instruments
>>>>>                 and scores as I would in Csound but within Python.
>>>>>                 I already know that there are Csound modules called
>>>>>                 csnd6 and ctcsound (that come within Csound
>>>>>                 installation), but I can't get the properly way on
>>>>>                 making them interacting with a Python script. I
>>>>>                 don't understand how to install this module (if
>>>>>                 possible to do that). I tried as usually the
>>>>>                 installation with pip install from terminal, but
>>>>>                 when I use on a python script, using PyCharm 
>>>>>                 (import csnd6 or ctcsound) I get....no module named
>>>>>                 csnd6 or ctcsound.
>>>>>                 I'm running Csound 6.11 (installed from the .pkg),
>>>>>                 Python 3.7.2 (installed from sources) on a Mac OSx
>>>>>                 10.14 (Mojave).
>>>>>                 Thank you so much in advance.
>>>>>                 Salvatore
>>>>>
>>>>>                 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
>>>>>
>>>>>             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 
>>>>
>>>>             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 
>>>>
>>>>         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 
>>>
>>>         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 
>>>
>>>     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 
>>
>>     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 
>>
>> 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 
> 
> 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

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