Re: Lilypond and Python

2020-10-31 Thread Martín Rincón Botero
Hey Megan,

I use a different approach, but have you checked Abjad already? 
https://abjad.github.io/index.html

Cheers
Martín.

www.martinrinconbotero.com
On 31. Oct 2020, 18:51 +0100, Megan Aldrich , wrote:
> Hello,
>
> Is there a package that would allow me to output in a lilypond format from 
> python? I found something through google searches and it’s poorly documented 
> and hard to use. Is there something that you recommend using?
>
> Meg
> --
> Megan Aldrich
>
> Connecticut College


Re: Lilypond and Python

2020-10-31 Thread 98123981293 1293812397123
Abjad is the most robust tool for this, as far as I'm aware. It won't run
well on windows, so consider using a Linux virtual box if you're a windows
user.

https://github.com/Abjad

This is a helpful guide for installation and learning:
https://github.com/Abjad/intensive

A not very high resolution video which goes through the ideas behind the
package (you can't see the code well on screen but you can hear Trevor Baca
talk about it, which is interesting and informative):
https://www.youtube.com/watch?v=r3d-msxyeDI

I began learning how to use Abjad for algorithmic composition purposes this
summer, until I discovered that the BACH library for Max MSP, which exports
directly to lilypond and with which I am much more familiar, now has a
robust internal programming language which duplicates many of the
attractive features of Abjad. Trevor is on the Lilypond mailing list I
think, so perhaps he will respond.

Hope this helps,
Kyle

On Sat, Oct 31, 2020 at 2:49 PM  wrote:

