Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing #26

Closed
BrendRR opened this issue Aug 23, 2020 · 10 comments
Closed

Problem installing #26

BrendRR opened this issue Aug 23, 2020 · 10 comments

Comments

@BrendRR
Copy link

BrendRR commented Aug 23, 2020

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
Copy link
Author

BrendRR commented Aug 23, 2020

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

@marcomusy
Copy link
Owner

Hi @BrendRR try ignoring vtk with:

pip install music21
pip install --no-deps pianoplayer

@BrendRR
Copy link
Author

BrendRR commented Aug 23, 2020

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
Copy link
Owner

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
Copy link
Author

BrendRR commented Aug 23, 2020

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
Copy link
Author

BrendRR commented Aug 23, 2020

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
Copy link
Author

BrendRR commented Aug 23, 2020

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
Copy link
Owner

marcomusy commented Aug 23, 2020

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
Copy link
Author

BrendRR commented Aug 23, 2020

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants