Code Monkey home page Code Monkey logo

Comments (11)

AnsonLai avatar AnsonLai commented on August 27, 2024 1

I'm unclear as to why, but once I cd into that directory and python pianoplayer it works fine. So for anyone who wants to do this on windows, make sure to download the \bin\ folder from github, place it into the directory and then cd into the \bin\ folder and run the pianoplayer file.

Thanks for making this!

from pianoplayer.

marcomusy avatar marcomusy commented on August 27, 2024

Hi @PharaohsVizier
anaconda is not needed in principle, unfortunately I have very little experience with windows..
what if you run something like:
python C:\Users\__USERNAME__\AppData\Local\Programs\Python\Python36\Lib\site-packages\pianoplayer\bin\pianoplayer
Or
edit the pianoplayer.bat to add the correct path where you pip installed the package?

from pianoplayer.

AnsonLai avatar AnsonLai commented on August 27, 2024

I think that might be one of the challenges. After pip installation, the pianoplayer folder in site-packages doesn't have a bin folder with the pianoplayer file. After a search, I'm quite convinced it's nowhere.
I took it from the source code, placed it into the folder and tried to run it, but I get the same can't find '__main__' module error.
I tried the pianoplayer.bat file as well and I get a flash. I'm almost certain I'm pointing it into the wrong path though. For the CALL, I've pointed it to the virtualenv activate, and for the python, I've pointed it towards the pianoplayer file in the bin folder.

from pianoplayer.

marcomusy avatar marcomusy commented on August 27, 2024

Thanks @PharaohsVizier for your input!
Actually after trying installing it on a windows partition I found that the pianoplayer script gets stored in a different path:
C:\Users\musy\AppData\Local\Programs\Python\Python37\Scripts\

so this starts the GUI normally on my system:
python C:\Users\musy\AppData\Local\Programs\Python\Python37\Scripts\pianoplayer

Note that you need to have musescore executable in your path, otherwise you can just open the output.xml from the running musescore program (or using any other viewer).

I´ll leave this open and pinned in case it turns useful to other users.

from pianoplayer.

bukakow avatar bukakow commented on August 27, 2024

"generate" exports the invalid file that musescore does not read.
"musescore" doesn't work because it only sends a musescore command prompt which is not suitable for windows.

There is no information that you can't use a newer version of python from 3.6, and you cant, because vtk will prevent installation of the package.

execution file would be a step forward, because it's a terrible nuisance.

from pianoplayer.

marcomusy avatar marcomusy commented on August 27, 2024

This is due to my poor familiarity with windows..
I'll try to fix these issues as soon as I can.

from pianoplayer.

CtrlP1 avatar CtrlP1 commented on August 27, 2024

Thanks @PharaohsVizier for your input!
Actually after trying installing it on a windows partition I found that the pianoplayer script gets stored in a different path:
C:\Users\musy\AppData\Local\Programs\Python\Python37\Scripts\

so this starts the GUI normally on my system:
python C:\Users\musy\AppData\Local\Programs\Python\Python37\Scripts\pianoplayer

Note that you need to have musescore executable in your path, otherwise you can just open the output.xml from the running musescore program (or using any other viewer).

I´ll leave this open and pinned in case it turns useful to other users.

Hi, I am also using windows and new to python. I was able to get pianoplayer to launch from the bin folder I dragged over to site-packages/pianoplayer folder. I am also able to generate the output.xml which is output in the bin folder from before. When I try Musescore I get an error and I guess it is because I do not have the musescore executable in my path which I don't know exactly how to do.

The output looks just fine when I manually open it with musescore. My main thing is wanting to see it on the 3D player. When I press the 3D Player button I get this error:

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\username\AppData\Local\Programs\Python\Python36\lib\tkinter_init_.py", line 1699, in call
return self.func(*args)
File "pianoplayer", line 97, in vpCMD
from pianoplayer.vkeyboard import VirtualKeyboard
ModuleNotFoundError: No module named 'pianoplayer.vkeyboard'

Any help would be appreciated, mainly for the 3D player.

from pianoplayer.

marcomusy avatar marcomusy commented on August 27, 2024

Hi @CtrlP1 are you sure you have the latest version of the module? Try
pip install -U pianoplayer

Check out #27 for more info about setting paths.

The 3D player at the moment has a few things I need to improve (especially the sound..), I hope i'll have more free time by the end of this month to fix them.

from pianoplayer.

CtrlP1 avatar CtrlP1 commented on August 27, 2024

Hi @CtrlP1 are you sure you have the latest version of the module? Try
pip install -U pianoplayer

Check out #27 for more info about setting paths.

The 3D player at the moment has a few things I need to improve (especially the sound..), I hope i'll have more free time by the end of this month to fix them.

I checked and do have the latest version and I also added "C:\Program Files\MuseScore 3\bin" but I still get this error:
try opening musescore
'musescore' is not recognized as an internal or external command,
operable program or batch file.

from pianoplayer.

CtrlP1 avatar CtrlP1 commented on August 27, 2024

I'm unclear as to why, but once I cd into that directory and python pianoplayer it works fine. So for anyone who wants to do this on windows, make sure to download the \bin\ folder from github, place it into the directory and then cd into the \bin\ folder and run the pianoplayer file.

Thanks for making this!

Howdy AnsonLai, do you still use this program? was hoping you could chime in on this issue since you're also using windows. Any help would be greatly appreciated, thanks.

from pianoplayer.

AnsonLai avatar AnsonLai commented on August 27, 2024

Unfortunately I never took that extra step of using Musescore, I was purely interested in the output.xml for a few specific files. Sorry!

from pianoplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.