Windows (WSL 2)

Get up and running with BlockAssist on your Windows device with a WSL 2 environment.

Overview

This guide explains how to install and run BlockAssist v0.1.0 on Windows 10 or 11 using Windows Subsystem for Linux (WSL). It walks you through environment setup, dependency installation, authentication, and configuration for running the Minecraft interface through VcXsrv.

Prerequisites

  • Windows 10/11 with WSL 2 enabled

  • Ubuntu 22.04 LTS (recommended) or another supported Linux distribution inside WSL

  • At least 12 GB RAM (32 GB recommended)

  • Git installed on both Windows and WSL

  • A Hugging Face account with a Write-access API token

  • Gensyn Testnet account

Dependencies

  • Core: Python 3.10 (via pyenv), Java 1.8.0_152 (OpenJDK 8), Git

  • Display Server: VcXsrv or another X Server for Windows

  • GPU Support (Optional): CUDA and cuDNN for Nvidia GPUs

Installation Steps

Step 1 — Clone the Repository

Open your WSL terminal and clone the BlockAssist repository:

Then, navigate to the directory.

Step 2 — Install Core Dependencies

  1. Run the setup script to install Java.

  1. Next, install and configure your Python environment:

  1. Configure pyenv:

  1. Reload your shell after configuring your Python environment using source ~/.bashrc.

  2. Update your system and install build tools:

  1. Install Python 3.10 and set it globally:

  1. Install Python libraries:

Step 3 — Configure Node.js and Yarn

  1. Install Node Version Manager (NVM):

  1. Load NVM and install Node LTS:

  1. Enable Corepack and install Yarn:

Step 4 — Optional GPU Setup (cuDNN)

If you have an Nvidia GPU, install cuDNN for acceleration.

Use the appropriate installer for Ubuntu 22.04, then run:

Step 5 — Verify Installation

You're now ready to create and activate a virtual environment:

Confirm Malmo is detected:


Platform-Specific Notes

When launching VcXsrv on Windows, make sure you've enabled/disabled the following:

Enable
Disable

Multi-Window

Access Control

Start no client

Native OpenGL

Also, make sure to:

  • Set the display variable in WSL 2: export DISPLAY=<WINDOWS_IP>:0

  • Test X11 forwarding with xeyes

If you see black screens or OpenGL crashes, enable software rendering:

Authentication

1

Enter cd modal-login and run yarn install followed by yarn dev.

2

Go to LocalHost

Open a browser and go to http://localhost:3000, log in to your Gensyn Testnet account, and then stop the server with Ctrl+C.

3

Activate your Environment

Return to the main directory and run source blockassist-venv/bin/activate.

4

Start BlockAssist

To start BlockAssist, enter python3 run.py.

Troubleshooting

Here's a list of some common problems and quick fixes.

Issue
Solution

Minecraft window not opening

Check DISPLAY variable and VcXsrv configuration

Black screen or OpenGL crash

Enable software rendering

“pyenv: command not found”

Reinitialize pyenv and reload shell

“malmo.log not found”

Reinstall using pip install -e .

Startup freezes at 100%

Wait for about one minute, then press ENTER

“Minecraft unexpectedly crashed on launch”

Edit scripts/run_malmo.sh to include --timeout 300

Last updated