| 1 | |
| 2 | ??? abstract "Ubuntu" |
| 3 | * Download the [deb file from here](https://csparkresearch.in/assets/installers/KuttyPy-1.0.25.deb) |
| 4 | * Navigate to the Downloaded deb file location, and install it. This also fetches dependencies : scipy, qtconsole, avr-gcc etc |
| 5 | ``` |
| 6 | sudo apt install ./KuttyPy-1.0.25.deb |
| 7 | ``` |
| 8 | * launch the kuttyPy GUI from the command prompt using the command |
| 9 | ``` |
| 10 | kuttypyplus |
| 11 | ``` |
| 12 | |
| 13 | It is also present in the applications menu as `KuttyPy GUI` . |
| 14 | |
| 15 | * You can also launch the kuttyPy IDE from the menu, or using the command |
| 16 | ``` |
| 17 | kuttypyide |
| 18 | ``` |
| 19 | |
| 20 | |
| 21 | |
| 22 | ??? abstract "Windows with Python3 installed [](https://badge.fury.io/py/kuttyPy)" |
| 23 | |
| 24 | * [Python3](https://www.python.org/ftp/python/3.8.0/python-3.8.0-amd64.exe) must be installed, and `pip` should be accessible. |
| 25 | * Open a command prompt as administrator, and use pip3 to install the KuttyPy package |
| 26 | ``` |
| 27 | py -3 -m pip install KuttyPy |
| 28 | ``` |
| 29 | * Download and install the [CH341 USB Driver](../assets/CH341SER.EXE) |
| 30 | * You will now be able to launch `kuttypyplus` from the prompt, and import the `kuttyPy` library from any Python script. |
| 31 | * you can also launch `kuttypyide` |
| 32 | * If you wish to compile C code and upload to the KuttyPy hardware, winavr must be installed, and `avr-gcc` must be accessible from a command prompt. |
| 33 | * Download and install `winavr` from [winavr.sourceforge.net](https://sourceforge.net/projects/winavr/files/WinAVR/20100110/WinAVR-20100110-install.exe/download) |
| 34 | * if the commands are not accessible, then you need to add the Scripts folder to the path. [similar docs here](https://csparkresearch.in/installers/install-via-pip.html#install-eyes17-from-pypi) |
| 35 | |
| 36 | |
| 37 | ??? warning "Windows bundled installer" |
| 38 | * The bundled installer includes Python3 and dependencies and KuttyPy software. Also includes winavr, usb driver. |
| 39 | |
| 40 | [Download Bundled Installer](https://drive.google.com/uc?export=download&id=18PD-Llx12PTfMRWlHA447TCMxTA6smWZ) |
| 41 | |
| 42 | !!! error "Made with Pyinstaller: Python will not be accessible globally" |
| 43 | Since the installer was made using PyInstaller, Python3 will not be accessible globally, and you will be limited to the ipython console within the KuttyPy software. |
| 44 | A better option would be to use pip to fetch PyQT5, qtconsole, pyserial, pyqtgraph, scipy , and KuttyPy . Winavr and the driver can be installed separately. Refer to the previous section. |
| 45 | |
| 46 | |
| 47 | |
| 48 | ??? abstract "Using Python PIP [](https://badge.fury.io/py/kuttyPy) Windows/Linux/Other OSes" |
| 49 | |
| 50 | * Python3 must be installed |
| 51 | * Open a command prompt as administrator, and use pip3 to install the KuttyPy package |
| 52 | ``` |
| 53 | pip3 install kuttyPy |
| 54 | ``` |
| 55 | * You will now be able to launch `kuttypy` from the prompt, and import the `kuttyPy` library from Python. |
| 56 | * If you wish to compile C code, `avr-gcc` must be accessible from a command prompt. Install it from the package manager of your OS. |
| 57 | |
| 58 | ???warning "setting permissions on Linux based systems " |
| 59 | Accessing the hardware on linux requires certain permissions to be set. |
| 60 | Due to an apparent bug with pip3, the install script may fail to do this. |
| 61 | |
| 62 | As a workaround, you can run the program as root to verify the permissions issue |
| 63 | ``` |
| 64 | sudo kuttypy |
| 65 | ``` |
| 66 | For a more permanent fix for regular users, please download and execute this |
| 67 | [post installation script](../assets/postinst.sh) |
| 68 | |
| 69 | ```bash |
| 70 | chmod +x postinst.sh |
| 71 | sudo ./postinst.sh |
| 72 | kuttypy |
| 73 | ``` |
| 74 | |
| 75 | |
| 76 | ???abtract " Installing from source code " |
| 77 | ```bash |
| 78 | sudo apt install python3-serial python3-pyqt5 python3-pyqt5.qtsvg gcc-avr avr-libc python3-qtconsole python3-scipy python3-pyqtgraph |
| 79 | git clone http://github.com/csparkresearch/kuttypy-gui |
| 80 | cd kuttypy-gui |
| 81 | python3 KuttyPyPlus.py |
| 82 | ``` |
| 83 | For setting hardware permissions, refer to the previous section |
| 84 | |
| 85 | ???abtract " Android App  . Unrelated." |
| 86 | The device works with android phones via USB-OTG, but the app is structured very differently from the desktop setup, and these docs do not apply. |
| 87 | |
| 88 | Install from the [Google Play Store](https://play.google.com/store/apps/details?id=com.cspark.kuttypy) |
| 89 | |
| 90 | |
| 91 | |
| 92 | ### Installing from the Ubuntu repository |
| 93 |  |
| 94 | |
| 95 | this version may not be up to date because this is very recent work, and several changes were made over the past few months |
| 96 | |
| 97 | + sudo apt install kuttypy |
| 98 | |
| 99 | |
| 100 | License: MIT |