marcomusy / pianoplayer

Automatic fingering generator for piano scores
MIT License
723 stars 82 forks source link

Problem installing #26

Closed BrendRR closed 4 years ago

BrendRR commented 4 years ago

Hello! The last month, i've been trying to install this program, but i just can't seem to do it. I never worked with python before, but i managed to get pip install working now. When i put in the pip install --upgrade pianoplayer , it says :

Collecting pianoplayer Using cached pianoplayer-2.1.0.tar.gz (1.2 MB) Collecting music21 Using cached music21-5.7.2.tar.gz (18.5 MB) Collecting vtkplotter Using cached vtkplotter-2020.3.1.tar.gz (18.4 MB) ERROR: Could not find a version that satisfies the requirement vtk (from vtkplotter->pianoplayer) (from versions: none) ERROR: No matching distribution found for vtk (from vtkplotter->pianoplayer)

when i then try to open the batch file, it just flashes and dissapears. Could someone please help me out? Thank you! Regards, Brend

BrendRR commented 4 years ago

Forgot to mention, i'm on a windows 10 machine.

marcomusy commented 4 years ago

Hi @BrendRR try ignoring vtk with:

pip install music21
pip install --no-deps pianoplayer
BrendRR commented 4 years ago

Hi, Thanks for the very fast reply! I just gave in those two commands, Now it says that music 21 and pianoplayer 2.1 are sucessfully installed, When i double click the batch file on my desktop however, it just flashes.

marcomusy commented 4 years ago

If you're using Anaconda you probably need to edit the path in pianoplayer.bat to point to where you installed it (see here).

Otherwise you might use command line in a terminal.

Unfortunately I never used windows so i'm not familiar to it..

BrendRR commented 4 years ago

I don't think i'm using anaconda, like i said, i never worked with python before, it's my very first time. I did read something about the bin file missing, so i pasted that in the pianoplayer folder under site-packages, when i cd "C:\Users\Brend Robert\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pianoplayer\bin>pianoplayer it says ;'pianoplayer' is not recognized as an internal or external command, operable program or batch file.

BrendRR commented 4 years ago

i tried copying the bat file into the bin folder i placed in the pianoplayer file: C:\Users\Brend Robert\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pianoplayer\bin>pianoplayer Starting pianoplayer... The system cannot find the path specified. 'python' is not recognized as an internal or external command, operable program or batch file. Closing window...

BrendRR commented 4 years ago

fixed that, I added python as path. C:\Users\Brend Robert\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\pianoplayer\bin>pianoplayer Starting pianoplayer... The system cannot find the path specified. python: can't open file 'C:\ProgramData\anaconda3\Scripts\pianoplayer': [Errno 2] No such file or directory Closing window...

should i install anaconda?

marcomusy commented 4 years ago

Hi, I don't quite understand the message "can't open file 'C:\ProgramData\anaconda3\Scripts\pianoplayer'" since you don't have anaconda, it seems you are trying to use the batch file not the command line...

Yes - I would try anaconda3 - it tends to make python running more easily. https://www.anaconda.com/products/individual Then you will have an anaconda terminal that should work out of the box.

Thanks for your patience :)

BrendRR commented 4 years ago

Hello, After a lot of trying out various things, i got it to work! A massive thanks! I did ended up using anaconda. I'm wondering, why are there so few programs like this, is it so hard to write, or do most pianists prefer to write their own fingering?

marcomusy commented 4 years ago

Great :)

why are there so few programs like this, is it so hard to write, or do most pianists prefer to write their own fingering?

I think it's a combination of various factors.. it's not easy to write it, there are many possible approaches, the results are generally poor when judged by experienced pianists (pianoplayer does indeed produce some nonsense fingering in a few places...). Pianists vary a lot in fingering choices for the same piece too!

So I hope you'll find the program useful or at least informative beyond all these caveats!

I tried installing the program on an old windows machine and managed to do it without anaconda, so i'll post the recipe in a separate issue.