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

TypeError: 'type' object is not subscriptable #4

Closed
youyoubilly opened this issue Jun 4, 2021 · 4 comments · Fixed by #7
Closed

TypeError: 'type' object is not subscriptable #4

youyoubilly opened this issue Jun 4, 2021 · 4 comments · Fixed by #7

Comments

@youyoubilly
Copy link

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

@FelixGSE
Copy link
Owner

FelixGSE commented Jun 7, 2021

Hi, I am having trouble to reproduce your error. Can you provide a little bit more context on what you did?

@stale
Copy link

stale bot commented Aug 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Aug 6, 2021
@stale stale bot closed this as completed Aug 13, 2021
@PaulShiLi
Copy link

Same error occurs when using example on replit.com

image

@FelixGSE FelixGSE reopened this Jan 15, 2022
@stale stale bot removed the wontfix This will not be worked on label Jan 15, 2022
@FelixGSE FelixGSE linked a pull request Jan 15, 2022 that will close this issue
@FelixGSE
Copy link
Owner

Hi guys, sorry for the long response time. I didn't have time to look into the issue earlier. It should be resolved now. I am a bit confused why I was not running into the same problem. Anyway, sorry again that it took so long.

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

Successfully merging a pull request may close this issue.

3 participants