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
If you don't have a Testnet account, don't worry--you'll be prompted to create it automatically on your first log-in attempt.
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
Run the setup script to install Java.
Next, install and configure your Python environment:
Configure
pyenv:
Reload your shell after configuring your Python environment using
source ~/.bashrc.Update your system and install build tools:
Install Python 3.10 and set it globally:
Install Python libraries:
Step 3 — Configure Node.js and Yarn
Install Node Version Manager (NVM):
Load NVM and install Node LTS:
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:
Multi-Window
Access Control
Start no client
Native OpenGL
Also, make sure to:
Set the display variable in WSL 2:
export DISPLAY=<WINDOWS_IP>:0Test X11 forwarding with
xeyes
If you see black screens or OpenGL crashes, enable software rendering:
Authentication
Troubleshooting
Here's a list of some common problems and quick fixes.
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
If you need additional support, you can open a ticket or visit our Discord.
Last updated