bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LilyPond - Can't get convert-ly to work


From: Trevor Daniels
Subject: Re: LilyPond - Can't get convert-ly to work
Date: Sun, 12 Oct 2014 09:05:07 +0100

Hi Tony

You copied my instructions incorrectly, missing out "LilyPond" in the path to 
"convert-ly" in all these examples.

Try again!  It works here.

Trevor

----- Original Message ----- 
From: "Tony Warren" <address@hidden>
To: "Trevor Daniels" <address@hidden>
Sent: Sunday, October 12, 2014 12:37 AM
Subject: Re: LilyPond - Can't get convert-ly to work


> Hi Trevor
> 
> Won't be around on Sunday morning. Here are some results, still with 
> path entries for Python34 removed:
> 
> 
> C:\Users\Tony Warren>"C:/Program Files/LilyPond/usr/bin/python.exe" 
> "C:/Program
> Files/usr/bin/convert-ly.py" -h
> C:/Program Files/LilyPond/usr/bin/python.exe: can't open file 
> 'C:/Program Files/
> usr/bin/convert-ly.py': [Errno 2] No such file or directory
> 
> C:\Users\Tony Warren>"C:/Program Files/LilyPond/usr/bin/python.exe" 
> "C:/Program
> Files/usr/bin/convert-ly" -h
> C:/Program Files/LilyPond/usr/bin/python.exe: can't open file 
> 'C:/Program Files/
> usr/bin/convert-ly': [Errno 2] No such file or directory
> 
> C:\Users\Tony Warren>"""C:/Program Files/LilyPond/usr/bin/python.exe""" 
> """C:/Pr
> ogram Files/usr/bin/convert-ly.py""" -h
> C:/Program Files/LilyPond/usr/bin/python.exe: can't open file 
> '"C:/Program': [Er
> rno 22] Invalid argument
> 
> C:\Users\Tony Warren>"""C:/Program Files/LilyPond/usr/bin/python.exe""" 
> """C:/Pr
> ogram Files/usr/bin/convert-ly.py"""
> C:/Program Files/LilyPond/usr/bin/python.exe: can't open file 
> '"C:/Program': [Er
> rno 22] Invalid argument
> 
> C:\Users\Tony Warren>
> 
> Regret still no go. [The triple inverted commas are suggested in 
> LilyPond 2.18.2 "Usage.pdf"]
> 
> Tony
> 
> 
> Before getting your going to bed e-mail I took my 'new Python' entries 
> out of the path variable. Still no go.
> 
> C:\Program Files\LilyPond\usr\bin>convert-ly -h
> Traceback (most recent call last):
>   File "C:\Program Files\LilyPond\usr\bin\convert-ly.py", line 52, in 
> <module>
>     import lilylib as ly
>   File "C:\Program 
> Files\LilyPond\usr\share\lilypond\current\python\lilylib.py",
>  line 238
>     print log[0]
>             ^
> SyntaxError: invalid syntax
> 
> C:\Program Files\LilyPond\usr\bin>path
> PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program 
> Files\Co
> mmon Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio 
> Shared\DL
> LShared\;C:\Program Files\Common Files\Roxio 
> Shared\9.0\DLLShared\;C:\Windows\Sy
> stem32\WindowsPowerShell\v1.0\;C:\Program 
> Files\LilyPond\usr\bin;C:\Program File
> s\LilyPond\usr\share\lilypond\current\python
> 
> C:\Program Files\LilyPond\usr\bin>
> 
> On 12/10/2014 00:01, Trevor Daniels wrote:
>> Hi Tony
>>
>> Sorry, it's difficult to test here as I don't have a more recent python 
>> installed.  But it seems like you'll have to specify complete paths to the 
>> python interpreter and convert-ly, like this (all one command):
>>
>> C:\Users\Trevor>"C:/Program Files/LilyPond/usr/bin/python.exe" "C:/Program 
>> Files/LilyPond/usr/bin/convert-ly.py" -h
>>
>> If this works at least you can execute it in the directory containing the 
>> LilyPond source code.
>>
>> As it's midnight I'm closing down for tonight.  I'll check again tomorrow.
>>
>> Trevor
>>
>> ----- Original Message -----
>> From: "Tony Warren" <address@hidden>
>> To: "Trevor Daniels" <address@hidden>
>> Sent: Saturday, October 11, 2014 11:44 PM
>> Subject: Re: LilyPond - Can't get convert-ly to work
>>
>>
>>> Trevor
>>>
>>> No go:
>>>
>>> C:\Program Files\LilyPond\usr\bin>convert-ly -e """C:\0\Psalm136.ly"""
>>> Traceback (most recent call last):
>>>    File "C:\Program Files\LilyPond\usr\bin\convert-ly.py", line 52, in
>>> <module>
>>>      import lilylib as ly
>>>    File "C:\Program
>>> Files\LilyPond\usr\share\lilypond\current\python\lilylib.py"
>>>   line 238
>>>      print log[0]
>>>              ^
>>> SyntaxError: invalid syntax
>>>
>>> C:\Program Files\LilyPond\usr\bin>convert-ly
>>> Traceback (most recent call last):
>>>    File "C:\Program Files\LilyPond\usr\bin\convert-ly.py", line 52, in
>>> <module>
>>>      import lilylib as ly
>>>    File "C:\Program
>>> Files\LilyPond\usr\share\lilypond\current\python\lilylib.py"
>>>   line 238
>>>      print log[0]
>>>              ^
>>> SyntaxError: invalid syntax
>>>
>>> C:\Program Files\LilyPond\usr\bin>
>>>
>>> Won't I still be picking up the newer Python?
>>>
>>> C:\Program Files\LilyPond\usr\bin>path
>>> PATH=C:\Python34\;C:\Python34\Scripts;C:\Python34\Lib\idlelib;C:\Windows\system3
>>> 2;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common
>>> Files\Roxio Shared
>>> \DLLShared\;C:\Program Files\Common Files\Roxio
>>> Shared\DLLShared\;C:\Program Fil
>>> es\Common Files\Roxio
>>> Shared\9.0\DLLShared\;C:\Windows\System32\WindowsPowerShel
>>> l\v1.0\;C:\Program Files\LilyPond\usr\bin;C:\Program
>>> Files\LilyPond\usr\share\li
>>> lypond\current\python
>>>
>>> C:\Program Files\LilyPond\usr\bin>
>>>
>>> [I installed Python myself, intending to start learning - but have been
>>> too busy]
>>>
>>> Tony
>>>
>>> On 11/10/2014 23:28, Trevor Daniels wrote:
>>>> Tony
>>>>
>>>> OK, thanks.  It seems you have a more recent version of the python 
>>>> interpreter installed on your system than the one used by and distributed 
>>>> with LilyPond, and this is taking precedence.  This might have been 
>>>> installed by some other application.
>>>>
>>>> So you will need to run convert-ly by passing it to the python interpreter 
>>>> distributed with LilyPond.  To do this, instead of just entering 
>>>> "convert-ly", you'll need first to enter
>>>>
>>>> cd "C:/Program Files/LilyPond/usr/bin"  (in this case, with the quotes)
>>>>
>>>> then you should find that convert-ly works.  You'll need to specify full 
>>>> paths to the LilyPond code you need to convert, unfortunately.
>>>>
>>>> Trevor
>>>>
>>>>
>>>> ----- Original Message -----
>>>> From: "Tony Warren" <address@hidden>
>>>> To: "Trevor Daniels" <address@hidden>
>>>> Sent: Saturday, October 11, 2014 11:06 PM
>>>> Subject: Re: LilyPond - Can't get convert-ly to work
>>>>
>>>>
>>>>> Hello Trevor
>>>>>
>>>>> Lilypond is 2.18.2
>>>>>
>>>>> Microsoft Windows [Version 6.0.6002]
>>>>> Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
>>>>>
>>>>> C:\Users\Tony Warren>python
>>>>> Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32
>>>>> bit (I
>>>>> tel)] on win32
>>>>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> Thanks for your help
>>>>>
>>>>> Tony
>>>>>
>>>>>
>>>>> On 11/10/2014 22:56, Trevor Daniels wrote:
>>>>>> Hi Tony
>>>>>>
>>>>>> Could you please say which version of LilyPond you are using, so we can 
>>>>>> be sure we're looking at the right code.
>>>>>>
>>>>>> And then please enter the command "python" (without the quotes of 
>>>>>> course) at the Command Prompt and say what the output is.  You can then 
>>>>>> enter "CTRL-Z"  "Enter"  to get your usual command prompt back.
>>>>>>
>>>>>> Trevor
>>>>>>
>>>>>> ----- Original Message -----
>>>>>> From: "Tony Warren" <address@hidden>
>>>>>> To: <address@hidden>
>>>>>> Sent: Saturday, October 11, 2014 10:13 PM
>>>>>> Subject: LilyPond - Can't get convert-ly to work
>>>>>>
>>>>>>
>>>>>>>> I'm not top posting.
>>>>>>> % I know nothing of Python. Help please. See below:
>>>>>>>
>>>>>>> %{
>>>>>>>
>>>>>>> Microsoft Windows [Version 6.0.6002]
>>>>>>> Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
>>>>>>>
>>>>>>> C:\Users\Tony Warren>convert-ly -h
>>>>>>> Traceback (most recent call last):
>>>>>>>     File "C:\Program Files\LilyPond\usr\bin\convert-ly.py", line 52, in 
>>>>>>> <module>
>>>>>>>       import lilylib as ly
>>>>>>>     File "C:\Program 
>>>>>>> Files\LilyPond\usr\share\lilypond\current\python\lilylib.py",
>>>>>>> line 238
>>>>>>>       print log[0]
>>>>>>>               ^
>>>>>>> SyntaxError: invalid syntax
>>>>>>>
>>>>>>> %}
>>>>>>> %{
>>>>>>> Always get this message, administrator or not, command line options or 
>>>>>>> not,
>>>>>>> supplying file for conversion or not. Help a newbie, please.
>>>>>>> %}
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> bug-lilypond mailing list
>>>>>>> address@hidden
>>>>>>> https://lists.gnu.org/mailman/listinfo/bug-lilypond
>>>>> -- 
>>>>> AR Warren
>>>>> 34 Rosehill
>>>>> BILLINGSHURST
>>>>> West Sussex
>>>>> RH14 9QN
>>>>>
>>>>> t: +44 (0) 1403 783496
>>>>>
>>>>>
>>> -- 
>>> AR Warren
>>> 34 Rosehill
>>> BILLINGSHURST
>>> West Sussex
>>> RH14 9QN
>>>
>>> t: +44 (0) 1403 783496
>> >
> 
> -- 
> AR Warren
> 34 Rosehill
> BILLINGSHURST
> West Sussex
> RH14 9QN
> 
> t: +44 (0) 1403 783496
>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]