[GH-ISSUE #1085] tito setup needs Python 3.10 instead of 3.8+ #1686

Closed
opened 2026-04-11 08:02:15 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @KarthikDani on GitHub (Dec 25, 2025).
Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/1085

I ran tito setup with Python version 3.9.6 but I got the following error.

(.venv) karthik@Karthiks-Mac-mini tinytorch % tito setup

Traceback (most recent call last):

  File "/Users/karthik/tinytorch/.venv/bin/tito", line 3, in <module>

    from tito.main import main

  File "/Users/karthik/tinytorch/tito/main.py", line 42, in <module>

    from .commands.update import UpdateCommand

  File "/Users/karthik/tinytorch/tito/commands/update.py", line 17, in <module>

    class UpdateCommand(BaseCommand):

  File "/Users/karthik/tinytorch/tito/commands/update.py", line 50, in UpdateCommand

    def _get_current_version(self) -> str | None:

TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

The install.sh requires 3.8+ but the Python pipe operator seems to have been introduced in 3.10, please update the script for checking version comptibility :)

I've been searching such a thing since years and now I have it. Consider me I love this initiative, thank you very much.

Best,
Karthik.

Originally created by @KarthikDani on GitHub (Dec 25, 2025). Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/1085 I ran `tito setup` with Python version `3.9.6` but I got the following error. ```bash (.venv) karthik@Karthiks-Mac-mini tinytorch % tito setup Traceback (most recent call last): File "/Users/karthik/tinytorch/.venv/bin/tito", line 3, in <module> from tito.main import main File "/Users/karthik/tinytorch/tito/main.py", line 42, in <module> from .commands.update import UpdateCommand File "/Users/karthik/tinytorch/tito/commands/update.py", line 17, in <module> class UpdateCommand(BaseCommand): File "/Users/karthik/tinytorch/tito/commands/update.py", line 50, in UpdateCommand def _get_current_version(self) -> str | None: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' ``` The `install.sh` requires 3.8+ but the Python pipe operator seems to have been introduced in `3.10`, please update the script for checking version comptibility :) I've been searching such a thing since years and now I have it. Consider me I love this initiative, thank you very much. Best, Karthik.
GiteaMirror added the area: tinytorch label 2026-04-11 08:02:15 -05:00
Author
Owner

@KarthikDani commented on GitHub (Dec 25, 2025):

Please check this PR. I've fixed install.sh

<!-- gh-comment-id:3691465428 --> @KarthikDani commented on GitHub (Dec 25, 2025): Please [check this PR](https://github.com/harvard-edge/cs249r_book/pull/1086). I've fixed `install.sh`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/cs249r_book#1686