pianoplayer icon indicating copy to clipboard operation
pianoplayer copied to clipboard

Installing without Anaconda on Windows 10

Open marcomusy opened this issue 3 years ago • 18 comments

Installing pianoplayer without Anaconda is possible with the following steps:

  1. If python is not already installed download it from https://www.python.org/downloads/windows/ (choose preferably version 3.6) and install it the usual way

  2. Click the Start button and start typing sysdm.cpl and click OK. This opens the System Properties window. Navigate to the Advanced tab and select Environment Variables On the lower panel select Path and click Edit

    image

    Add now two new entries: (path may change depending on your system, e.g. if you installed version 3.6) "C:\Python36" "C:\Python36\Scripts"

    Click OK and close.

  3. Click the Start button and start typing cmd and click OK. This opens a new terminal. Install now pianoplayer. Type: (this may take some time to complete) pip install pianoplayer

    If the above fails type instead: pip install music21 pip install --no-deps pianoplayer

  4. Place this file to your desktop. When you save it, make sure its extension is .bat (not .bat.txt) Edit it and change the path to: anaconda_path="C:\Python36"

  5. Double clicking the desktop icon will start the program.

marcomusy avatar Aug 23 '20 20:08 marcomusy

Hello ! First, thanks you for this program 👍 I got an error when I try to do "pip install pianoplayer" : "ERROR: Could not find a version that satisfies the requirement vtkplotter (from pianoplayer) (from versions: none) ERROR: No matching distribution found for vtkplotter (from pianoplayer)"

Idk what it can means, I tried to search on google but found nothing interesting... Can you help me pls ? Thanks you very much

Leiasticot avatar Jan 09 '21 18:01 Leiasticot

that's super weird! vtkplotter does not exist anymore, the new name is vedo. What operative system are you using? try pip install --upgrade music21==6.1.0

pip install -U git+https://github.com/marcomusy/pianoplayer.git Or else: pip install --no-deps pianoplayer

marcomusy avatar Jan 09 '21 18:01 marcomusy

that's super weird! vtkplotter does not exist anymore, the new name is vedo. What operative system are you using? try pip install --upgrade music21==6.1.0

pip install -U git+https://github.com/marcomusy/pianoplayer.git Or else: pip install --no-deps pianoplayer

I'm using windows 10 The 2 first command worked, but now, nothing happen when I launch the bat (I changed the path) Idk why it doesn't work, I followed this guide

Leiasticot avatar Jan 09 '21 18:01 Leiasticot

open a terminal with cmd (or anaconda terminal) and type pianoplayer, does that work? (that's why i hate windows :)

marcomusy avatar Jan 09 '21 18:01 marcomusy

open a terminal with cmd (or anaconda terminal) and type pianoplayer, does that work? (that's why i hate windows :)

Nop, it doesn't work... I will try with a ubuntu VM

Leiasticot avatar Jan 09 '21 18:01 Leiasticot

it doesn't find the path installation i guess

marcomusy avatar Jan 09 '21 18:01 marcomusy

How to run pianoplayer in mac? Thank you!

imcaptor avatar Jan 12 '22 03:01 imcaptor

Hi there- I've got all the packages installed and PATH variables set, but when I try to run pianoplayer from the cmd line, I get this error:

image

Tried changing HOME to HOMEPATH or HOMEDRIVE in activate.py, which yields this: image

Any suggestions? (Yes, I know my Python path variable is the super lazy version in APPDATA and I really need to just re-install it under C:. 🤣 )

kchurch05 avatar Jan 21 '22 13:01 kchurch05

Hi - sorry I'm not very familiar with windows OS ... I think there should be a bin area where executables are stored - if you manage to find it it should contain the pianoplayer executable or script. You may need to then type: python pianoplayer

marcomusy avatar Jan 21 '22 14:01 marcomusy

How to run pianoplayer in mac? Thank you!

On mac - after pip install pianoplayer - you should be able to simply run it by command line!

marcomusy avatar Jan 21 '22 14:01 marcomusy

Got it working!

One thing I found (that I wasn't aware of) is that Windows had mucked up my 2.7 and 3.6 Python installs and was using 2.7 as the default, so every library and script was in 2.7. I ended up uninstalling 2.7, but it still wasn't working when I typed it in as "python pianoplayer." It would work if I double clicked on the pianoplayer file in file explorer and used "open with," but then the output.xml file was ending up in /Windows/System32 and it'd throw a permissions error.

I then noticed that if I just typed "python" in the command prompt, the #$& Windows store kept opening, which lead me to this: https://stackoverflow.com/questions/58754860/cmd-opens-window-store-when-i-type-python

Fixed that and am able to run in command prompt with "python pianoplayer" in the /bin directory. Make sure you're running it as admin.

Hope this helps!

kchurch05 avatar Jan 27 '22 04:01 kchurch05

image

Zeshan17 avatar Apr 04 '22 04:04 Zeshan17

image jesus christ

Zeshan17 avatar Jul 23 '22 05:07 Zeshan17

My pianoplayer is at C:\Users****\AppData\Roaming\Python\Python39\Scripts\pianoplayer

**** is my user name.

maybe you should find where your pianoplayer is.

heyisben avatar Mar 07 '23 13:03 heyisben

Hi,there. Here is a way to avoid bat file to run this porject in windows 11(surely),winodws10(not sure) if you have try to learn the d2l,you are likely to have download a miniconda. this vedio may help if so, try to use this terminal tpye in pip install pianoplayer image and then quit that find the path you download conda. image enter the "Scripts" folder, then right click, chose open in the terminal image type "python pianoplayer" and enter Done,enjoy it.

AuraVan avatar May 11 '23 15:05 AuraVan

Hi Im a newbie Did all that was said. Finally when I double click the bat file this is what I get. I have no background in python. Please let me know where Im wrong Screenshot

VIVEKPIANO avatar Jul 26 '23 15:07 VIVEKPIANO

it works for me in Win 11. Note that the python path may diffrenent and need to add to environment.

howlup avatar Jan 06 '24 03:01 howlup

I get this error: "AttributeError: 'Part' object has no attribute 'flatten'".

winoni71 avatar Mar 26 '24 19:03 winoni71