ros2_documentation icon indicating copy to clipboard operation
ros2_documentation copied to clipboard

Choco does not install python debug binaries

Open nbbrooks opened this issue 6 years ago • 5 comments

OS: Windows 10 Home

When following the "Installing ROS 2 on Windows" instructions for Eloquent for ROS2 debug libraries, trying to run ros commands results in an error that "python_d" cannot be found.

This is not surprising as choco does not install the python debug binaries. I wasn't familiar with choco before trying this, but after a brief search, I couldn't find another choco package that would achieve this.

If someone knows of a way to have choco install this I can make a PR to the documentation for that, otherwise I will make a PR that tells people to download the python 3.7.5 installer to modify their installation to include the debug binaries.

nbbrooks avatar Dec 31 '19 22:12 nbbrooks

That is mentioned here: https://index.ros.org/doc/ros2/Installation/Eloquent/Windows-Development-Setup/#extra-stuff-for-debug-mode as we assume you're not running debug unless you're also building from source.

wjwwood avatar Jan 09 '20 17:01 wjwwood

We have found that the Python Debug story on Windows is a bit difficult. As far as I know, choco provides no mechanism for installing the debug python interpreter, which is why we have the additional installation instructions as @wjwwood mentions above.

mjcarroll avatar Jan 09 '20 18:01 mjcarroll

Sorry I didn't read your comment fully enough. As far as I'm aware either installing the debug binary and symbols can only be done by source or through the installer. choco does not provide debug support.

brawner avatar Jan 14 '20 19:01 brawner

OK, I'll make a PR that copies over the documentation in the source install instructions William linked to the debug library install instructions.

nbbrooks avatar Jan 14 '20 23:01 nbbrooks

Actually, I think the PR for the debug library install process will instruct people to use the Python 3.7.3 installer (installing the debug symbols) and remove the choco python installation bits. The source install "Extra stuff for Debug mode" documentation builds python from source, which isn't in line with the objective of the library releases.

nbbrooks avatar Jan 14 '20 23:01 nbbrooks