From 48acaebc5460235ddadf4dc5116be10de8005e08 Mon Sep 17 00:00:00 2001 From: Niklas Halle Date: Sat, 29 Mar 2025 13:07:15 +0100 Subject: [PATCH] fix venv setup --- setup-venv.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) mode change 100644 => 100755 setup-venv.sh diff --git a/setup-venv.sh b/setup-venv.sh old mode 100644 new mode 100755 index 9972f7c..6de5df2 --- a/setup-venv.sh +++ b/setup-venv.sh @@ -4,9 +4,14 @@ python3.10 -m venv venv310 source venv310/bin/activate +# Make sure colcon doesn't try to index the venv310 directory +touch venv310/COLCON_IGNORE + # Install Python packages pip install --upgrade pip pip install \ + cython \ + pathlib2 \ numpy \ matplotlib \ ipympl \ @@ -14,8 +19,13 @@ pip install \ jupyterlab-widgets \ ipykernel +pip3 install --upgrade pytest colcon-common-extensions setuptools + # Register venv310 as Jupyter kernel python -m ipykernel install --user --name=venv310 --display-name="Python 3.10 (venv310)" +# Make sure the venv310 is activated when starting a new shell +echo "source /workspaces/ROS-Dynamic-Executor-Experiments/venv310/bin/activate" >> /root/.bashrc + echo "Setup complete! Activate with: source venv310/bin/activate" echo "Then start JupyterLab with: jupyter lab --ip=0.0.0.0 --port=8888 --allow-root" \ No newline at end of file