Skip to content

Commit 687f987

Browse files
rootroot
root
authored and
root
committed
make agentops installation optional again because it can cause problems in some cases
1 parent 4e5ee63 commit 687f987

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

Diff for: install_conda.bat

+6
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ call conda create -n crewai_env python=3.11 -y
3737
call conda run -n crewai_env conda install -y packaging
3838
call conda run -n crewai_env pip install -r requirements.txt
3939

40+
:: Install agentops if requested
41+
set /p install_agentops="Do you want to install agentops? (y/n): "
42+
if /i "%install_agentops%"=="y" (
43+
echo Installing agentops...
44+
call conda run -n crewai_env pip install agentops
45+
)
4046
:: Check if .env file exists, if not copy .env_example to .env
4147
if not exist "%SCRIPT_DIR%.env" (
4248
echo .env file does not exist. Copying .env_example to .env...

Diff for: install_conda.sh

+7-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,13 @@ fi
6464
conda run -n crewai conda install -y packaging || { echo "Failed to install Conda packages"; exit 1; }
6565
conda run -n crewai pip install -r requirements.txt $USE_CACHE || { echo "Failed to install requirements"; exit 1; }
6666

67-
# Create the data folder if it doesn't exist
68-
DATA_DIR="$SCRIPT_DIR/data"
69-
mkdir -p "$DATA_DIR"
67+
# Agentops
68+
echo "Do you want to install agentops? (y/n)"
69+
read agentops
70+
if [ "$agentops" == "y" ]; then
71+
echo "Installing agentops..."
72+
conda run -n crewai pip install agentops || { echo "Failed to install agentops"; }
73+
fi
7074

7175
# Check if .env file exists, if not copy .env_example to .env
7276
if [ ! -f "$SCRIPT_DIR/.env" ]; then

Diff for: install_venv.bat

+9-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,15 @@ if %errorlevel% neq 0 (
1919
echo Failed to install requirements
2020
exit /b %errorlevel%
2121
)
22-
22+
set /p install_agentops="Do you want to install agentops? (y/n): "
23+
if /i "%install_agentops%"=="y" (
24+
echo Installing agentops...
25+
pip install agentops
26+
if %errorlevel% neq 0 (
27+
echo Failed to install agentops
28+
exit /b %errorlevel%
29+
)
30+
)
2331
:: Check if .env file exists, if not copy .env_example to .env
2432
if not exist "%SCRIPT_DIR%.env" (
2533
echo .env file does not exist. Copying .env_example to .env...

Diff for: install_venv.sh

+7
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ fi
4242
# Install requirements
4343
pip install -r requirements.txt $USE_CACHE || { echo "Failed to install requirements"; exit 1; }
4444

45+
#agentops
46+
echo "Do you want to install agentops? (y/n)"
47+
read agentops
48+
if [ "$agentops" == "y" ]; then
49+
echo "Installing agentops..."
50+
pip install agentops || { echo "Failed to install agentops"; }
51+
fi
4552
# Check if .env file exists, if not copy .env_example to .env
4653
if [ ! -f "$SCRIPT_DIR/.env" ]; then
4754
echo ".env file does not exist. Copying .env_example to .env..."

0 commit comments

Comments
 (0)