This guide helps resolve common dependency-related issues in PowerTrader.
If you’re experiencing dependency issues, run the automated installer:
# Navigate to PowerTrader directory
cd PowerTraderAI
# Run the dependency installer
python app/install_optional_deps.py
Symptoms:
websocket or ccxtSolution:
# Install real-time market data dependencies
python app/install_optional_deps.py
# Choose option 2 for "Real-time Market Data packages only"
Manual Installation:
pip install websocket-client ccxt
Symptoms:
ModuleNotFoundError: No module named 'websocket'ModuleNotFoundError: No module named 'ccxt'ModuleNotFoundError: No module named 'scipy'Solution:
# Check what's missing
python test_dependencies.py
# Install all missing packages
python app/install_optional_deps.py
Symptoms:
Solution:
pip install seaborn
Symptoms:
Solution:
pip install openai
These are installed with pip install -r requirements.txt:
tkinter - GUI frameworkmatplotlib - Basic chartingpandas - Data analysisnumpy - Numerical computingrequests - HTTP clientcryptography - SecurityPowerTrader is designed to work even with missing optional dependencies:
python test_dependencies.py
# Test specific modules
python -c "from app.real_time_market_data import MarketDataAggregator; print('Market data OK')"
python -c "import scipy; print('Advanced analytics OK')"
python -c "import seaborn; print('Advanced charts OK')"
python -c "import openai; print('AI research OK')"
After installing dependencies, verify everything works:
# 1. Test dependencies
python test_dependencies.py
# 2. Launch PowerTrader
python app/pt_hub.py
# 3. Check all tabs load correctly
# - All 9 tabs should be visible
# - Market data tab should show real functionality (not error messages)
# - No import errors in console
If dependencies seem installed but aren’t recognized:
# Check which Python you're using
python --version
which python # On Windows: where python
# Verify package installation
pip list | grep websocket
pip list | grep ccxt
On some systems, you may need elevated permissions:
# Windows (run as Administrator)
pip install --user websocket-client ccxt scipy seaborn openai
# Or use the installer with elevated permissions
python app/install_optional_deps.py
If installation fails due to network issues:
# Try with different index
pip install --index-url https://pypi.org/simple/ websocket-client
# Use proxy if needed
pip install --proxy http://user:pass@proxy.server:port websocket-client
If you encounter version conflicts:
# Check for conflicts
pip check
# Upgrade conflicting packages
pip install --upgrade websocket-client ccxt scipy seaborn openai
If you continue experiencing issues:
python test_dependencies.py and share the outputpython --version)pip listTo avoid dependency issues in the future:
pip install --upgrade -r requirements.txtpython test_dependencies.py after any changesRemember: PowerTrader is designed to work gracefully even with missing optional dependencies, so core functionality should always be available.