Skip to content

Commit ad4cd14

Browse files
committed
Update activate_workspace.sh
1 parent 81136e9 commit ad4cd14

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

scripts/activate_workspace.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,22 @@ ros-source
9393
# Return to original directory
9494
popd > /dev/null
9595

96+
# Quick verification that critical packages are available
97+
echo " [Verification] Checking critical dependencies..."
98+
if ! python -c "import pyaudio" 2>/dev/null; then
99+
echo ""
100+
echo "⚠️ Warning: PyAudio not available in virtual environment"
101+
echo " This is required for TTS functionality."
102+
echo " Please run the setup script to install dependencies:"
103+
echo " ./scripts/setup_workspace.sh"
104+
echo ""
105+
return 1
106+
fi
107+
96108
echo ""
97109
echo "✓ Workspace activation complete!"
98110
echo " Virtual environment: $VENV_NAME"
99111
echo " Python: $(which python)"
112+
echo " PyAudio: Available ✓"
100113
echo " ROS2 workspace ready for development"
101114
echo ""

0 commit comments

Comments
 (0)