Installation¶
COMPAS Slicer can be installed on Windows, macOS, and Linux.
Requirements¶
- Python 3.9 or higher
- COMPAS >= 2.15
- compas_cgal >= 0.9
Quick Install¶
Development Install¶
To install from source for development:
# Clone the repository
git clone https://github.com/compas-dev/compas_slicer.git
cd compas_slicer
# Create a virtual environment (recommended)
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install in editable mode with dev dependencies
pip install -e ".[dev]"
Verify Installation¶
Test that the installation works:
Grasshopper Integration¶
To use COMPAS Slicer in Rhino/Grasshopper:
Tip
Replace 8.0 with your Rhino version (e.g., 7.0 for Rhino 7).
Troubleshooting¶
Grasshopper components not working¶
If the Grasshopper components don't load after installation, manually add the path in Rhino:
- In Rhino, type
EditPythonScript - Go to Tools > Options > Add to search path
- Add:
<path>/compas_slicer/src/grasshopper_visualization
Microsoft Visual C++ Build Tools (Windows)¶
If you see:
Install the Microsoft C++ Build Tools.
CGAL Issues¶
COMPAS Slicer requires compas_cgal. If you have issues:
Bug Reports¶
When reporting a bug, please include:
- Operating system and version
- Python version
- COMPAS Slicer version (
python -c "import compas_slicer; print(compas_slicer.__version__)") - Complete error traceback
- Steps to reproduce