Troubleshooting¶
Common issues and how to fix them.
Installation Issues¶
pip install arqonhpo fails¶
"No matching distribution found"
Fix: Check Python version and platform:
python --version # Need 3.10+
python -c "import platform; print(platform.machine())" # Need x86_64 or arm64
Import fails with symbol error¶
"undefined symbol" or "symbol not found"
This happens when the wheel was built with a different Python version.
Fix:
Or use a virtual environment:
Runtime Issues¶
"Invalid config" error¶
Fix: Ensure all required fields are present:
No candidates returned from ask()¶
Problem: solver.ask() returns None immediately.
Causes:
- Budget already exhausted
- Config has 0 budget
- State file corrupted
Fix: Check budget and history:
Performance is slow¶
Problem: Each ask() takes >100ms.
Causes:
- Python object conversion overhead
- Large parameter space
- TPE with many history points
Fix:
- Use batch mode:
solver.ask()returns multiple candidates - Reduce history size in config
- Use Nelder-Mead for smooth functions
CLI Issues¶
"command not found: arqonhpo"¶
Fix: Install the CLI binary:
Or use the Python CLI:
TUI shows blank screen¶
Problem: TUI starts but shows no data.
Causes:
- State file doesn't exist or is empty
- State file has incompatible format
Fix:
# Check state file exists
ls -la state.json
# Run an optimization first
arqonhpo ask --config config.json --state state.json
Dashboard API returns 404¶
Problem: curl http://localhost:3030/api/state returns 404.
Causes:
- Wrong URL (no /api prefix)
- Dashboard not running
Fix:
# Correct endpoints
curl http://localhost:3030/api/state
curl http://localhost:3030/api/summary
# Verify dashboard is running
arqonhpo dashboard --state state.json --addr 127.0.0.1:3030
Build Issues¶
Protobuf compiler not found¶
Fix:
# Ubuntu/Debian
sudo apt install protobuf-compiler
# macOS
brew install protobuf
# Verify
protoc --version
Rust version too old¶
Fix:
Still Stuck?¶
- Check GitHub Issues
- Open a Discussion
- Review the Constitution for design rationale