Failure: install ros-melodic-desktop_full ros-catkin-tools Error while running choclateyinstall.ps1

asked 2020-05-20 12:23:44 -0500

GhengisGohan gravatar image

updated 2020-05-20 12:38:30 -0500

gvdhoorn gravatar image

I've tried everything... operating Windows 10 Pro Version 10.0.17763 Build 17763

I was following the windows install as per http://wiki.ros.org/Installation/Windows and the workaround listed on various pages (but they look to be the same by now). I still end up with

ERROR: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Traceback (most recent call last):
The upgrade of ros-catkin-tools was NOT successful.
Error while running 'c:\opt\chocolatey\lib\ros-catkin-tools\tools\chocolateyinstall.ps1'.
 See log for details.

after Pip is uninstalled successfully

then an error running rosdepInstall.bat

ERROR: rosdepInstall.bat failed.
The upgrade of ros-melodic-desktop_full was NOT successful.
Error while running 'c:\opt\chocolatey\lib\ros-melodic-desktop_full\tools\chocolateyInstall.ps1'.
 See log for details.

I've tried upgrading ros-catkin-tools independently. I downloaded the tools from the Repo manually (https://ros-win.visualstudio.com/ros-...) and placed it accordingly. I've uninstalled/reinstalled fully (including chocolatey), updated my env/user variables. Nothings working. I believe this is a new occurrence but if not i'll take it down.

Logs

2020-05-20 13:12:03,912 21024 [DEBUG] - XmlConfiguration is now operational
2020-05-20 13:12:03,944 21024 [INFO ] - ============================================================
2020-05-20 13:12:04,100 21024 [INFO ] - Chocolatey v0.10.15
2020-05-20 13:12:04,100 21024 [DEBUG] - Chocolatey is running on Windows v 10.0.17763.0
2020-05-20 13:12:04,115 21024 [DEBUG] - Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
2020-05-20 13:12:04,115 21024 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
2020-05-20 13:12:04,115 21024 [DEBUG] - Command line: "C:\ProgramData\chocolatey\choco.exe" upgrade ros-catkin-tools -y
2020-05-20 13:12:04,115 21024 [DEBUG] - Received arguments: upgrade ros-catkin-tools -y
2020-05-20 13:12:04,162 21024 [DEBUG] - RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
2020-05-20 13:12:04,162 21024 [DEBUG] - Sending message 'PreRunMessage' out if there are subscribers...
2020-05-20 13:12:04,178 21024 [DEBUG] - [Pending] Removing all pending packages that should not be considered installed...
2020-05-20 13:12:04,209 21024 [DEBUG] - Performing validation checks.
2020-05-20 13:12:04,225 21024 [DEBUG] - Global Configuration Validation Checks:
2020-05-20 13:12:04,225 21024 [DEBUG] -  - Package Exit Code / Exit On Reboot = Checked
2020-05-20 13:12:04,225 21024 [DEBUG] - System State Validation Checks:
2020-05-20 13:12:04,225 21024 [DEBUG] -  Reboot Requirement Checks:
2020-05-20 13:12:04,225 21024 [DEBUG] -  - Pending Computer Rename = Checked
2020-05-20 13:12:04,225 21024 [DEBUG] -  - Pending Component Based Servicing = Checked
2020-05-20 13:12:04,225 21024 [DEBUG] -  - Pending Windows Auto Update = Checked
2020-05-20 13:12:04,240 21024 [DEBUG] -  - Pending File Rename Operations = Ignored
2020-05-20 13:12:04,240 21024 [DEBUG] -  - Pending Windows Package Installer = Checked
2020-05-20 13:12:04,240 21024 [DEBUG] -  - Pending Windows Package Installer SysWow64 = Checked
2020-05-20 13:12:04,240 21024 [INFO ] - 2 validations performed. 2 success(es), 0 warning(s), and 0 error(s).
2020-05-20 13:12:04,240 21024 [DEBUG] - The source 'https://roswin.azurewebsites ...
(more)
edit retag flag offensive close merge delete

Comments

Link back to the meta ticket https://github.com/ms-iot/ROSOnWindow....

Looking at the log file, it appears that the upgrade is failing due to a file locking issue. 2020-05-20 13:12:24,150 21024 [DEBUG] - Attempting to delete file "c:\opt\chocolatey.chocolatey\ros-catkin-tools.0.0.1.1903221831.arguments".

Do you have a virus scanner other than Windows Defender installed? if so, can you exclude the c:\opt directory from realtime scanning?

OoeyGUI gravatar image OoeyGUI  ( 2020-05-20 17:08:03 -0500 )edit

I have never downloaded any other security - assuming that leaves me with only Windows Defender. I did add the exception to the scan but that did not change and install. The same DEBUG line ran for .arguments, .extra, .version, .sxs, .pin, and the directory "c:\opt\chocolatey\lib-bad\ros-catkin-tools".

GhengisGohan gravatar image GhengisGohan  ( 2020-05-20 17:25:53 -0500 )edit