-
Notifications
You must be signed in to change notification settings - Fork 48
ROS Install can "silently" fail if Desktop C++ package isn't installed in Visual Studio #153
Comments
I ran into this issue when installing ROS for the first time. Had to manually delete c:\opt\vcpkg to successfully reinstall vcpkg.exe |
chocolatey_log1.txt
Attached are my logs |
Hi @dsato9 Sorry for the delay, Can you run: |
Chocolatey sometimes will move a package that failed into a lib-bad path, if you have: Can you run it and check the output? |
it would run, then get a point where it would display something about depreciation, python 2.7.... even though i do have python 3.7 installed. then close my command prompt window with out any additional prompts |
When you run |
ROS Melodic isn't supported on Python 3.7 which is why the ROS installer injects 2.7 into c:\opt. Are you attempting to run the commands in a python 3.7 console? ROS Noetic will support Python 3.7+ |
I am trying to run ros melodic because other parts of the project that i am working on are built on melodic. are there compatibility issues if i use noetic? no, i am using the windows command prompt |
There are compatibility problems going across distros, so is not generally supported. I think what has happened is that Python 3 is being picked up instead of python 2.7, which would affect rosdep install. Can you remove python 3 from your system path and relaunch the command window? |
I am having the same error; Please, fix it. |
@KamaljeetSahoo Which error are you seeing? Can you attach your chocolatey log? |
Hello I am still having an issue with this, can you please advise? Please find a copy of the log attached |
we no longer require a build during the install process. So closing this bug. |
Describe the bug
A requirement to install ROS, as documented here, is to
Include "Desktop development with C++" workload
when installing VS2019.Hypothetically - definitely not if you're me - someone could think that they had the C++ toolchain installed, but not actually have it installed. When this happens, the install "silently" fails - as in,
ros-vcpkg
will throw errors, but then will showThe upgrade of ros-vckpg was successful
:Someone not looking closely will think their install was successful, and then be confused when things don't work later on.
To make matters slightly worse, if you install the C++ toolchain and then try to re-build
ros-vcpkg
- even if you fully uninstall the package and then reinstall - it will silently fail to build the EXE, since the build script simply checks forc:\opt\vcpkg
being installed:At a minimum, I think we should update the
ros-vcpkg
script to explicitly check forvcpkg.exe
when deciding if it needs to rebuild. Also, we should consider just failing the entireros-vcpkg
installation if the C++ toolchain - assuming we give clear direction to users on how to resolve and finish the ROS installation process when this happens. Consider that the installation process of ROS as a whole (choco upgrade ros-melodic-desktop_full
blah blah) would be interrupted if this module fails. Luckily today it's the last thing that installs, but I don't think we should always rely on that.To Reproduce
See the above description, but essentially install ROS on a machine that has VS19 installed but not the C++ toolchain. Presumably it would fail if VS19 is totally uninstalled as well - another failure mode we should consider
Expected behavior
See bug description - user is clearly informed of the issue and told exactly how to address and resume installation.
Environment information:
The text was updated successfully, but these errors were encountered: