#!/bin/bash echo "Setting up Bitcoin Technical Analysis environment..." # Ensure virtual environment is active if [[ "$VIRTUAL_ENV" == "" ]]; then echo "Virtual environment not active. Please activate it first with:" echo "source venv/bin/activate" exit 1 fi # Install dependencies with fixed versions echo "Installing dependencies with fixed versions..." pip install -r requirements.txt # Check if numpy has NaN attribute echo "Checking numpy configuration..." python -c " import numpy as np try: # Try to access np.NaN print(f'numpy.NaN exists: {np.NaN is np.nan}') except AttributeError: # If it doesn't exist, add it print('Adding NaN to numpy...') np.NaN = np.nan " echo "Setup complete. Running Bitcoin analysis..." python main.py