pianoplayer icon indicating copy to clipboard operation
pianoplayer copied to clipboard

Cannot visualize: `ERROR: texture file wood1 does not exist`

Open toku-sa-n opened this issue 2 years ago • 3 comments

Hello. I'm trying to visualize my MIDI file with this command:

pianoplayer midi_file.midi -vz

However, the command fails with these errors:

[vedo.mesh.py:463] ERROR: texture file wood1 does not exist
[vedo.mesh.py:463] ERROR: texture file wood1 does not exist
Traceback (most recent call last):
  File "/home/hiroki/.local/bin/pianoplayer", line 224, in <module>
    vk = VirtualKeyboard(songname=xmlfn)
  File "/home/hiroki/.local/lib/python3.9/site-packages/pianoplayer/vkeyboard.py", line 41, in __init__
    self.build_keyboard()
  File "/home/hiroki/.local/lib/python3.9/site-packages/pianoplayer/vkeyboard.py", line 91, in build_keyboard
    self.vp += Text('PianoPlayer ^'+__version__+" ",
NameError: name 'Text' is not defined

I couldn't find the texture files on my computer. How can I get them?

toku-sa-n avatar May 23 '22 03:05 toku-sa-n

Hi thanks for reporting my guess is that you have a incompatible vedo version, try:

pip install vedo==2020.4.2 -U

marcomusy avatar May 23 '22 10:05 marcomusy

Thank you, that command solved the problem. By the way, I've installed pianoplayer with pip install --user pianoplayer. I don't understand python fully, but since the requirements.txt contains vedo==2020.4.2, I think vedo should have been installed at that time. Did I miss something?

toku-sa-n avatar May 24 '22 03:05 toku-sa-n

You are right.. I not sure the pip command did not take the specified version as in the requirements file...

marcomusy avatar May 24 '22 09:05 marcomusy