lilypond-book fails; python 2.3 used instead of 2.4

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

lilypond-book fails; python 2.3 used instead of 2.4

Graham Percival-2
lilypond-book produces pdfs with incorrect margins, and displays this  
error message:

---
Traceback (most recent call last):
   File  
"/Users/gperciva/Apps//LilyPond.app/Contents/Resources/bin/lilypond-
book", line 1754, in ?
     main ()
   File  
"/Users/gperciva/Apps//LilyPond.app/Contents/Resources/bin/lilypond-
book", line 1732, in main
     psfonts_file = os.path.join (global_options.output_name, basename +  
'.psfonts')
   File  
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/
python2.3/posixpath.py", line 62, in join
     elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'
---
(although it keeps on processing the document)

I have python2.4 installed via fink, but it's still finding the system  
2.3 (at /usr/bin/python).  Any hints?

- Graham



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: lilypond-book fails; python 2.3 used instead of 2.4

Johannes Schindelin
Hi,

On Sat, 25 Mar 2006, Graham Percival wrote:

> I have python2.4 installed via fink, but it's still finding the system
> 2.3 (at /usr/bin/python).  Any hints?

I was brutal: I removed /usr/bin/python and linked to /sw/bin/python...

Hth,
Dscho



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: lilypond-book fails; python 2.3 used instead of 2.4

Han-Wen Nienhuys-2
In reply to this post by Graham Percival-2
Graham Percival wrote:

> lilypond-book produces pdfs with incorrect margins, and displays this
> error message:
>
> ---
> Traceback (most recent call last):
>   File
> "/Users/gperciva/Apps//LilyPond.app/Contents/Resources/bin/lilypond-book",
> line 1754, in ?
>     main ()
>   File
> "/Users/gperciva/Apps//LilyPond.app/Contents/Resources/bin/lilypond-book",
> line 1732, in main
>     psfonts_file = os.path.join (global_options.output_name, basename +
> '.psfonts')
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/posixpath.py",
> line 62, in join
>     elif path == '' or path.endswith('/'):
> AttributeError: 'NoneType' object has no attribute 'endswith'
> ---
> (although it keeps on processing the document)
>
> I have python2.4 installed via fink, but it's still finding the system
> 2.3 (at /usr/bin/python).  Any hints?

it's barfing because global_options.output_name is None.  I've changed
the default to '' in CVS, but you might want to submit a full bugreport.

--

Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen

LilyPond Software Design
  -- Code for Music Notation
http://www.lilypond-design.com



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel