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

Cant get it to run #1

Open
Blotz opened this issue Jun 15, 2023 · 1 comment
Open

Cant get it to run #1

Blotz opened this issue Jun 15, 2023 · 1 comment

Comments

@Blotz
Copy link

Blotz commented Jun 15, 2023

I've tried with python 3.8 and 3.9 in linux
All other versions wont install the specified versions

steps to reproduce!

tar xzf 1.1.0.tar.gz
cd Handwritten-Character-Recognition-1.1.0/
python3 -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
python3 __main__.py

error for Python 3.8.16

Traceback (most recent call last):
  File "__main__.py", line 14, in <module>
    from mykit.app.button import Button
  File "/home/user/dox/git/Handwritten-Character-Recognition-1.1.0/venv/lib/python3.8/site-packages/mykit/app/button.py", line 6, in <module>
    class Button:
  File "/home/user/dox/git/Handwritten-Character-Recognition-1.1.0/venv/lib/python3.8/site-packages/mykit/app/button.py", line 13, in Button
    buttons: dict[str, 'Button'] = {}
TypeError: 'type' object is not subscriptable

error for Python 3.9.16

Traceback (most recent call last):
  File "/home/user/dox/git/Handwritten-Character-Recognition-1.1.0/__main__.py", line 14, in <module>
    from mykit.app.button import Button
  File "/home/user/dox/git/Handwritten-Character-Recognition-1.1.0/venv/lib/python3.9/site-packages/mykit/app/button.py", line 6, in <module>
    class Button:
  File "/home/user/dox/git/Handwritten-Character-Recognition-1.1.0/venv/lib/python3.9/site-packages/mykit/app/button.py", line 20, in Button
    fn: _typing.Callable[[], None] | None = None,
TypeError: unsupported operand type(s) for |: '_CallableGenericAlias' and 'NoneType'
@nvfp
Copy link
Owner

nvfp commented Jun 15, 2023

Hi, thanks for letting me know. Sorry I forgot to mention that it should be run on python310.

I will close the issue once I finish the next version, the next version should be able to run on at least 3.8.

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

No branches or pull requests

2 participants