Common issues and solutions for PowerTraderAI+ setup, configuration, and operation.
If you need to immediately halt all trading:
IMMEDIATE ACTIONS:
1. Click "Emergency Stop" button (red button in main interface)
2. OR press Ctrl + Alt + S
3. OR close PowerTraderAI+ application completely
4. Log into Robinhood app/website to verify all orders are cancelled
If PowerTraderAI+ crashes or becomes unresponsive:
# Force close if needed
taskkill /f /im python.exe
# Restart application
cd C:\Users\Administrator\PowerTrader\PowerTrader_AI
python pt_hub.py
# Check logs for error details
type logs\powertrader.log | findstr ERROR
If you’re experiencing import errors, missing features, or module not found errors:
# Quick fix for all dependency issues
python app/install_optional_deps.py
# Test your installation
python test_dependencies.py
See detailed guide: Dependency Issues Troubleshooting
Error: 'python' is not recognized as an internal or external command
Solutions:
# Check if Python is installed
where python
# If not found, add to PATH manually
setx PATH "%PATH%;C:\Python39;C:\Python39\Scripts"
# Restart command prompt and test
python --version
ModuleNotFoundError: No module named 'requests'
Solutions:
# Upgrade pip first
python -m pip install --upgrade pip
# Install all requirements
pip install -r requirements.txt
# Verify installation
pip list
# Create new virtual environment
python -m venv powertrader_env
# Activate environment
powertrader_env\Scripts\activate
# Install requirements in environment
pip install -r requirements.txt
PermissionError: [Errno 13] Permission denied
Solutions:
# Give user full control over PowerTrader folder
icacls "C:\PowerTraderAI" /grant "%USERNAME%:F" /t
Error: Failed to connect to KuCoin API
Diagnosis Steps:
ping api.kucoin.com
# Test credentials manually
import requests
headers = {
'KC-API-KEY': 'your_api_key',
'KC-API-PASSPHRASE': 'your_passphrase'
}
response = requests.get('https://api.kucoin.com/api/v1/timestamp', headers=headers)
print(response.status_code, response.text)
Solutions:
# Allow Python through firewall
netsh advfirewall firewall add rule name="PowerTraderAI+" dir=out action=allow program="C:\Python39\python.exe"
Error: Invalid username or password
Solutions:
# Clear cached Robinhood credentials
from pt_trader import clear_credentials
clear_credentials()
# Re-authenticate
from pt_trader import authenticate
authenticate()
# Reset device registration
from pt_trader import reset_device_token
reset_device_token()
Error: Two-factor authentication failed
Solutions:
# Sync system clock
w32tm /resync
# Verify time
time
Error: Insufficient permissions for this operation
Solutions:
Error: Order failed to execute
Diagnosis:
from pt_trader import get_account_balance
balance = get_account_balance()
print(f"Available funds: ${balance}")
Solutions:
Error: Portfolio data inconsistent
Solutions:
from pt_trader import sync_portfolio
sync_portfolio(force=True)
from pt_trader import clear_cache
clear_cache()
Error: Unable to load chart data
Solutions:
# Test KuCoin data feed
from pt_thinker import test_data_feed
test_data_feed()
# Clear cached chart data
from pt_hub import clear_chart_cache
clear_chart_cache()
Error: Price data appears incorrect
Solutions:
from pt_validation import validate_price_data
issues = validate_price_data()
print(issues)
Symptom: GUI freezing or slow response
Solutions:
# Monitor CPU and memory usage
tasklist /fi "imagename eq python.exe"
# Check available memory
systeminfo | findstr "Available Physical Memory"
{
"performance": {
"chart_update_interval": 5,
"data_cache_size": 1000,
"max_concurrent_requests": 5,
"enable_data_compression": true
}
}
Symptom: Python process using excessive memory
Solutions:
# Enable memory optimization
from pt_performance import optimize_memory
optimize_memory()
Error: Unable to decrypt credentials
Solutions:
from pt_security import restore_credentials
restore_credentials(backup_file='credentials_backup.enc')
# Clear corrupted credentials
from pt_security import clear_all_credentials
clear_all_credentials()
# Re-configure through GUI
Error: Master encryption key not found
Solutions:
# WARNING: This clears ALL saved credentials
from pt_security import factory_reset_credentials
factory_reset_credentials()
# Run comprehensive system diagnostics
from pt_diagnostics import SystemDiagnostics
diag = SystemDiagnostics()
report = diag.run_full_diagnostic()
print(report)
# Test all external connections
from pt_diagnostics import ConnectionTest
test = ConnectionTest()
results = test.test_all_connections()
for service, status in results.items():
print(f"{service}: {status}")
# Analyze recent logs for issues
from pt_diagnostics import LogAnalyzer
analyzer = LogAnalyzer()
issues = analyzer.find_recent_issues(hours=24)
for issue in issues:
print(f"Issue: {issue['type']} at {issue['timestamp']}")
PowerTraderAI/logs/
├── powertrader.log # Main application log
├── trading.log # Trading-specific events
├── api.log # API communication log
├── errors.log # Error messages only
└── security.log # Security events
# Find recent errors
findstr "ERROR" logs\powertrader.log | more
# Check API issues
findstr "API\|Connection" logs\api.log | more
# Review trading activity
findstr "Order\|Trade" logs\trading.log | more
# System details
systeminfo | findstr "OS\|Version\|Memory"
# Python version
python --version
# PowerTraderAI+ version
python -c "import pt_hub; print(pt_hub.__version__)"
**PowerTraderAI+ Version**: [version]
**Operating System**: [OS and version]
**Python Version**: [version]
**Problem Description**:
[Detailed description of the issue]
**Steps to Reproduce**:
1. [Step 1]
2. [Step 2]
3. [Error occurs]
**Expected Behavior**:
[What should happen]
**Actual Behavior**:
[What actually happens]
**Error Messages**:
[Exact error messages]
**Log Entries**:
[Relevant log entries]
**Additional Context**:
[Any other relevant information]
# Set up automated health monitoring
from pt_monitoring import HealthMonitor
monitor = HealthMonitor()
monitor.enable_automated_checks()
monitor.set_alert_thresholds({
'api_response_time': 5.0, # seconds
'error_rate': 0.05, # 5% max error rate
'memory_usage': 0.8 # 80% max memory
})
{
"alerts": {
"email_notifications": true,
"desktop_notifications": true,
"log_level": "WARNING",
"alert_types": [
"api_failures",
"authentication_errors",
"trading_failures",
"system_errors"
]
}
}
Remember: Most issues can be resolved with basic troubleshooting. When in doubt, restart the application and check the logs for detailed error information.