> Send lilypond-user mailing list submissions to
> lilypond-user@gnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.gnu.org/mailman/listinfo/lilypond-user
> or, via email, send a message with subject or body 'help' to
> lilypond-user-requ...@gnu.org
>
> You can reach the person managing the list at
> lilypond-user-ow...@gnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lilypond-user digest..."
> Today's Topics:
>
>1. Re: Point & Click with Atom (Martín Rincón Botero)
>2. Re: vertical positioning of text spanners and hairpins
>   (Werner LEMBERG)
>3. Re: Point & Click with Atom (Henning Hraban Ramm)
>4. Re: Point & Click with Atom (Martín Rincón Botero)
>5. Lilypond and Python (Megan Aldrich)
>6. Percent repeat counter starting at 1 (David Sumbler)
>
>
>
> -- Forwarded message --
> From: "Martín Rincón Botero" 
> To: Henning Hraban Ramm 
> Cc: Lilypond-User Mailing List 
> Bcc:
> Date: Sat, 31 Oct 2020 18:21:53 +0100
> Subject: Re: Point & Click with Atom
> Dear Henning,
>
> thank you for your answer. I don't think I understand correctly. I open a
> terminal and type export LYEDITOR=atom, hit Enter and then write
> something like lilypond myfile.ly? If it works (I just tried that and it
> didn't), I add the export line to .bashrc and then follow the steps in the
> Manual for Gnome 3 (I'm using Ubuntu 18.04)?
>
> Am Sa., 31. Okt. 2020 um 18:03 Uhr schrieb Henning Hraban Ramm <
> lilypon...@fiee.net>:
>
>>
>> > Am 31.10.2020 um 17:45 schrieb Martín Rincón Botero <
>> martinrinconbot...@gmail.com>:
>> >
>> > I went over the Usage Manual for trying to configure Point & Click so
>> that I can use it with Atom (as much as I like Frescobaldi, its poor
>> performance with large scores makes it unusable after a certain number of
>> lines of code). The usage manual
>> http://lilypond.org/doc/v2.20/Documentation/usage/configuring-the-system-for-point-and-click
>> says to "simply" write this line export LYEDITOR=atom, but doesn't say
>> where. After that I suppose I can go to the GNOME 3 steps and follow them,
>> but since those steps don't mention any particular editor, I guess I should
>> first know what to do with said export line.
>>
>> Try if it works in your shell (e.g. bash) before you call lilypond.
>>
>> If it works, you should add it to the startup file of your default shell,
>> e.g. .bashrc or .bash_profile
>>
>> Hraban
>>
>
>
> --
> www.martinrinconbotero.com
>
>
>
> -- Forwarded message --
> From: Werner LEMBERG 
> To: kieren_macmil...@sympatico.ca
> Cc: lilypond-user@gnu.org
> Bcc:
> Date: Sat, 31 Oct 2020 18:33:57 +0100 (CET)
> Subject: Re: vertical positioning of text spanners and hairpins
>
> > From
> > <
> https://lilypond.org/doc/v2.19/Documentation/learning/outside_002dstaff-objects
> >:
> > "changing outside-staff-priority of the Hairpin object will have no
> > effect on the vertical positioning of hairpins – you must change
> > outside-staff-priority of the associated DynamicLineSpanner object
> > instead."
>
> Aah, I faintly remember now, thanks!
>
> > So one would *think* the following would work:
> >
> > \new Dynamics {
> >   s2\tweak DynamicLineSpanner.outside-staff-priority #1000 \<
> >   s2\tweak outside-staff-priority #0
> > \tweak bound-details.left.text "rit."
> > \startTextSpan |
> >   s1\!\stopTextSpan
> > }
> >
> > However, there’s a collision (?!) — looks like a spacing engine bug
> > to me.
>
> Yep, and it seems not being registered in the tracker.
>
>
> Werner
>
>
>
> -- Forwarded message --
> From: Henning Hraban Ramm 
> To: lilypond-user@gnu.org
> Cc:
> Bcc:
> Date: Sat, 31 Oct 2020 18:38:58 +0100
> Subject: Re: Point & Click with Atom
> Martín,
>
> I didn’t read the documentation before, and I’m on OSX, so I can’t try.
>
> It looks like you need the setup for GNOME *and* the environment variable.
>
> Did you try 

Re: Lilypond and Python

2020-11-01 Thread Stefan Thomas
Dear community,
I tried to install abjad with
pip install abjad
And I got:

> Collecting abjad
>  Using cached
> https://files.pythonhosted.org/packages/f7/2f/23b14c7ff2ca1a5728e81fc1b5960374ec444efad43b197dca009
> 53d90cc/Abjad-3.1.tar.gz
> Could not import setuptools which is required to install from a source
> distribution.
> Please install setuptools.
>
>
> You are using pip version 9.0.3, however version 20.2.4 is available.
> You should consider upgrading via the 'pip install --upgrade pip'
> command.
>
And after

> pip install --upgrade pip
>
I've got

> Collecting pip
>  Using cached
> https://files.pythonhosted.org/packages/cb/28/91f26bd088ce8e22169032100d4260614fc3da435025ff389ef1d
> 396a433/pip-20.2.4-py2.py3-none-any.whl
> Installing collected packages: pip
>  Found existing installation: pip 9.0.3
>Uninstalling pip-9.0.3:
>  Successfully uninstalled pip-9.0.3
>  Rolling back uninstall of pip
> Exception:
> Traceback (most recent call last):
>
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/basecommand.py", line
> 215, in main
>status = self.run(options, args)
>
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/commands/install.py",
> line 342, in run
>prefix=options.prefix_path,
>
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_set.py", line
> 784, in install
>**kwargs
>
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
> line 851, in install
>self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
> line 1064, in move_wheel_files
>isolated=self.isolated,
>
>
>  File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py", line
> 345, in move_wheel_files
>clobber(source, lib_dir, True)
>
>
>  File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py", line
> 316, in clobber
>ensure_dir(destdir)
>
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/utils/__init__.py",
> line 83, in ensure_dir
>os.makedirs(path)
>
>
>  File "/usr/lib/python2.7/os.py", line 157, in makedirs
>
>mkdir(name, mode)
>
>
> OSError: [Errno 13] Permission denied:
> '/usr/local/lib/python2.7/dist-packages/pip-20.2.4.dist-info'
>
> You are using pip version 9.0.3, however version 20.2.4 is available.
> You should consider upgrading via the 'pip install --upgrade pip' command.
>
What can I do know?
Thanks for Your help,
Stefan

Hey Megan,
>
> I use a different approach, but have you checked Abjad already?
> https://abjad.github.io/index.html
>
> Cheers
> Martín.
>
> www.martinrinconbotero.com
> On 31. Oct 2020, 18:51 +0100, Megan Aldrich ,
> wrote:
> > Hello,
> >
> > Is there a package that would allow me to output in a lilypond format
> from python? I found something through google searches and it’s poorly
> documented and hard to use. Is there something that you recommend using?
> >
> > Meg
> > --
> > Megan Aldrich
> >
> > Connecticut College
>


Re: Lilypond and Python

2020-11-01 Thread Martín Rincón Botero
Hi Stefan. I remember having to make my version of Python 3 (3.6 I think) the 
system default (yours is 2.7) for abjad to work. I also remember having to 
install some things as root for it to work (you have a “Permission Denied” 
somewhere...). I read somewhere it’s not recommendable to use root with pip, 
but it worked with no discernible side effects.

Cheers,
Martín.

www.martinrinconbotero.com
On 1. Nov 2020, 14:01 +0100, Stefan Thomas , wrote:
> Dear community,
> I tried to install abjad with
> pip install abjad
> And I got:
> > Collecting abjad
> >  Using cached 
> > https://files.pythonhosted.org/packages/f7/2f/23b14c7ff2ca1a5728e81fc1b5960374ec444efad43b197dca009
> > 53d90cc/Abjad-3.1.tar.gz
> > Could not import setuptools which is required to install from a source 
> > distribution.
> > Please install setuptools.
> > You are using pip version 9.0.3, however version 20.2.4 is available.
> > You should consider upgrading via the 'pip install --upgrade pip' command.
> And after
> > pip install --upgrade pip
> I've got
> > Collecting pip
> >  Using cached 
> > https://files.pythonhosted.org/packages/cb/28/91f26bd088ce8e22169032100d4260614fc3da435025ff389ef1d
> > 396a433/pip-20.2.4-py2.py3-none-any.whl
> > Installing collected packages: pip
> >  Found existing installation: pip 9.0.3
> >    Uninstalling pip-9.0.3:
> >  Successfully uninstalled pip-9.0.3
> >  Rolling back uninstall of pip
> > Exception:
> > Traceback (most recent call last):
> >  File "/home/stefan/.local/lib/python2.7/site-packages/pip/basecommand.py", 
> > line 215, in main
> >    status = self.run(options, args)
> >  File 
> > "/home/stefan/.local/lib/python2.7/site-packages/pip/commands/install.py", 
> > line 342, in run
> >    prefix=options.prefix_path,
> >  File "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_set.py", 
> > line 784, in install
> >    **kwargs
> >  File 
> > "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py", 
> > line 851, in install
> >    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
> >  File 
> > "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py", 
> > line 1064, in move_wheel_files
> >    isolated=self.isolated,
> >  File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py", line 
> > 345, in move_wheel_files
> >    clobber(source, lib_dir, True)
> >  File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py", line 
> > 316, in clobber
> >    ensure_dir(destdir)
> >  File 
> > "/home/stefan/.local/lib/python2.7/site-packages/pip/utils/__init__.py", 
> > line 83, in ensure_dir
> >    os.makedirs(path)
> >  File "/usr/lib/python2.7/os.py", line 157, in makedirs
> >    mkdir(name, mode)
> > OSError: [Errno 13] Permission denied: 
> > '/usr/local/lib/python2.7/dist-packages/pip-20.2.4.dist-info'
> > You are using pip version 9.0.3, however version 20.2.4 is available.
> > You should consider upgrading via the 'pip install --upgrade pip' command.
> What can I do know?
> Thanks for Your help,
> Stefan
>
> > Hey Megan,
> >
> > I use a different approach, but have you checked Abjad already? 
> > https://abjad.github.io/index.html
> >
> > Cheers
> > Martín.
> >
> > www.martinrinconbotero.com
> > On 31. Oct 2020, 18:51 +0100, Megan Aldrich , wrote:
> > > Hello,
> > >
> > > Is there a package that would allow me to output in a lilypond format 
> > > from python? I found something through google searches and it’s poorly 
> > > documented and hard to use. Is there something that you recommend using?
> > >
> > > Meg
> > > --
> > > Megan Aldrich
> > >
> > > Connecticut College
>


Re: Lilypond and Python

2020-11-01 Thread Stefan Thomas
Dear Dave,
thanks for Your soon reply.
When I type

> sudo pip install --upgrade pip
>
I get

> sudo: pip: command not found
>
I don't know how to update pip.
Do You have a hint?
All the best,
Stefan



Am So., 1. Nov. 2020 um 14:15 Uhr schrieb Dave Seidel :

> Try upgrading pip with sudo (i.e., "sudo pip install --upgrade pip"),
> though it is not really necessary to run abjab or anything else, which
> seems to have installed properly.
>
> - Dave
>
> On Sun, Nov 1, 2020 at 8:01 AM Stefan Thomas 
> wrote:
>
>> Dear community,
>> I tried to install abjad with
>> pip install abjad
>> And I got:
>>
>>> Collecting abjad
>>>  Using cached
>>> https://files.pythonhosted.org/packages/f7/2f/23b14c7ff2ca1a5728e81fc1b5960374ec444efad43b197dca009
>>> 53d90cc/Abjad-3.1.tar.gz
>>> Could not import setuptools which is required to install from a source
>>> distribution.
>>> Please install setuptools.
>>>
>>>
>>> You are using pip version 9.0.3, however version 20.2.4 is available.
>>> You should consider upgrading via the 'pip install --upgrade pip'
>>> command.
>>>
>> And after
>>
>>> pip install --upgrade pip
>>>
>> I've got
>>
>>> Collecting pip
>>>  Using cached
>>> https://files.pythonhosted.org/packages/cb/28/91f26bd088ce8e22169032100d4260614fc3da435025ff389ef1d
>>> 396a433/pip-20.2.4-py2.py3-none-any.whl
>>> Installing collected packages: pip
>>>  Found existing installation: pip 9.0.3
>>>Uninstalling pip-9.0.3:
>>>  Successfully uninstalled pip-9.0.3
>>>  Rolling back uninstall of pip
>>> Exception:
>>> Traceback (most recent call last):
>>>
>>>
>>>  File
>>> "/home/stefan/.local/lib/python2.7/site-packages/pip/basecommand.py", line
>>> 215, in main
>>>status = self.run(options, args)
>>>
>>>
>>>  File
>>> "/home/stefan/.local/lib/python2.7/site-packages/pip/commands/install.py",
>>> line 342, in run
>>>prefix=options.prefix_path,
>>>
>>>
>>>  File
>>> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_set.py", line
>>> 784, in install
>>>**kwargs
>>>
>>>
>>>  File
>>> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
>>> line 851, in install
>>>self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
>>>
>>>  File
>>> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
>>> line 1064, in move_wheel_files
>>>isolated=self.isolated,
>>>
>>>
>>>  File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py",
>>> line 345, in move_wheel_files
>>>clobber(source, lib_dir, True)
>>>
>>>
>>>  File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py",
>>> line 316, in clobber
>>>ensure_dir(destdir)
>>>
>>>
>>>  File
>>> "/home/stefan/.local/lib/python2.7/site-packages/pip/utils/__init__.py",
>>> line 83, in ensure_dir
>>>os.makedirs(path)
>>>
>>>
>>>  File "/usr/lib/python2.7/os.py", line 157, in makedirs
>>>
>>>mkdir(name, mode)
>>>
>>>
>>> OSError: [Errno 13] Permission denied:
>>> '/usr/local/lib/python2.7/dist-packages/pip-20.2.4.dist-info'
>>>
>>> You are using pip version 9.0.3, however version 20.2.4 is available.
>>> You should consider upgrading via the 'pip install --upgrade pip'
>>> command.
>>>
>> What can I do know?
>> Thanks for Your help,
>> Stefan
>>
>> Hey Megan,
>>>
>>> I use a different approach, but have you checked Abjad already?
>>> https://abjad.github.io/index.html
>>>
>>> Cheers
>>> Martín.
>>>
>>> www.martinrinconbotero.com
>>> On 31. Oct 2020, 18:51 +0100, Megan Aldrich ,
>>> wrote:
>>> > Hello,
>>> >
>>> > Is there a package that would allow me to output in a lilypond format
>>> from python? I found something through google searches and it’s poorly
>>> documented and hard to use. Is there something that you recommend using?
>>> >
>>> > Meg
>>> > --
>>> > Megan Aldrich
>>> >
>>> > Connecticut College
>>>
>>
>>


Re: Lilypond and Python

2020-11-01 Thread Stefan Thomas
Dear Dave,
unfortunately I have no idea how I can install abjad. I wasn't able to do
it with pip, can I do it in another way?

Am So., 1. Nov. 2020 um 15:50 Uhr schrieb Dave Seidel :

> Hi Stefan,
>
> I suppose that the root user does not have pip in its path. I advise not
> worrying about it -- the older version of pip is fully functional and
> should not affect your ability to install and run what you need.
>
> - Dave
>
> On Sun, Nov 1, 2020 at 9:38 AM Stefan Thomas 
> wrote:
>
>> Dear Dave,
>> thanks for Your soon reply.
>> When I type
>>
>>> sudo pip install --upgrade pip
>>>
>> I get
>>
>>> sudo: pip: command not found
>>>
>> I don't know how to update pip.
>> Do You have a hint?
>> All the best,
>> Stefan
>>
>>
>>
>> Am So., 1. Nov. 2020 um 14:15 Uhr schrieb Dave Seidel <
>> dave.sei...@gmail.com>:
>>
>>> Try upgrading pip with sudo (i.e., "sudo pip install --upgrade pip"),
>>> though it is not really necessary to run abjab or anything else, which
>>> seems to have installed properly.
>>>
>>> - Dave
>>>
>>> On Sun, Nov 1, 2020 at 8:01 AM Stefan Thomas <
>>> kontrapunktste...@gmail.com> wrote:
>>>
 Dear community,
 I tried to install abjad with
 pip install abjad
 And I got:

> Collecting abjad
>  Using cached
> https://files.pythonhosted.org/packages/f7/2f/23b14c7ff2ca1a5728e81fc1b5960374ec444efad43b197dca009
> 53d90cc/Abjad-3.1.tar.gz
> Could not import setuptools which is required to install from a source
> distribution.
> Please install setuptools.
>
>
> You are using pip version 9.0.3, however version 20.2.4 is available.
> You should consider upgrading via the 'pip install --upgrade pip'
> command.
>
 And after

> pip install --upgrade pip
>
 I've got

> Collecting pip
>  Using cached
> https://files.pythonhosted.org/packages/cb/28/91f26bd088ce8e22169032100d4260614fc3da435025ff389ef1d
> 396a433/pip-20.2.4-py2.py3-none-any.whl
> Installing collected packages: pip
>  Found existing installation: pip 9.0.3
>Uninstalling pip-9.0.3:
>  Successfully uninstalled pip-9.0.3
>  Rolling back uninstall of pip
> Exception:
> Traceback (most recent call last):
>
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/basecommand.py", line
> 215, in main
>status = self.run(options, args)
>
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/commands/install.py",
> line 342, in run
>prefix=options.prefix_path,
>
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_set.py", line
> 784, in install
>**kwargs
>
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
> line 851, in install
>self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
> line 1064, in move_wheel_files
>isolated=self.isolated,
>
>
>  File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py",
> line 345, in move_wheel_files
>clobber(source, lib_dir, True)
>
>
>  File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py",
> line 316, in clobber
>ensure_dir(destdir)
>
>
>  File
> "/home/stefan/.local/lib/python2.7/site-packages/pip/utils/__init__.py",
> line 83, in ensure_dir
>os.makedirs(path)
>
>
>  File "/usr/lib/python2.7/os.py", line 157, in makedirs
>
>mkdir(name, mode)
>
>
> OSError: [Errno 13] Permission denied:
> '/usr/local/lib/python2.7/dist-packages/pip-20.2.4.dist-info'
>
> You are using pip version 9.0.3, however version 20.2.4 is available.
> You should consider upgrading via the 'pip install --upgrade pip'
> command.
>
 What can I do know?
 Thanks for Your help,
 Stefan

 Hey Megan,
>
> I use a different approach, but have you checked Abjad already?
> https://abjad.github.io/index.html
>
> Cheers
> Martín.
>
> www.martinrinconbotero.com
> On 31. Oct 2020, 18:51 +0100, Megan Aldrich ,
> wrote:
> > Hello,
> >
> > Is there a package that would allow me to output in a lilypond
> format from python? I found something through google searches and it’s
> poorly documented and hard to use. Is there something that you recommend
> using?
> >
> > Meg
> > --
> > Megan Aldrich
> >
> > Connecticut College
>




Re: Lilypond and Python

2020-11-01 Thread Martín Rincón Botero
Hi Stefan,

it seems the updating process failed before having installed a newer version of 
pip (it says “command not found”). I would stick to learning how to install 
stuff using pip (with which you can install many modules for Python, not only 
abjad). If you’re using Ubuntu, reinstalling pip is a matter of:

sudo apt update
sudo apt install python3-pip

www.martinrinconbotero.com
On 1. Nov 2020, 16:24 +0100, Stefan Thomas , wrote:
> Dear Dave,
> unfortunately I have no idea how I can install abjad. I wasn't able to do it 
> with pip, can I do it in another way?
>
> > Am So., 1. Nov. 2020 um 15:50 Uhr schrieb Dave Seidel 
> > :
> > > Hi Stefan,
> > >
> > > I suppose that the root user does not have pip in its path. I advise not 
> > > worrying about it -- the older version of pip is fully functional and 
> > > should not affect your ability to install and run what you need.
> > >
> > > - Dave
> > >
> > > > On Sun, Nov 1, 2020 at 9:38 AM Stefan Thomas 
> > > >  wrote:
> > > > > Dear Dave,
> > > > > thanks for Your soon reply.
> > > > > When I type
> > > > > > sudo pip install --upgrade pip
> > > > > I get
> > > > > > sudo: pip: command not found
> > > > > I don't know how to update pip.
> > > > > Do You have a hint?
> > > > > All the best,
> > > > > Stefan
> > > > >
> > > > >
> > > > >
> > > > > > Am So., 1. Nov. 2020 um 14:15 Uhr schrieb Dave Seidel 
> > > > > > :
> > > > > > > Try upgrading pip with sudo (i.e., "sudo pip install --upgrade 
> > > > > > > pip"), though it is not really necessary to run abjab or anything 
> > > > > > > else, which seems to have installed properly.
> > > > > > >
> > > > > > > - Dave
> > > > > > >
> > > > > > > > On Sun, Nov 1, 2020 at 8:01 AM Stefan Thomas 
> > > > > > > >  wrote:
> > > > > > > > > Dear community,
> > > > > > > > > I tried to install abjad with
> > > > > > > > > pip install abjad
> > > > > > > > > And I got:
> > > > > > > > > > Collecting abjad
> > > > > > > > > >  Using cached 
> > > > > > > > > > https://files.pythonhosted.org/packages/f7/2f/23b14c7ff2ca1a5728e81fc1b5960374ec444efad43b197dca009
> > > > > > > > > > 53d90cc/Abjad-3.1.tar.gz
> > > > > > > > > > Could not import setuptools which is required to install 
> > > > > > > > > > from a source distribution.
> > > > > > > > > > Please install setuptools.
> > > > > > > > > > You are using pip version 9.0.3, however version 20.2.4 is 
> > > > > > > > > > available.
> > > > > > > > > > You should consider upgrading via the 'pip install 
> > > > > > > > > > --upgrade pip' command.
> > > > > > > > > And after
> > > > > > > > > > pip install --upgrade pip
> > > > > > > > > I've got
> > > > > > > > > > Collecting pip
> > > > > > > > > >  Using cached 
> > > > > > > > > > https://files.pythonhosted.org/packages/cb/28/91f26bd088ce8e22169032100d4260614fc3da435025ff389ef1d
> > > > > > > > > > 396a433/pip-20.2.4-py2.py3-none-any.whl
> > > > > > > > > > Installing collected packages: pip
> > > > > > > > > >  Found existing installation: pip 9.0.3
> > > > > > > > > >    Uninstalling pip-9.0.3:
> > > > > > > > > >  Successfully uninstalled pip-9.0.3
> > > > > > > > > >  Rolling back uninstall of pip
> > > > > > > > > > Exception:
> > > > > > > > > > Traceback (most recent call last):
> > > > > > > > > >  File 
> > > > > > > > > > "/home/stefan/.local/lib/python2.7/site-packages/pip/basecommand.py",
> > > > > > > > > >  line 215, in main
> > > > > > > > > >    status = self.run(options, args)
> > > > > > > > > >  File 
> > > > > > > > > > "/home/stefan/.local/lib/python2.7/site-packages/pip/commands/install.py",
> > > > > > > > > >  line 342, in run
> > > > > > > > > >    prefix=options.prefix_path,
> > > > > > > > > >  File 
> > > > > > > > > > "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_set.py",
> > > > > > > > > >  line 784, in install
> > > > > > > > > >    **kwargs
> > > > > > > > > >  File 
> > > > > > > > > > "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
> > > > > > > > > >  line 851, in install
> > > > > > > > > >    self.move_wheel_files(self.source_dir, root=root, 
> > > > > > > > > > prefix=prefix)
> > > > > > > > > >  File 
> > > > > > > > > > "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
> > > > > > > > > >  line 1064, in move_wheel_files
> > > > > > > > > >    isolated=self.isolated,
> > > > > > > > > >  File 
> > > > > > > > > > "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py",
> > > > > > > > > >  line 345, in move_wheel_files
> > > > > > > > > >    clobber(source, lib_dir, True)
> > > > > > > > > >  File 
> > > > > > > > > > "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py",
> > > > > > > > > >  line 316, in clobber
> > > > > > > > > >    ensure_dir(destdir)
> > > > > > > > > >  File 
> > > > > > > > > > "/home/stefan/.local/lib/python2.7/site-packages/pip/utils/__init__.py",
> > > > > > > > > >  line 83, in ensure_dir
> > > > > > > > > >    os.makedirs(path)
> > > > > > > > > >  File "/usr/lib/p

Re: Lilypond and Python

2020-11-01 Thread Stefan Thomas
Dear Dave,
many thanks to Your fast reply. But unfortunately it didn't work. It seems
to be a python problem:
pip install setuptools
Collecting setuptools

Using cached
https://files.pythonhosted.org/packages/e1/b7/182161210a13158cd3ccc41ee19aadef54496b74f2817cc147006
ec932b4/setuptools-44.1.1-py2.py3-none-any.whl
Installing collected packages: setuptools
Exception:
Traceback (most recent call last):


 File "/home/stefan/.local/lib/python2.7/site-packages/pip/basecommand.py",
line 215, in main
   status = self.run(options, args)


 File
"/home/stefan/.local/lib/python2.7/site-packages/pip/commands/install.py",
line 342, in run
   prefix=options.prefix_path,


 File "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_set.py",
line 784, in install
   **kwargs


 File
"/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
line 851, in install
   self.move_wheel_files(self.source_dir, root=root, prefix=prefix)

 File
"/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
line 1064, in move_wheel_files
   isolated=self.isolated,


 File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py", line
345, in move_wheel_files
   clobber(source, lib_dir, True)


 File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py", line
323, in clobber
   shutil.copyfile(srcfile, destfile)

 File "/usr/lib/python2.7/shutil.py", line 97, in copyfile

   with open(dst, 'wb') as fdst:


IOError: [Errno 13] Permission denied:
'/usr/local/lib/python2.7/dist-packages/easy_install.py'
You are using pip version 9.0.3, however version 20.2.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Am So., 1. Nov. 2020 um 16:51 Uhr schrieb Dave Seidel :

> Hi Stefan,
>
> Ah, sorry, I missed that! Going back and looking at your original post, it
> looks like pip failed to install abjab because it needs the setuptools
> package. Try
>
> pip install setuptools
>
> and if that succeeds then once again try
>
> pip install abjab
>
> More than that I can't really say, as I am not an Abjab user (at least not
> yet) and have not installed it myself.
>
> Best,
> Dave
>
> On Sun, Nov 1, 2020 at 10:22 AM Stefan Thomas 
> wrote:
>
>> Dear Dave,
>> unfortunately I have no idea how I can install abjad. I wasn't able to do
>> it with pip, can I do it in another way?
>>
>> Am So., 1. Nov. 2020 um 15:50 Uhr schrieb Dave Seidel <
>> dave.sei...@gmail.com>:
>>
>>> Hi Stefan,
>>>
>>> I suppose that the root user does not have pip in its path. I advise not
>>> worrying about it -- the older version of pip is fully functional and
>>> should not affect your ability to install and run what you need.
>>>
>>> - Dave
>>>
>>> On Sun, Nov 1, 2020 at 9:38 AM Stefan Thomas <
>>> kontrapunktste...@gmail.com> wrote:
>>>
 Dear Dave,
 thanks for Your soon reply.
 When I type

> sudo pip install --upgrade pip
>
 I get

> sudo: pip: command not found
>
 I don't know how to update pip.
 Do You have a hint?
 All the best,
 Stefan



 Am So., 1. Nov. 2020 um 14:15 Uhr schrieb Dave Seidel <
 dave.sei...@gmail.com>:

> Try upgrading pip with sudo (i.e., "sudo pip install --upgrade pip"),
> though it is not really necessary to run abjab or anything else, which
> seems to have installed properly.
>
> - Dave
>
> On Sun, Nov 1, 2020 at 8:01 AM Stefan Thomas <
> kontrapunktste...@gmail.com> wrote:
>
>> Dear community,
>> I tried to install abjad with
>> pip install abjad
>> And I got:
>>
>>> Collecting abjad
>>>  Using cached
>>> https://files.pythonhosted.org/packages/f7/2f/23b14c7ff2ca1a5728e81fc1b5960374ec444efad43b197dca009
>>> 53d90cc/Abjad-3.1.tar.gz
>>> Could not import setuptools which is required to install from a
>>> source distribution.
>>> Please install setuptools.
>>>
>>>
>>> You are using pip version 9.0.3, however version 20.2.4 is available.
>>> You should consider upgrading via the 'pip install --upgrade pip'
>>> command.
>>>
>> And after
>>
>>> pip install --upgrade pip
>>>
>> I've got
>>
>>> Collecting pip
>>>  Using cached
>>> https://files.pythonhosted.org/packages/cb/28/91f26bd088ce8e22169032100d4260614fc3da435025ff389ef1d
>>> 396a433/pip-20.2.4-py2.py3-none-any.whl
>>> Installing collected packages: pip
>>>  Found existing installation: pip 9.0.3
>>>Uninstalling pip-9.0.3:
>>>  Successfully uninstalled pip-9.0.3
>>>  Rolling back uninstall of pip
>>> Exception:
>>> Traceback (most recent call last):
>>>
>>>
>>>  File
>>> "/home/stefan/.local/lib/python2.7/site-packages/pip/basecommand.py", 
>>> line
>>> 215, in main
>>>status = self.run(options, args)
>>>
>>>
>>>  File
>>> "/home/stefan/.local/lib/python2.7/site-packages/pip/commands/install.py",
>>>

Re: Lilypond and Python

2020-11-01 Thread Federico Bruni
Il giorno dom 1 nov 2020 alle 17:07, Stefan Thomas 
 ha scritto:
many thanks to Your fast reply. But unfortunately it didn't work. It 
seems to be a python problem:

pip install setuptools
Collecting setuptools

Using cached 
https://files.pythonhosted.org/packages/e1/b7/182161210a13158cd3ccc41ee19aadef54496b74f2817cc147006

ec932b4/setuptools-44.1.1-py2.py3-none-any.whl
Installing collected packages: setuptools
Exception:
Traceback (most recent call last):
 File 
"/home/stefan/.local/lib/python2.7/site-packages/pip/basecommand.py", 
line 215, in main

   status = self.run(options, args)
 File 
"/home/stefan/.local/lib/python2.7/site-packages/pip/commands/install.py", 
line 342, in run

   prefix=options.prefix_path,
 File 
"/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_set.py", 
line 784, in install

   **kwargs
 File 
"/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py", 
line 851, in install

   self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
 File 
"/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py", 
line 1064, in move_wheel_files

   isolated=self.isolated,
 File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py", 
line 345, in move_wheel_files

   clobber(source, lib_dir, True)
 File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py", 
line 323, in clobber

   shutil.copyfile(srcfile, destfile)
 File "/usr/lib/python2.7/shutil.py", line 97, in copyfile
   with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: 
'/usr/local/lib/python2.7/dist-packages/easy_install.py'




You are using pip2 (python2) installed in ~/.local, but you're trying 
to install a py3 wheel.
pip2 install seems to try to install under /usr/local by default¹, but 
it won't work unless you use sudo.



I would try:

pip3 install --user setuptools


¹ pip3 is smarter and doesn't need the --user switch if called as 
regular user, see below:


$ pip -V
pip 20.2.2 from /usr/lib/python3.9/site-packages/pip (python 3.9)
$ pip install setuptools
Defaulting to user installation because normal site-packages is not 
writeable
Requirement already satisfied: setuptools in 
/usr/lib/python3.9/site-packages (49.1.3)








Re: Lilypond and Python

2020-11-01 Thread Stefan Thomas
Dear Frederico,
it worked!
I've installed abjad successfully.
Thanks,
Stefan

Am So., 1. Nov. 2020 um 22:55 Uhr schrieb Federico Bruni :

> Il giorno dom 1 nov 2020 alle 17:07, Stefan Thomas
>  ha scritto:
> > many thanks to Your fast reply. But unfortunately it didn't work. It
> > seems to be a python problem:
> > pip install setuptools
> > Collecting setuptools
> >
> > Using cached
> >
> https://files.pythonhosted.org/packages/e1/b7/182161210a13158cd3ccc41ee19aadef54496b74f2817cc147006
> > ec932b4/setuptools-44.1.1-py2.py3-none-any.whl
> > Installing collected packages: setuptools
> > Exception:
> > Traceback (most recent call last):
> >  File
> > "/home/stefan/.local/lib/python2.7/site-packages/pip/basecommand.py",
> > line 215, in main
> >status = self.run(options, args)
> >  File
> >
> "/home/stefan/.local/lib/python2.7/site-packages/pip/commands/install.py",
> > line 342, in run
> >prefix=options.prefix_path,
> >  File
> > "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_set.py",
> > line 784, in install
> >**kwargs
> >  File
> >
> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
> > line 851, in install
> >self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
> >  File
> >
> "/home/stefan/.local/lib/python2.7/site-packages/pip/req/req_install.py",
> > line 1064, in move_wheel_files
> >isolated=self.isolated,
> >  File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py",
> > line 345, in move_wheel_files
> >clobber(source, lib_dir, True)
> >  File "/home/stefan/.local/lib/python2.7/site-packages/pip/wheel.py",
> > line 323, in clobber
> >shutil.copyfile(srcfile, destfile)
> >  File "/usr/lib/python2.7/shutil.py", line 97, in copyfile
> >with open(dst, 'wb') as fdst:
> > IOError: [Errno 13] Permission denied:
> > '/usr/local/lib/python2.7/dist-packages/easy_install.py'
> >
>
> You are using pip2 (python2) installed in ~/.local, but you're trying
> to install a py3 wheel.
> pip2 install seems to try to install under /usr/local by default¹, but
> it won't work unless you use sudo.
>
>
> I would try:
>
> pip3 install --user setuptools
>
>
> ¹ pip3 is smarter and doesn't need the --user switch if called as
> regular user, see below:
>
> $ pip -V
> pip 20.2.2 from /usr/lib/python3.9/site-packages/pip (python 3.9)
> $ pip install setuptools
> Defaulting to user installation because normal site-packages is not
> writeable
> Requirement already satisfied: setuptools in
> /usr/lib/python3.9/site-packages (49.1.3)
>
>
>
>
>


Re: LilyPond and Python

2011-12-06 Thread Tim Reeves
>BTW when LilyPond uninstalled, it left behind a lot of redundant entries 
>in the Windoze registry. Not being a registry guru I have nothing 
>constructive to add beyond commenting on this. :-(
>
>-- 
>Hilary


Also not a registry guru, but I use CCleaner (
http://www.piriform.com/ccleaner) to clean up my Win XP registry from time 
to time, particularly after uninstalling or upgrading a bunch of software.
 You might give it a try.


Tim Reeves

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: LilyPond and Python

2011-12-07 Thread James
Hilary,

On 6 December 2011 22:30, Hilary Snaden  wrote:

> After severe problems (which seemed to include a version conflict) with a
> Python hack, I uninstalled Python and LilyPond, then reinstalled first
> Python and then LilyPond without its bundled Python (largely to see if it
> still worked).
>
> So far it /has/ still worked, with my Python script calling what's now the
> only Python version on the machine, and LilyPond apparently working as
> usual. (I also had to hack around a Python package to make it work with
> 3.2.2, but that's another story.)
>
> The question is, how dependent on Python is LilyPond? Am I likely to find
> problems in the future? (Python 3 syntax is very different from the version
> 2 which LilyPond wants to install.)
>

I cannot answer the Python Question although I had some similar problems
when trying out the 'bleeding edge' version of Frescobaldi that requires
Python27 and LP 2.14.1 which IIRC has Python 22..which may or may not be a
problem. But after installing Python27 I couldn't get the Windows OS to
'see' the correct python version (it was still seeing the older version) no
matter what I did with PATH. But anyway..


>
> BTW when LilyPond uninstalled, it left behind a lot of redundant entries
> in the Windoze registry. Not being a registry guru I have nothing
> constructive to add beyond commenting on this. :-(



Can you be more specific which registry entries?

LilyPond really isn't that 'deep' into the Windows OS so I expect that you
are seeing things in HKEY_LOCAL_MACHINE/Software/ after you have
uninstalled right or is it elsewhere?

-- 
--

James
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: lilypond and python-2.2

2002-01-16 Thread Jan Nieuwenhuizen

Petr Mladek <[EMAIL PROTECTED]> writes:

> I had problem to compile lilypond-1.4.10.tar.bz2 with new
> Python-2.2.tar.bz2.
> 
> You already found the critical line in lilypond-book.py:
> # pyton2.2b2 barfs on this
>  'lilypond-block': 
> 
>r"""(?m)^(?!@c)(?P(?s)(?P@lilypond(\[(?P.*?)\])?\s(?P.*?)@end
> 
> lilypond\s))""",
> 
> I found the equivalent code in python and a new check was added there.
> I think that the pattern for reqular expresison can not contains 
> the same identifier  two times. And this bug is checked now
> by python. It is correct and logical.
> 
> Small patch is attached. lilypond-book.py works now. Unfortunateely I have 
> not assurance that the fix is correct.

Yes, I think the problem was that python 1.5 doesn't like the (this?)
fix for python-2.2.

So, I'll have to re-check this, but thanks anyway, of course.

Greetings,
Jan.

-- 
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien   | http://www.lilypond.org


___
Lilypond-user mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/lilypond-user