Virtual Environment fail #4

Open
opened 2025-11-02 00:09:40 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @hpssjellis on GitHub (Jul 25, 2025).

@profvjreddi

For me on both Windows and Linux Tito complains about a virtual environment not being setup, but there doesn't seem to be instructions to set it up. The installation code possibly tried to auto activate it, but I can't find the code that would do the activation.

It looks like venv should be in created in the modules/source folder, but when I create it, tito still complains.

I tried in the TinyTorch/modules/source folder:

python -m venv venv
venv\Scripts\activate.bat      ## or on linux run         source venv/bin/activate

Using the online binder, tito also fails, but can be installed using !pip install tito and then !tito test which runs but also fails when it can't find the correct virtual environment.

Here is the original binder code that fails

# =============================================================================
# STANDARDIZED MODULE TESTING - DO NOT MODIFY
# This cell is locked to ensure consistent testing across all TinyTorch modules
# =============================================================================

if __name__ == "__main__":
    from tito.tools.testing import run_module_tests_auto
    
    # Automatically discover and run all tests in this module
    success = run_module_tests_auto("Setup")

Gives the error


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[17], line 7
      1 # =============================================================================
      2 # STANDARDIZED MODULE TESTING - DO NOT MODIFY
      3 # This cell is locked to ensure consistent testing across all TinyTorch modules
      4 # =============================================================================
      6 if __name__ == "__main__":
----> 7     from tito.tools.testing import run_module_tests_auto
      9     # Automatically discover and run all tests in this module
     10     success = run_module_tests_auto("Setup")

ModuleNotFoundError: No module named 'tito'

For binder I did find that the tito folder is in the main folder not the tinyTorch folder.

Observation:

  1. Each source folder in binder has an .ipynb file but the github source folders do not have one they only have the .py file.

I can make a .ipynb file by loading a blank one and running a cell with %load modules/source/01_setup/setup_dev.py

  1. My windows machine needed to install VScode C++ Dev tools about 6 GB

  2. NodeJS was also expected to be installed

I haven't really done much with jupyter notebooks for about a decade so I might have done something silly.

Originally created by @hpssjellis on GitHub (Jul 25, 2025). @profvjreddi For me on both Windows and Linux Tito complains about a virtual environment not being setup, but there doesn't seem to be instructions to set it up. The installation code possibly tried to auto activate it, but I can't find the code that would do the activation. It looks like ```venv``` should be in created in the modules/source folder, but when I create it, tito still complains. I tried in the TinyTorch/modules/source folder: ``` python -m venv venv venv\Scripts\activate.bat ## or on linux run source venv/bin/activate ``` Using the online binder, tito also fails, but can be installed using ```!pip install tito``` and then ```!tito test``` which runs but also fails when it can't find the correct virtual environment. Here is the original binder code that fails ``` # ============================================================================= # STANDARDIZED MODULE TESTING - DO NOT MODIFY # This cell is locked to ensure consistent testing across all TinyTorch modules # ============================================================================= if __name__ == "__main__": from tito.tools.testing import run_module_tests_auto # Automatically discover and run all tests in this module success = run_module_tests_auto("Setup") ``` Gives the error ``` --------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) Cell In[17], line 7 1 # ============================================================================= 2 # STANDARDIZED MODULE TESTING - DO NOT MODIFY 3 # This cell is locked to ensure consistent testing across all TinyTorch modules 4 # ============================================================================= 6 if __name__ == "__main__": ----> 7 from tito.tools.testing import run_module_tests_auto 9 # Automatically discover and run all tests in this module 10 success = run_module_tests_auto("Setup") ModuleNotFoundError: No module named 'tito' ``` For binder I did find that the tito folder is in the main folder not the tinyTorch folder. Observation: 1. Each source folder in binder has an .ipynb file but the github source folders do not have one they only have the .py file. I can make a .ipynb file by loading a blank one and running a cell with ```%load modules/source/01_setup/setup_dev.py``` 2. My windows machine needed to install VScode C++ Dev tools about 6 GB 3. NodeJS was also expected to be installed I haven't really done much with jupyter notebooks for about a decade so I might have done something silly.
Author
Owner

@profvjreddi commented on GitHub (Oct 25, 2025):

Hey @hpssjellis, this issue should be fixed, but nonetheless, hold on tight for another few weeks until I drop the v0.1 release.

@profvjreddi commented on GitHub (Oct 25, 2025): Hey @hpssjellis, this issue should be fixed, but nonetheless, hold on tight for another few weeks until I drop the v0.1 release.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/TinyTorch#4