Installation
Requirements
Flote requires:
- Python 3.10 or higher
- pip (Python package installer)
That's it! No heavy IDEs, no license servers, no gigabytes of installation files.
Installation via pip
The easiest way to install Flote is using pip:
This will install:
- Flote language parser and elaborator
- Python simulation backend
- Rust simulation backend (pre-compiled binaries)
- All necessary dependencies
Verify Installation
Check that Flote is installed correctly:
You should see the version number (e.g., 0.5.0).
IDE Setup: Visual Studio Code Recommended
-
Install VS Code
-
Install recommended extensions:
- Python - for testbench editing
- WaveTrace - for VCD waveform visualization
Verification
Let's verify everything works by creating a simple test:
Create a Test Circuit
Create a file named test.ft:
Create a Test Bench
Create a file named test.py:
import flote as ft
# Elaborate the circuit
circuit = ft.elaborate_file('test.ft')
# Test it
circuit.update({'a': '0'})
circuit.wait(10)
print(f"Input: 0, Output: {circuit.component.busses['b'].value}")
circuit.update({'a': '1'})
circuit.wait(10)
print(f"Input: 1, Output: {circuit.component.busses['b'].value}")
Run the Test
Expected output:
If you see this output, congratulations! Flote is installed and working correctly.
Troubleshooting
Python Version Issues
Problem: pip install flote fails with Python version error
Solution: Upgrade Python to 3.10 or higher:
# On Ubuntu/Debian
sudo apt install python3.10
# On macOS with Homebrew
brew install python@3.10
# On Windows
# Download from python.org
Permission Errors
Problem: Permission denied when installing
Solution: Use user install:
Import Errors
Problem: ModuleNotFoundError: No module named 'flote'
Solution: Ensure pip installed to the correct Python:
Rust Backend Not Available
Problem: Warning about Rust backend not found
Solution: This is usually not critical - Python backend works fine. If you need Rust backend:
- Check your platform is supported (Windows, Linux x86_64, macOS)
- Try reinstalling:
pip install --force-reinstall flote - Build from source (see above)
Platform-Specific Notes
Windows
- Use PowerShell or CMD
- Paths use backslashes
\or forward slashes/ - Python is usually
pythonnotpython3
Linux
- Use bash or your preferred shell
- May need
python3instead ofpython - May need
pip3instead ofpip
macOS
- Similar to Linux
- Use Terminal app
- May need to add Python to PATH
Next Steps
Now that Flote is installed, let's build something!
Learn to create your first Flote circuit with a complete walkthrough.
Getting Help
If you encounter issues:
- Check GitHub Issues
- Search existing issues for solutions
- Create a new issue with:
- Your operating system
- Python version (
python --version) - Complete error message
- Steps to reproduce