ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Error while running 'C:\ProgramData\chocolatey\lib\ros-python2\tools\chocolateyinstall.ps1'.

asked 2019-04-27 07:48:27 -0600

budongyue gravatar image

updated 2019-04-27 09:30:24 -0600

gvdhoorn gravatar image

Straight dump of the error message:

C:\Windows\System32>choco upgrade ros-melodic-desktop_full -y
Chocolatey v0.10.13
2 validations performed. 1 success(es), 1 warning(s), and 0 error(s).

Validation Warnings:
 - A pending system reboot request has been detected, however, this is
   being ignored due to the current Chocolatey configuration.  If you
   want to halt when this occurs, then either set the global feature
     choco feature enable -name=exitOnRebootDetected
   or pass the option --exit-when-reboot-detected.

Upgrading the following packages:
By upgrading you accept licenses for the packages.
ros-melodic-desktop_full is not installed. Installing...
Progress: Downloading ros-melodic-desktop_full 20190415.1... 100%
Progress: Downloading ros-melodic-desktop_full 20190415.1... 100%

ros-python2 v2.7.15.1809242354
ros-python2 package files upgrade completed. Performing other installation steps.
Extracting C:\ProgramData\chocolatey\lib\ros-python2\tools\ to C:\opt\...
ERROR: The term 'cmd' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The upgrade of ros-python2 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\ros-python2\tools\chocolateyinstall.ps1'.
 See log for details.
edit retag flag offensive close merge delete


gvdhoorn gravatar image gvdhoorn  ( 2019-04-27 09:41:23 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-04-27 20:29:29 -0600

OoeyGUI gravatar image

Currently this script depends on cmd.exe on being in the path during first install and upgrade. We will change that. In the mean time, can you verify that you can call cmd from that command window?

edit flag offensive delete link more

Question Tools



Asked: 2019-04-27 07:48:27 -0600

Seen: 4,632 times

Last updated: Apr 27 '19