Troubleshooting Guide#
This guide helps you solve common issues with AutoClean. Most problems can be resolved quickly by following these steps.
🔧 Installation Issues#
“autoclean command not found”
# Check if AutoClean is installed
pip list | grep autocleaneeg
# If not found, install it
pip install autocleaneeg
# Some systems need pip3
pip3 install autocleaneeg
# Verify installation
autoclean version
“Permission denied” errors
# On Windows: Run as administrator
# Right-click Command Prompt → "Run as administrator"
# On Mac/Linux: Use sudo (be careful!)
sudo pip install autocleaneeg
Python/pip not found
Install Python from python.org
Make sure Python is added to your system PATH
Restart your command prompt after installing Python
⚙️ Setup and Workspace Issues#
Setup wizard not starting
# Force reconfiguration
autoclean setup
# Check current configuration
autoclean config show
Workspace deleted or moved
AutoClean detects workspace deletion automatically. When you run any command, it will offer to recreate your workspace:
⚠ Previous workspace no longer exists
🔧 Workspace Setup
Workspace location: /Users/yourname/Documents/Autoclean-EEG
• Custom tasks • Configuration • Results • Easy backup
Can’t find workspace location
# Show current workspace location
autoclean config show
# Reset to default location
autoclean config reset --confirm
📁 File and Data Issues#
“File not found” errors
# Check you're in the right directory
pwd # Mac/Linux
cd # Windows (shows current directory)
# List files to see exact names
ls # Mac/Linux
dir # Windows
# Use full file path if needed
autoclean process RestingEyesOpen "/full/path/to/your/file.raw"
Unsupported file format
AutoClean supports: .raw, .set, .eeg, .bdf, .fif, .cnt, .vhdr
If your file isn’t supported: - Convert to a supported format using your acquisition software - Export as .set from EEGLAB - Export as .fif from MNE-Python
File corruption issues
# Check file integrity
# Try opening the file in your original software first
# If file opens elsewhere but fails in AutoClean:
# Check the logs for detailed error messages
autoclean config show
# Look in output/*/logs/ folder
🎯 Task and Processing Issues#
“Task not found” errors
# List available tasks
autoclean list-tasks
# Include custom tasks
autoclean list-tasks --include-custom
# Check exact spelling (case-sensitive!)
# Use: RestingEyesOpen
# Not: restingeyesopen or Resting_Eyes_Open
Custom task not discovered
# Check task file is in correct location
autoclean config show
ls ~/Documents/Autoclean-EEG/tasks/
# Verify Python syntax
python -m py_compile your_task_file.py
# Check class inherits from Task
grep "class.*Task" ~/Documents/Autoclean-EEG/tasks/your_task.py
Processing fails or hangs
# Check available memory (EEG files can be large)
# Close other programs if needed
# Try with a smaller file first
autoclean process RestingEyesOpen small_test_file.raw
# Check logs for error details
# Look in workspace/output/*/logs/
Poor processing results
Review quality control reports: Check metadata/run_report.pdf
Try different task: Some tasks work better for specific data types
Check data quality: Ensure original data isn’t too noisy
Verify experimental paradigm: Make sure you’re using the right task type
⚡ Performance Issues#
Processing takes too long
Large files: Normal for files >1GB - can take 30+ minutes
Insufficient RAM: Close other programs, ensure 8GB+ available
Slow storage: Move data to faster drive (SSD vs HDD)
Out of memory errors
# Check available memory
# Windows: Task Manager → Performance → Memory
# Mac: Activity Monitor → Memory
# Linux: free -h
# Solutions:
# 1. Close other programs
# 2. Process smaller segments
# 3. Use a machine with more RAM
Disk space issues
AutoClean creates several copies of your data during processing:
# Check available space
df -h # Mac/Linux
dir # Windows (shows drive space)
# Clean up old results if needed
# Delete old output folders you don't need
🔍 Output and Results Issues#
No output files generated
# Check processing completed successfully
# Look for "Processing completed successfully!" message
# Check output directory
autoclean config show
ls ~/Documents/Autoclean-EEG/output/
# Check logs for errors
# Look in latest output/*/logs/ folder
Can’t open result files
PDF reports: Need PDF viewer (Adobe, Chrome, etc.)
.set files: Open with EEGLAB in MATLAB
.fif files: Use MNE-Python
Missing software: Install required analysis software
Results look wrong
Check data quality: Review run_report.pdf first
Verify task choice: Ensure task matches your experiment type
Check parameters: May need custom task with different settings
Compare with original: Is original data good quality?
💻 Command Line Issues#
Commands not working
# Make sure you're typing commands exactly
# AutoClean is case-sensitive
# Copy/paste commands to avoid typos
# Check you're in the right directory
pwd # Shows current location
Permission errors
# Don't run as administrator unless necessary
# AutoClean should work with normal user permissions
# If needed on Mac/Linux:
sudo autoclean setup
Terminal/Command prompt closes
Don’t close the window while processing is running
If it closes unexpectedly, restart and run autoclean config show to find partial results
🌐 Network and Environment Issues#
Conda environment issues
# If using conda/miniconda
conda activate your_environment
pip install autocleaneeg
# Or install in conda directly
conda install -c conda-forge autocleaneeg
Corporate firewall blocking installation
Contact IT department for assistance
May need to use proxy settings or internal package repository
Alternative: download offline installer from IT
🆘 Getting More Help#
Still having problems?
Check error messages carefully: Often they tell you exactly what’s wrong
Look at log files: Detailed information in output/*/logs/
Try with test data: Confirm AutoClean works with known-good files
Update AutoClean: New versions fix common issues
# Update to latest version
pip install --upgrade autocleaneeg
Report bugs or ask for help:
GitHub Issues: Report specific bugs with error messages
Community Forums: Ask questions and share solutions
Documentation: Check other tutorial sections
What to include when asking for help:
Error message: Copy/paste exact error text
Command used: What exactly did you type?
File type: What format is your EEG data?
System info: Windows/Mac/Linux, Python version
AutoClean version: Output of autoclean version
🧹 Clean Installation#
Start fresh if nothing works:
# Uninstall AutoClean
pip uninstall autocleaneeg
# Clear pip cache
pip cache purge
# Reinstall
pip install autocleaneeg
# Reset configuration
autoclean config reset --confirm
Complete reset:
Uninstall AutoClean (above)
Delete workspace folder: Documents/Autoclean-EEG
Delete config folder: - Windows: %APPDATA%autocleanautoclean - Mac: ~/Library/Application Support/autoclean/autoclean - Linux: ~/.config/autoclean/autoclean
Reinstall and reconfigure
💡 Prevention Tips#
Avoid common problems:
Keep backups: Copy important results before processing new data
Test first: Try new tasks on small test files
Document settings: Keep notes on what tasks work for your data
Regular updates: Update AutoClean occasionally for bug fixes
Stable environment: Don’t change Python/conda environments mid-project
Best practices:
Use descriptive filenames for your EEG data
Keep data organized in clear folder structures
Process one file before doing batch operations
Review quality control reports after each processing run
Remember: Most issues are simple fixes! Check the error message, verify your file paths, and make sure you’re using the right task for your data type.