lilypond-user
[Top][All Lists]
Advanced

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

Re: Lilypond and Python


From: Stefan Thomas
Subject: Re: Lilypond and Python
Date: Sun, 1 Nov 2020 16:22:02 +0100

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.seidel@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 <kontrapunktstefan@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.seidel@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 <kontrapunktstefan@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 <maldrich@conncoll.edu>, 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


reply via email to

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