CsoundQT won't open
Date | 2016-01-31 10:49 |
From | Andreas Bergsland |
Subject | CsoundQT won't open |
Attachments | andreas_bergsland.vcf |
Hi, With the latest installers for CsoundQT.app (0.9.0) and cs6.06 on OSX 10.10.5 I can't open the CsoundQT.app. When I click the application the icon shows up for half a second or so and then disappears again without any error messages. Anybody experienced this? And, what can I do to get it working again? Best, Andreas -- Andreas Bergsland, førsteamanuensis 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 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 | 2016-01-31 10:54 |
From | Victor Lazzarini |
Subject | Re: CsoundQT won't open |
It's probably because of the Python library link probably. We have discussed a fix in this list. Maybe you can look at the archives. > On 31 Jan 2016, at 10:49, Andreas Bergsland |
Date | 2016-01-31 11:01 |
From | Victor Lazzarini |
Subject | Re: CsoundQT won't open |
I looked at the messages. First try this at the terminal: $/Applications/CsoundQt.app/Contents/MacOS/CsoundQt-d-py-cs6 if you get the python error below, it’s the culprit. /Applications/CsoundQt-d-py-cs6.app/Contents/MacOS/CsoundQt-d-py-cs6 Error: define environment variable RAWWAVE_PATH (points to rawwaves directory) to use STK opcodes. 0dBFS level = 32768,0 Csound version 6.05 (double samples) Jun 8 2015 libsndfile-1.0.25 QObject::connect: No such slot WidgetPanel::dockStateChanged(bool) Fatal Python error: PyThreadState_Get: no current thread Ok, the problem is as follows. CsoundQt uses Python, and is linked to a certain version of the library; it also uses a PyQt library that is linked to a different version of the library. The solution is to make them both link to the same version. First you need to check which versions they are linked to: $ otool -L /Applications/CsoundQt.app/Contents/MacOs/CsoundQt-d-py-cs6 | grep 'Python' will show the Python library that CsoundQt uses, e.g: /Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0) $ otool -L /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt* | grep 'Python' will show the same for the libraries used by CsoundQt. Say one of them (or both) is wrong like this: /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt_QtAll.1.dylib: /System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.2) it’s different. So we fix with this command: $ sudo install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt_QtAll.1.dylib The form of the command is: -change |
Date | 2016-01-31 19:59 |
From | Andreas Bergsland |
Subject | Re: CsoundQT won't open |
Attachments | andreas_bergsland.vcf |
OK, I tried to run from terminal with
/Applications/CsoundQt.app/Contents/MacOS/CsoundQt-d-py-cs6and got WARNING: STK opodes not available: define environment variable RAWWAVE_PATH So the error seems to be identified. Then with otool -L /Applications/CsoundQt.app/Contents/MacOs/CsoundQt-d-py-cs6 | grep 'Python'I get /Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0) @executable_path/../Frameworks/libPythonQt.1.dylib (compatibility version 1.0.0, current version 1.0.0) @executable_path/../Frameworks/libPythonQt_QtAll.1.dylib (compatibility version 1.0.0, current version 1.0.0) so everything ok there, but with I getotool -L /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt* | grep 'Python' /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt.1.dylib:So the problems seems to be here. But I wasn't completely sure how to set up the -change command. I tried but no change. Is the problem that both the /System/Library/Frameworks/... path and the /Library/Frameworks/... path have incompatible versions?sudo install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt_QtAll.1.dylib I am sorry if I don't understand this well. Best, Andreas I looked at the messages. First try this at the terminal: $/Applications/CsoundQt.app/Contents/MacOS/CsoundQt-d-py-cs6 if you get the python error below, it’s the culprit. /Applications/CsoundQt-d-py-cs6.app/Contents/MacOS/CsoundQt-d-py-cs6 Error: define environment variable RAWWAVE_PATH (points to rawwaves directory) to use STK opcodes. 0dBFS level = 32768,0 Csound version 6.05 (double samples) Jun 8 2015 libsndfile-1.0.25 QObject::connect: No such slot WidgetPanel::dockStateChanged(bool) Fatal Python error: PyThreadState_Get: no current thread Ok, the problem is as follows. CsoundQt uses Python, and is linked to a certain version of the library; it also uses a PyQt library that is linked to a different version of the library. The solution is to make them both link to the same version. First you need to check which versions they are linked to: $ otool -L /Applications/CsoundQt.app/Contents/MacOs/CsoundQt-d-py-cs6 | grep 'Python' will show the Python library that CsoundQt uses, e.g: /Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0) $ otool -L /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt* | grep 'Python' will show the same for the libraries used by CsoundQt. Say one of them (or both) is wrong like this: /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt_QtAll.1.dylib: /System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.2) it’s different. So we fix with this command: $ sudo install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt_QtAll.1.dylib The form of the command is: -change <the name of the python library to be changed> <the correct name python lib we want> <the name of the library which is not correctly linked> ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952On 31 Jan 2016, at 10:54, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: It's probably because of the Python library link probably. We have discussed a fix in this list. Maybe you can look at the archives.On 31 Jan 2016, at 10:49, Andreas Bergsland <andreas.bergsland@NTNU.NO> wrote: Hi, With the latest installers for CsoundQT.app (0.9.0) and cs6.06 on OSX 10.10.5 I can't open the CsoundQT.app. When I click the application the icon shows up for half a second or so and then disappears again without any error messages. Anybody experienced this? And, what can I do to get it working again? Best, Andreas -- Andreas Bergsland, førsteamanuensis 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 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 <andreas_bergsland.vcf>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 hereCsound 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 -- Andreas Bergsland, førsteamanuensis 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 | 2016-01-31 20:19 |
From | Victor Lazzarini |
Subject | Re: CsoundQT won't open |
The command is correct, can you check that it actually changed the links (using otool -L). Everything needs to be linked to the /Library/Frameworks version.
|
Date | 2016-01-31 21:33 |
From | Andreas Bergsland |
Subject | Re: CsoundQT won't open |
Attachments | andreas_bergsland.vcf |
Ok, I ran the -change... command, and
then the
otool -L /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt* | grep 'Python' to check for effect - and got the result I reported below. So the versions still seem incompatible. I also tried sudo install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt.1.dylib but when I check with otool -L ... I get the same result. I see. But I don't understand why it says: /Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.2) even if this is the working library?
-- Andreas Bergsland, førsteamanuensis 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 | 2016-01-31 21:54 |
From | Victor Lazzarini |
Subject | Re: CsoundQT won't open |
Did the link change at all or not? Can you print here the result from otool? Make sure the name you pass to install_name_tool matches exactly what you got from otool. ======================== Dr 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 31 Jan 2016, at 21:33, Andreas Bergsland |
Date | 2016-02-01 07:10 |
From | Andreas Bergsland |
Subject | Re: CsoundQT won't open |
Attachments | andreas_bergsland.vcf |
The results after the otool are what I sent earlier: $ otool -L /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt* | grep 'Python' /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt.1.dylib: @executable_path/../Frameworks/libPythonQt.1.dylib (compatibility version 1.0.0, current version 1.0.0) /Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.2) /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt_QtAll.1.dylib: @executable_path/../Frameworks/libPythonQt_QtAll.1.dylib (compatibility version 1.0.0, current version 1.0.0) /Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.2) @executable_path/../Frameworks/libPythonQt.1.dylib (compatibility version 1.0.0, current version 1.0.0) and $ otool -L /Applications/CsoundQt.app/Contents/MacOs/CsoundQt-d-py-cs6 | grep 'Python' /Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0) @executable_path/../Frameworks/libPythonQt.1.dylib (compatibility version 1.0.0, current version 1.0.0) @executable_path/../Frameworks/libPythonQt_QtAll.1.dylib (compatibility version 1.0.0, current version 1.0 But I think I misunderstood the $ sudo install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python /Applications/CsoundQt.app/Contents/Frameworks/libPythonQt_QtAll.1.dylib command. I didn't get that I needed to pass a name to install_name_tool. What name should that be? best, Andreas > Did the link change at all or not? Can you print here the result from otool? > > Make sure the name you pass to install_name_tool matches exactly what you got from otool. > > ======================== > Dr 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 31 Jan 2016, at 21:33, Andreas Bergsland |
Date | 2016-02-01 08:29 |
From | Victor Lazzarini |
Subject | Re: CsoundQT won't open |
Looking at your otool -L output, all seems to be correct. Can you print here the result when you run CsoundQT from the terminal after these changes? ======================== Dr 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 1 Feb 2016, at 07:10, Andreas Bergsland |
Date | 2016-02-01 08:39 |
From | Andreas Bergsland |
Subject | Re: CsoundQT won't open |
Attachments | andreas_bergsland.vcf |
Great! Now it runs! Yesterday I did the same but I couldn't open it. It might be that the restart I just did. Or something I overlooked. Anyway, thanks a lot Victor for guiding me through this. Cheers, Andreas > Looking at your otool -L output, all seems to be correct. Can you print here the result when you run > CsoundQT from the terminal after these changes? > > ======================== > Dr 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 1 Feb 2016, at 07:10, Andreas Bergsland |