[Csnd] csnd import error
Date | 2012-03-28 20:16 |
From | Andreas Bergsland |
Subject | [Csnd] csnd import error |
Attachments | andreas_bergsland.vcf |
Hi, I just installed the latest csound (5.17.3) on OSX 10.6.8, and when I try "import csnd" in python, I get "ImportError: No module named csnd". I have python 2.7.2. Should I try to do something with pythonpath, or is this an issue with the installer? Best, Andreas -- Andreas Bergsland, postdoktor Musikkteknologiseksjonen Institutt for musikk Olavskvartalet NTNU 7491 Trondheim Besøksadresse: Fjordgt.1 (3.etg.) e-post: andreas.bergsland@ntnu.no Web: http://folk.ntnu.no/andbe Tlf: 7359 0096 Mob: 4566 3316 |
Date | 2012-03-28 20:33 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csnd import error |
No problem with the installer. It installs a Python module for the version that comes with OSX (Python 2.6.1). On 28 Mar 2012, at 20:16, Andreas Bergsland wrote: > Hi, > I just installed the latest csound (5.17.3) on OSX 10.6.8, and when I try "import csnd" in python, I get "ImportError: No module named csnd". I have python 2.7.2. > > Should I try to do something with pythonpath, or is this an issue with the installer? > > Best, > Andreas > > > > -- > Andreas Bergsland, > postdoktor > > Musikkteknologiseksjonen > Institutt for musikk > Olavskvartalet > NTNU > 7491 Trondheim > > Besøksadresse: Fjordgt.1 (3.etg.) > e-post: andreas.bergsland@ntnu.no > Web: http://folk.ntnu.no/andbe > Tlf: 7359 0096 > Mob: 4566 3316 > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > > |
Date | 2012-03-29 08:19 |
From | Andreas Bergsland |
Subject | Re: [Csnd] csnd import error |
Attachments | andreas_bergsland.vcf |
Oh, I have probably installed python 2.7.2 on top of the OSX one. When running python2.6 "import csnd" works fine. Thanks, Andreas Bergsland > No problem with the installer. It installs a Python module for the version that comes with OSX (Python 2.6.1). > On 28 Mar 2012, at 20:16, Andreas Bergsland wrote: > >> Hi, >> I just installed the latest csound (5.17.3) on OSX 10.6.8, and when I try "import csnd" in python, I get "ImportError: No module named csnd". I have python 2.7.2. >> >> Should I try to do something with pythonpath, or is this an issue with the installer? >> >> Best, >> Andreas >> >> >> >> -- >> Andreas Bergsland, >> postdoktor >> >> Musikkteknologiseksjonen >> Institutt for musikk >> Olavskvartalet >> NTNU >> 7491 Trondheim >> >> Besøksadresse: Fjordgt.1 (3.etg.) >> e-post: andreas.bergsland@ntnu.no >> Web: http://folk.ntnu.no/andbe >> Tlf: 7359 0096 >> Mob: 4566 3316 >> >> >> Send bugs reports to the Sourceforge bug tracker >> https://sourceforge.net/tracker/?group_id=81968&atid=564599 >> Discussions of bugs and features can be posted here >> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" >> >> |
Date | 2012-03-29 09:02 |
From | Victor Lazzarini |
Subject | Re: [Csnd] csnd import error |
I am glad it works. Victor On 29 Mar 2012, at 08:19, Andreas Bergsland wrote: > Oh, I have probably installed python 2.7.2 on top of the OSX one. When running python2.6 "import csnd" works fine. > Thanks, > Andreas Bergsland > >> No problem with the installer. It installs a Python module for the version that comes with OSX (Python 2.6.1). >> On 28 Mar 2012, at 20:16, Andreas Bergsland wrote: >> >>> Hi, >>> I just installed the latest csound (5.17.3) on OSX 10.6.8, and when I try "import csnd" in python, I get "ImportError: No module named csnd". I have python 2.7.2. >>> >>> Should I try to do something with pythonpath, or is this an issue with the installer? >>> >>> Best, >>> Andreas >>> >>> >>> >>> -- >>> Andreas Bergsland, >>> postdoktor >>> >>> Musikkteknologiseksjonen >>> Institutt for musikk >>> Olavskvartalet >>> NTNU >>> 7491 Trondheim >>> >>> Besøksadresse: Fjordgt.1 (3.etg.) >>> e-post: andreas.bergsland@ntnu.no >>> Web: http://folk.ntnu.no/andbe >>> Tlf: 7359 0096 >>> Mob: 4566 3316 >>> >>> >>> Send bugs reports to the Sourceforge bug tracker >>> https://sourceforge.net/tracker/?group_id=81968&atid=564599 >>> Discussions of bugs and features can be posted here >>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" >>> >>> |
Date | 2012-04-23 14:13 |
From | Bernt Isak Wærstad |
Subject | Re: [Csnd] csnd import error |
I've had the same problem now because I somehow had managed to upgrade to 2.6.4. I've downgraded to 2.6.1, but I can't get to work again. When I'm installing the latest csound 5.17 OS X pacakge it copies the python files to "Versions/2./lib/Python2." in the Python framework (instead of "Versions/2.6/lib/Python2.6"). I've tried to manually copy the files to "Versions/2.6/lib/Python2.6", but then there is some error with the dylibs (some wrong reference put in there during install?). Any idea why this happens? Here's the latest error:
Python 2.6.1 (r261:67515, Dec 6 2008, 16:42:21) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type "help", "copyright", "credits" or "license" for more information.
>>> import csnd Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/csnd.py", line 7, in <module>
import _csnd ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/_csnd.so, 2): Library not loaded: libmpadec.dylib Referenced from: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/_csnd.so
Reason: image not found >>> On Thu, Mar 29, 2012 at 10:02 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: I am glad it works. Mvh. Bernt Isak Wærstad |
Date | 2012-04-23 19:16 |
From | zappfinger |
Subject | [Csnd] Re: csnd import error |
I've had similar problems with multiple Python versions on OS X. The best way is to force Python to use the version that has access to the csnd library. You could do that in the shebang line of your text editor. (I use TextWrangler) like this: #!/usr/bin/env python2.7 import sys print sys.version Richard -- View this message in context: http://csound.1045644.n5.nabble.com/csnd-import-error-tp5601482p5660105.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-10-15 02:54 |
From | shreeswifty |
Subject | [Csnd] Re: csnd import error |
i have the same error, where does one get the csnd python module? -- View this message in context: http://csound.1045644.n5.nabble.com/csnd-import-error-tp5601482p5728326.html Sent from the Csound - General mailing list archive at Nabble.com. |