Giter Site home page Giter Site logo

felixgse / pypiano Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 8.0 61 KB

PyPiano is a python library to programmatically play piano. It is an easy to use abstraction layer on top of the python-mingus package providing a simple to use interface to play mingus music containers

License: Other

Python 100.00%
mingus python

pypiano's People

Contributors

felixgse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pypiano's Issues

Is this still maintained?

I'm asking because the packaging of 0.1.0 seems to list unused dependencies like numpy, unnecessarily pin dependencies and install other dependencies only needed for develoopment like tox, flake8, pyflakes, and pytest, causing conflicts in existing environments.

Installation error

Dear all,

I tried to install this package but received the following error message. Any help is greatly appreciated!

    File "C:\Users\byan\AppData\Local\Temp\pip-install-8o4jqsj4\numpy_03b34c0678cd4776a3f95075c00f0c1b\numpy\distutils\ccompiler.py", line 90, in <lambda>
      m = lambda self, *args, **kw: func(self, *args, **kw)
                                    ^^^^^^^^^^^^^^^^^^^^^^^
  TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Import Error

Traceback (most recent call last):
File "main.py", line 5, in
from pypiano import Piano
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/pypiano/init.py", line 1, in
from .piano import Piano
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/pypiano/piano.py", line 14, in
from .keyboard import PianoKeyboard, PianoKey
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/pypiano/keyboard.py", line 170, in
class PianoKeyboard(object):
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/pypiano/keyboard.py", line 271, in PianoKeyboard
def distinct_key_names(self) -> set[str]:
TypeError: 'type' object is not subscriptable

Reproduce:
Copy paste example onto a new python environment on replit.com

This error shouldn't be caused by an online IDE since its caused by the startup of the module when called.

image

Failed building wheel for numpy

Hi!
During the installation the error was: "Could not build wheels for numpy, which is required to install pyproject.toml-based projects". I already ran:
pip install --upgrade pip & pip install numpy

But it is still not working, any ideas?

TypeError: 'type' object is not subscriptable

Hi! I got this error, how could i fix it?
Thanks!

from pypiano import Piano


TypeError Traceback (most recent call last)
in
----> 1 from pypiano import Piano

~/projects/pypiano/pypiano/init.py in
----> 1 from .piano import Piano
2
3 all = ["pypiano"]

~/projects/pypiano/pypiano/piano.py in
12 from typing import Union
13 from pathlib import Path
---> 14 from .keyboard import PianoKeyboard, PianoKey
15
16 from .utils import (

~/projects/pypiano/pypiano/keyboard.py in
168
169
--> 170 class PianoKeyboard(object):
171 """Class representing a 88 key piano keyboard"""
172

~/projects/pypiano/pypiano/keyboard.py in PianoKeyboard()
269
270 @Property
--> 271 def distinct_key_names(self) -> set[str]:
272 """Get all distinct key names / note names on the piano keyboard
273

TypeError: 'type' object is not subscriptable

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.