arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

DPU Installation

Process for installation of the Data Processing Unit (DPU)

You can run eVOLVER experiment culture routines directly on the command line, or through the Electron graphical interface. This page documents how to install the DPU for use on the command line.

circle-info

We recommend running the DPU through the GUI for most use cases. Please see the Electron App (GUI) Installation documentation and the GUI Start Guide for more information.

circle-exclamation

Even if you plan to use the GUI to run your experiments, you still need to go through these steps!

circle-check

If you are unfamiliar with working on a command line terminal or cannot use the Electron GUI for your application, check out the guide!

hashtag
(Mac only) Homebrew and openssl/sqlite installation

In Terminal, install homebrew:

Afterwards, run the two following commands:

brew install openssl

brew install sqlite

hashtag
Install Python 3.9

Python 3.9 is required for dpu operation

Mac:

Windows

1. Go to the official to download python 3.9.

2. Follow to install python on your machine.

3. If you have multiple versions of python3 on your machine, you can set up an to manage the usage between the different versions.

hashtag
DPU Installation

1. Navigate to the

2. Click Releases on the right side of the page

3. Click the Source Code link (zip) to download the latest release.

circle-exclamation

The release name/number will be different from the screenshot below! You will typically want the latest release, which should be at the top of the page.

4. Move the downloaded .zip file (which should be in your Downloads directory for your browser) to the location where you want your experiments to run. Documents or Desktop are good locations. This is also where your data will be saved.

triangle-exclamation

Do not leave the DPU zip file in your Downloads directory. Please move to appropriate location.

5. Unzip the file.

6. Open a terminal. On Mac, you can use the built in Terminal application (press CMD + Space then type terminal to find it). I recommend if you want a terminal with some quality of life enhancements. On Windows, you can use PowerShell.

7. We use to manage our python dependencies. Go to their website to download and install it on your machine.

  • If you are using a Mac and have installed homebrew (described above) you can run the following command: brew install poetry

  • Windows Powershell:

circle-info

If you have installed Python through the Microsoft Store, replace py with python in the command above.

8. Navigate to the DPU directory you just downloaded and unzipped:

  • Use this command: cd <path_to_dpu>

  • Replace the <path_to_dpu> with the location you put your dpu

9. Create a new then activate it with the following command:

Mac:

python3.9 -m venv venv

source venv/bin/activate

Windows PowerShell:

py -3.9 -m venv venv

venv\Scripts\Activate.ps1

10. Use poetry to install all necessary dependencies.

If you can't find poetry on Windows "poetry : The term 'poetry' is not recognized as the name of a cmdlet" and it is installed, use the following command (replace <Your_User_Name> with your user name)

C:\Users\<Your_User_Name>\AppData\Roaming\Python\Scripts\poetry.exe install

circle-exclamation

You must activate the virtual environment when running DPU scripts from the command line. If you close a terminal or re-open it, you'll need to run . venv/bin/activate(Mac) or venv\Scripts\Activate.ps1 (Powershell) again while in the dpu directory.

circle-info

You can activate the dpu environment automatically on a Mac or Linux machine by adding a line in your shell run commands (rc) file typically located in your home directory located at ~/.zhrc (Mac) or ~/.bashrc (Linux):

source <path to dpu>/venv/bin/activate

swapping out <path to dpu> with the actual path on your machine to the dpu.

circle-info

If you have issues with the dpu setup, reach out to us on the

Command Line / Terminal Usage
python websitearrow-up-right
these instructionsarrow-up-right
aliasarrow-up-right
DPU Github pagearrow-up-right
iTerm2arrow-up-right
poetryarrow-up-right
virtual environmentarrow-up-right
forum!arrow-up-right
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install python@3.9
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
poetry install