You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current setup.sh script uses the default activation path .venv/bin/activate for virtual environments, which works on Linux and macOS systems. However, on Windows, the correct path for activating the virtual environment is .venv/Scripts/activate. This discrepancy causes the script to fail when trying to activate the virtual environment on Windows machines.
Steps to Reproduce:
Clone the repository and navigate to the project directory on a Windows machine.
Run ./setup.sh.
The script will attempt to activate the virtual environment using .venv/bin/activate, resulting in an error:
./setup.sh: line 18: .venv/bin/activate: No such file or directory
Expected Behavior:
The virtual environment should be activated using the correct path on both Windows (.venv/Scripts/activate) and Linux/macOS (.venv/bin/activate).
Proposed Solution:
Add an OS check within the setup.sh script to determine the appropriate activation path based on the user's operating system:
if [[ "$OSTYPE"=="msys"||"$OSTYPE"=="win32" ]];thensource .venv/Scripts/activate # Windows activation pathelsesource .venv/bin/activate # Linux/macOS activation pathfi
The text was updated successfully, but these errors were encountered:
Description:
The current
setup.sh
script uses the default activation path.venv/bin/activate
for virtual environments, which works on Linux and macOS systems. However, on Windows, the correct path for activating the virtual environment is.venv/Scripts/activate
. This discrepancy causes the script to fail when trying to activate the virtual environment on Windows machines.Steps to Reproduce:
./setup.sh
..venv/bin/activate
, resulting in an error:Expected Behavior:
The virtual environment should be activated using the correct path on both Windows (
.venv/Scripts/activate
) and Linux/macOS (.venv/bin/activate
).Proposed Solution:
Add an OS check within the
setup.sh
script to determine the appropriate activation path based on the user's operating system:The text was updated successfully, but these errors were encountered: