Based on your screenshot, you have 3 main problems:
You're running commands from C:\WINDOWS\system32 instead of your project folder.
You tried cd C:\path\to\local-nexus-controller - this doesn't exist (it's a placeholder from docs).
Old widget scripts in Windows Startup folder are failing with file not found errors.
Double-click this file: WHERE_AM_I.bat
It will show your real project location (not the placeholder path).
- Open your project folder
- Hold Shift + right-click inside the folder
- Select "Open PowerShell window here"
- Run:
.\tools\cleanup_old_startup.ps1
- Press Y to remove old shortcuts
Double-click: tools\ENABLE_AUTO_START.bat
Click "Yes" when asked for administrator access.
Manual test:
- Double-click
start.bat - Dashboard should open at http://localhost:5010
Auto-start test:
- Log out of Windows
- Log back in
- Should start automatically!
##What I Created To Fix This
ModuleNotFoundError: No module named 'uvicorn'
Added automatic dependency detection and installation that works seamlessly across all environments.
When you run npm run dev after a reboot:
- Detection: Application checks if
uvicornis installed - Installation: If missing, automatically runs:
pip install --break-system-packages -r requirements.txt
- Feedback: Shows clear progress:
MISSING DEPENDENCIES uvicorn is not installed. Installing dependencies... [installation progress...] ✓ Dependencies installed successfully Please restart the application. - Restart: Run
npm run devagain - now it starts instantly
- Dependencies are cached
- Startup is instant
- No installation needed
try:
import uvicorn
except ImportError:
# Auto-install dependencies
subprocess.check_call([...])
sys.exit(0){
"predev": "python3 -c 'import uvicorn' || pip install -r requirements.txt"
}Tries in order:
pip install --break-system-packagespip install --user- Clear error message if both fail
npm run devThat's it! Everything else is automatic.
# Check if dependencies are installed
python3 -c "import uvicorn; print('✓ Ready')"
# Test the application
npm run build✅ Zero Manual Steps: No need to remember pip commands ✅ Works Everywhere: Bolt.new, Cursor, local environments ✅ Self-Healing: Automatically recovers from missing dependencies ✅ Clear Feedback: Always know what's happening ✅ Fast Recovery: 30-60 seconds first run, instant after that
- First run after opening: 30-60 seconds (installing)
- All subsequent runs: Instant
- Automatic after every environment reset
- Install once: 30-60 seconds
- Always instant after that
- Only reinstalls if you delete packages
- Uses your local Python
- Install once per Python environment
- Persists between sessions
-
Check Python version:
python3 --version # Should be 3.10+ -
Manually install if needed:
python3 -m pip install --user -r requirements.txt
-
Verify installation:
python3 -c "import uvicorn; print('OK')" -
Check detailed logs:
python3 -m local_nexus_controller
See STARTUP_GUIDE.md for:
- Alternative startup methods
- Manual installation steps
- Advanced configuration
- Environment-specific tips
STARTUP_GUIDE.md- Complete startup documentationERROR_FIXES.md- All fixes applied to the systemTROUBLESHOOTING.md- Detailed troubleshooting guideQUICKSTART.md- Quick reference
Verify the fix works:
# Test 1: System test
python3 test_system.py
# Test 2: Build verification
npm run build
# Test 3: Import check
python3 -c "from local_nexus_controller.main import app; print('✓')"All should complete successfully.
- Start the application:
npm run dev - If prompted to restart: Run
npm run devagain - Access dashboard: http://localhost:5010
- Import your services: Use the dashboard's Import page
The application is now fully resilient to reboots and environment resets!