|
View:
New views
15 Messages
—
Rating Filter:
Alert me
|
|
|
Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Status: Accepted
Owner: jameseli...@... Labels: Type-Defect Priority-Low New issue 894 by jameseli...@...: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 The shipped version of LilyPond uses python 2.6.2 which does not work for lilypond-book. The error is as follows: /Users/jamesebailey/Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book:1258: DeprecationWarning: the md5 module is deprecated; use hashlib instead from md5 import md5 Traceback (most recent call last): File "/Users/jamesebailey/Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book", line 2136, in <module> main () File "/Users/jamesebailey/Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book", line 2118, in main chunks = do_file (files[0]) File "/Users/jamesebailey/Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book", line 2022, in do_file do_process_cmd (chunks, input_fullname, global_options) File "/Users/jamesebailey/Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book", line 1851, in do_process_cmd outdated = [c for c in snippets if c.is_outdated (options.lily_output_dir, output_files)] File "/Users/jamesebailey/Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book", line 1379, in is_outdated found, missing = self.all_output_files (output_dir, current_files) File "/Users/jamesebailey/Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book", line 1314, in all_output_files base = self.basename() File "/Users/jamesebailey/Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book", line 1270, in basename cs = self.get_checksum () File "/Users/jamesebailey/Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book", line 1258, in get_checksum from md5 import md5 File "/Users/jamesebailey/lib/python2.6/md5.py", line 10, in <module> from hashlib import md5 File "/Users/jamesebailey/lib/python2.6/hashlib.py", line 136, in <module> md5 = __get_builtin_constructor('md5') File "/Users/jamesebailey/lib/python2.6/hashlib.py", line 63, in __get_builtin_constructor import _md5 ImportError: No module named _md5 Currently, a workaround is to install python 2.4.6 and point convert-ly to it. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Updates:
Status: Invalid Comment #1 on issue 894 by percival.music.ca: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 I'm sorry, but I'm marking this as invalid unless somebody can replicate it with a clean OSX system. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Comment #2 on issue 894 by jameseli...@...: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 How do you define clean? -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Comment #3 on issue 894 by jameseli...@...: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 I can reproduce this on a system with nothing but the default applications installed and LilyPond. i.e., the PATH is the default one, but nothing else command-line wise (macports/fink) installed. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Comment #4 on issue 894 by percival.music.ca: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 ok, what's the error message? It shouldn't contain anything like /Users/jamesbailey/lib/... -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Comment #5 on issue 894 by jameseli...@...: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 The only change that's been made here is to lilypond-book, to have it point to the newer python version shipped with LilyPond 2.13, since we're assuming that a user savvy enough to get as far as using lilypond-book is savvy enough to do that much. iMac:~ thomasheurich$ head /Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book #!/Applications/LilyPond_devel.app/Contents/MacOS/python ''' Example usage: test: lilypond-book --filter="tr '[a-z]' '[A-Z]'" BOOK convert-ly on book: lilypond-book --filter="convert-ly --no-version --from=1.6.11 -" BOOK iMac:~ thomasheurich$ /Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] 'import site' failed; use -v for traceback Traceback (most recent call last): File "/Applications/LilyPond_devel.app/Contents/Resources/bin/lilypond-book", line 31, in <module> import glob ImportError: No module named glob -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Comment #6 on issue 894 by jameseli...@...: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 I should note that this is also the same error reported if, rather than change lilypond-book, the PATH is changed to put LilyPond.app/Contents/MacOS before /usr/bin -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Updates:
Labels: OpSys-OSX Comment #7 on issue 894 by percival.music.ca: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 Don't change anything inside the App bundle. Try setting $PYTHONHOME to point to somewhere inside the bundle. No, I don't know what I'm talking about. Spend 5-15 minutes googling for PYTHONHOME to figure out what's happening. If I hadn't lost hours and hours due to the "quit" and "code formatting" emails, I might look it up for you, but I'm way behind on more important stuff, so you're on your own here. Hey, you'll feel great after you solve it yourself. :) Basically, I think that after setting up the appropriate enivornment variables, the normal command (without changing anything inside the app) will work. Oh, also remember the "helper scripts" discussed on the OS X download page in the new website. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Comment #8 on issue 894 by jameseli...@...: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 I feel like I'm going to have to re-write the "set up for Mac OSX" portion. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Comment #9 on issue 894 by jameseli...@...: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 Ah, okay. setting PYTHONHOME allows you to change the location of python without changing the PATH variable. Unfortunately, it doesn't change the error. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Comment #10 on issue 894 by percival.music.ca: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 you still get this message? Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] If so, then try setting PYTHONHOME to something else. If not, please post the new message. And let us know what you set PYTHONHOME to. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Comment #11 on issue 894 by jameseli...@...: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 Exactly. I don't have clue #1 where else to set PYTHONHOME to, other than the location of the python executable (LilyPond.app/Contents/MacOS) If you have another suggestion, I'm game to try it. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Comment #12 on issue 894 by percival.music.ca: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 James, I'm sorry, but there's so many demands on me right now (both lilypond and otherwise), so my sanity can't afford to have me spend 10 minutes looking up the answer. Please google for PYTHONHOME. Look at the ansewrs that people give on mailists. Look at the python docs. Try pointing it to random places inside the lilypond bundle. The answer is probably something like bundle/usr/share/python/ -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Updates:
Status: New Comment #13 on issue 894 by jameseli...@...: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 Until someone else who's smarter than I, and has more time than you can take a look into this, I'm going to re-open this as new/needs verification. Based on the 10 minutes I spent googling PYTHONHOME, it's supposed to point to the python binary. If LilyPond.app/Contents/MacOS/python isn't the binary, then I don't know what is, and again, I'm too stupid to know. It's probably a moot point anyway, since 10.4 is so outdated, and as already pointed out, there is a way to get lilypond-book to work. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
|
|
Re: Issue 894 in lilypond: lilypond-book fails from the command-line in OSX 10.4Updates:
Status: Accepted Comment #14 on issue 894 by v.villenave: lilypond-book fails from the command-line in OSX 10.4 http://code.google.com/p/lilypond/issues/detail?id=894 James, if you're reopening this as a bug meister (not a simple user), the correct status should be "accepted". -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings _______________________________________________ bug-lilypond mailing list bug-lilypond@... http://lists.gnu.org/mailman/listinfo/bug-lilypond |
| Free embeddable forum powered by Nabble | Forum Help |