Skip to content

DTSW-7248-Investigate-and-resolve-dts-command-error-on-Ubuntu-24.04.3#117

Merged
Tuxliri merged 2 commits intomainfrom
DTSW-7248-Investigate-and-resolve-dts-command-error-on-Ubuntu-24.04.3
Oct 13, 2025
Merged

DTSW-7248-Investigate-and-resolve-dts-command-error-on-Ubuntu-24.04.3#117
Tuxliri merged 2 commits intomainfrom
DTSW-7248-Investigate-and-resolve-dts-command-error-on-Ubuntu-24.04.3

Conversation

@liammcalpineduckietown
Copy link
Copy Markdown
Contributor

@liammcalpineduckietown liammcalpineduckietown commented Sep 30, 2025

This pull request refactors how pip is installed in virtual environments and improves the reliability of dependency installation. The main changes include moving the pip installation logic into a reusable function, updating the environment setup code to use this new function, and enhancing the pip_install function to automatically install pip if it's missing.

Refactoring and reliability improvements:

  • Added a new install_pip function in utils.py to encapsulate the logic for installing pip using get-pip.py, including error handling for missing files or installation failures.
  • Updated the environment setup in environments.py to use the new install_pip function instead of duplicating the installation logic.
  • Improved the pip_install function to retry installation up to two times, automatically attempting to install pip if the error "No module named pip" is encountered. [1] [2]
  • Updated imports in environments.py to bring in the new install_pip function.

@liammcalpineduckietown liammcalpineduckietown changed the title fix: streamline pip installation process in virtual environments DTSW-7248-Investigate-and-resolve-dts-command-error-on-Ubuntu-24.04.3 Sep 30, 2025
@Tuxliri Tuxliri merged commit 0727db0 into main Oct 13, 2025
2 of 3 checks passed
@Tuxliri Tuxliri deleted the DTSW-7248-Investigate-and-resolve-dts-command-error-on-Ubuntu-24.04.3 branch October 13, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants