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- Dependency Issues - Missing packages, import errors, optional dependencies ⭐
- Installation Problems
- API Connection Issues
- Authentication Failures
- Trading Execution Issues
- Data/Chart Problems
- Performance Issues
- Security and Credential Issues
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.pySee detailed guide: Dependency Issues Troubleshooting
Error: 'python' is not recognized as an internal or external command
Solutions:
-
Add Python to PATH:
# 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
-
Reinstall Python:
- Download from python.org
- Check "Add Python to PATH" during installation
- Select "Install for all users"
ModuleNotFoundError: No module named 'requests'
Solutions:
-
Install Requirements:
# Upgrade pip first python -m pip install --upgrade pip # Install all requirements pip install -r requirements.txt # Verify installation pip list
-
Virtual Environment Issues:
# 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:
-
Run as Administrator:
- Right-click Command Prompt
- Select "Run as administrator"
- Navigate to PowerTraderAI+ folder
- Run installation commands
-
User Permissions:
# Give user full control over PowerTrader folder icacls "C:\PowerTraderAI" /grant "%USERNAME%:F" /t
Error: Failed to connect to KuCoin API
Diagnosis Steps:
-
Check Internet Connection:
ping api.kucoin.com
-
Verify API Credentials:
# 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:
-
Regenerate API Keys:
- Log into KuCoin
- Delete existing API key
- Create new API key with correct permissions
- Update PowerTraderAI+ configuration
-
Check Firewall:
# Allow Python through firewall netsh advfirewall firewall add rule name="PowerTraderAI+" dir=out action=allow program="C:\Python39\python.exe"
-
IP Restrictions:
- Check if your IP changed
- Update IP whitelist in KuCoin settings
- Or disable IP restrictions temporarily
Error: Invalid username or password
Solutions:
-
Verify Credentials:
- Test login in Robinhood app/website
- Ensure 2FA is working correctly
- Check for account lockouts
-
Clear Stored Credentials:
# Clear cached Robinhood credentials from pt_trader import clear_credentials clear_credentials() # Re-authenticate from pt_trader import authenticate authenticate()
-
Device Token Issues:
# Reset device registration from pt_trader import reset_device_token reset_device_token()
Error: Two-factor authentication failed
Solutions:
-
Check Time Sync:
# Sync system clock w32tm /resync # Verify time time
-
Regenerate 2FA:
- Disable 2FA in exchange settings
- Re-enable with new QR code
- Update authenticator app
-
Backup Codes:
- Use backup/recovery codes
- Generate new backup codes
- Store securely
Error: Insufficient permissions for this operation
Solutions:
-
Check API Permissions:
KuCoin Required Permissions: - General - REQUIRED - Trade - NOT needed for market data - Transfer - NOT needed -
Robinhood Permissions:
- Ensure crypto trading is enabled
- Complete account verification
- Check for trading restrictions
Error: Order failed to execute
Diagnosis:
-
Check Account Balance:
from pt_trader import get_account_balance balance = get_account_balance() print(f"Available funds: ${balance}")
-
Verify Market Hours:
- Crypto: 24/7 trading available
- Check exchange maintenance schedules
Solutions:
-
Insufficient Funds:
- Add funds to Robinhood account
- Wait for deposits to settle
- Check for pending orders
-
Order Size Issues:
- Reduce order size below account limits
- Check minimum order requirements
- Verify cryptocurrency availability
-
Market Conditions:
- High volatility may affect execution
- Use limit orders instead of market orders
- Check for trading halts
Error: Portfolio data inconsistent
Solutions:
-
Force Sync:
from pt_trader import sync_portfolio sync_portfolio(force=True)
-
Clear Cache:
from pt_trader import clear_cache clear_cache()
Error: Unable to load chart data
Solutions:
-
Check Data Connection:
# Test KuCoin data feed from pt_thinker import test_data_feed test_data_feed()
-
Clear Chart Cache:
# Clear cached chart data from pt_hub import clear_chart_cache clear_chart_cache()
-
Reduce Chart Frequency:
- Increase update interval in settings
- Lower chart resolution temporarily
Error: Price data appears incorrect
Solutions:
-
Data Validation:
from pt_validation import validate_price_data issues = validate_price_data() print(issues)
-
Multiple Data Sources:
- Compare with KuCoin website
- Check other exchanges for reference
- Report data quality issues
Symptom: GUI freezing or slow response
Solutions:
-
Check System Resources:
# Monitor CPU and memory usage tasklist /fi "imagename eq python.exe" # Check available memory systeminfo | findstr "Available Physical Memory"
-
Optimize Settings:
{ "performance": { "chart_update_interval": 5, "data_cache_size": 1000, "max_concurrent_requests": 5, "enable_data_compression": true } } -
Background Processes:
- Close unnecessary applications
- Disable real-time antivirus scanning for PowerTrader folder
- Use Task Manager to identify resource hogs
Symptom: Python process using excessive memory
Solutions:
-
Memory Optimization:
# Enable memory optimization from pt_performance import optimize_memory optimize_memory()
-
Restart Application:
- Close PowerTraderAI+
- Clear system cache
- Restart application
Error: Unable to decrypt credentials
Solutions:
-
Restore from Backup:
from pt_security import restore_credentials restore_credentials(backup_file='credentials_backup.enc')
-
Re-enter Credentials:
# Clear corrupted credentials from pt_security import clear_all_credentials clear_all_credentials() # Re-configure through GUI
Error: Master encryption key not found
Solutions:
-
Use Backup Key:
- Locate backup encryption key
- Restore from secure storage
-
Reset All Credentials (Last Resort):
# 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- Full Documentation: PowerTraderAI+ Docs
- API Reference: API Configuration
- Security Guide: Security Best Practices
- GitHub Issues: Report bugs and issues
- Discussions: Community Q&A and tips
- Wiki: User-contributed guides and solutions
- Email Support: Technical assistance for complex issues
- Remote Assistance: Screen sharing for difficult problems
- Custom Configuration: Professional setup services
-
System Information:
# System details systeminfo | findstr "OS\|Version\|Memory" # Python version python --version # PowerTraderAI+ version python -c "import pt_hub; print(pt_hub.__version__)"
-
Error Messages:
- Copy exact error messages
- Include timestamps
- Note what you were doing when error occurred
-
Log Files:
- Recent entries from relevant log files
- Any stack traces or detailed error information
-
Configuration:
- Anonymized configuration files (remove credentials)
- Settings that may be relevant to the issue
**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]- Verify application starts correctly
- Check data feeds are updating
- Review recent trades and orders
- Monitor account balances
- Review error logs
- Check system performance
- Verify backup procedures
- Update any expired API keys
- Performance optimization
- Security audit
- Configuration review
- Software updates
# 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.