copy Copy chevron-down
BlockAssist chevron-right Getting Started Windows (WSL 2) Get up and running with BlockAssist on your Windows device with a WSL 2 environment.
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 .
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
circle-check
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.
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:
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:
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:
When launching VcXsrv on Windows, make sure you've enabled/disabled the following:
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:
Navigate to the Directory
Enter cd modal-login and run yarn install followed by yarn dev.
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.
Activate your Environment
Return to the main directory and run source blockassist-venv/bin/activate.
Start BlockAssist
To start BlockAssist, enter python3 run.py.
circle-exclamation
When prompted, enter your HuggingFace token.
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
Reinstall using pip install -e .
Wait for about one minute, then press ENTER
“Minecraft unexpectedly crashed on launch”
Edit scripts/run_malmo.sh to include --timeout 300
Last updated 4 months ago