Closed seanyen closed 4 years ago
@seanyen @ooeygui Attached is my chocolatey log. I created the post on https://answers.ros.org/question/348689/error-installing-ros-on-windows10/
Attached is my chocolatey log, I had the same problem. chocolatey.log
Hi all, a version of 20200409.2.0
is released and this should be addressed. Let me know if you still run into this issue. Thanks!
Hi all, a version of
20200409.2.0
is released and this should be addressed. Let me know if you still run into this issue. Thanks!
Hi - new ROS user installing for the first time ever on Windows 10; I'm running into this issue even after specifically running a "choco upgrade ros-vcpkg" first.
Still seeing "ERROR: the following rosdeps failed to install" vcpkg: Vcpkg is not installed". This is with ros-melodic-desktop_full V20200409.2. This is on Windows 10 1909 (OS Build 18363.752) and Visual Studio Community Edition 2019; fresh install.
@dweekly Thanks for reporting, can you check if c:\opt\vcpkg\vcpkg.exe
is created after the broken install?
Ah, it was not. My issue was caused by https://github.com/ms-iot/ROSOnWindows/issues/153
Closing it since the fixed release is out.
Closing it since the fixed release is out.
I'm having exactly the same issue. Can you know me where is fixed release?? The version 20200409.2 was not helpful to me.
Hi @andyworkingholiday ,
Sorry the resolution was not clear. To fix your install, please rerun the upgrade command:
choco upgrade ros-melodic-desktop_full -y --execution-timeout=0
Hi, I also have the same trouble.
I have installed VC2019 community (because I do not want to mess with my 2017 work license) just today and added the desktop C++ package, so that should be there.
I followed this "http://wiki.ros.org/Installation/Windows" until 5.1 and ran into the problem. I found the "solution" from the first post, which did not change anything, I still got the same error messages.
Then, I upgraded "ros-vcpkg":
C:\Windows\System32>choco upgrade ros-vcpkg -y --execution-timeout=0 Chocolatey v0.10.15 Upgrading the following packages: ros-vcpkg By upgrading you accept licenses for the packages. ros-vcpkg v2018.11.23.1906112226 is the latest version available based on your source(s). Chocolatey upgraded 0/1 packages. See the log for details (c:\opt\chocolatey\logs\chocolatey.log).
I guess there is nothing to update. I also have a "C:\opt\vcpkg" folder with lots of stuff, so there is something.
Then I again called "choco upgrade ros-melodic-desktop_full -y --execution-timeout=0"
and now my error messages for the ros installation changed to this: ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: ros_core: No definition of [rosbag_migration_rule] for OS [windows] rospack: No definition of [python-catkin-pkg-modules] for OS [windows] diagnostic_common_diagnostics: No definition of [hddtemp] for OS [windows] trajectory_msgs: No definition of [rosbag_migration_rule] for OS [windows] desktop: No definition of [common_tutorials] for OS [windows] simulators: No definition of [stage_ros] for OS [windows] joint_trajectory_controller: No definition of [code_coverage] for OS [windows] joystick_drivers: No definition of [wiimote] for OS [windows] Continuing to install resolvable dependencies... ERROR: the following rosdeps failed to install vcpkg: Vcpkg is not installed
I don't understand that. I upgraded vcpkg which says I have the latest version and then the next call now says I do not have any version ?
What should I do? Delete some folders and start over?
regards
@lwoffice, I have a hypothesis.
To confirm, is there c:\opt\vcpkg\vcpkg.exe
?
If not, can you:
cd c:\opt\vcpkg
bootstrap-vcpkg.bat
and post the output?
Well, I am currently figuring it out and it has to do with messed up Path variables. This is what I have right now:
I partly solved the issue by starting from scratch. I found that my Windows settings missed an entry in the PATH variable for Powershell (%SYSTEMROOT%\System32\WindowsPowerShell\v1.0)
As a result, the installation of the vcpkg outputs a message which can be quickly overlooked and says that the command "Powershell" can not be found. Nevertheless there will be a green message that the installation of vcpkg was successful !
I looked up thread #153 where I found that their is a build script after the download procedure which outputs message "Building vcpkg.exe ...". Without powershell, that build script does not work obviously.
I looked up the windows features, but Powershell was installed. Whatever, I removed and reinstalled it, but it still did not work. I manually added the path from above and I was able now to call Powershell from the x64 Dev Console.
Additionally, I also had to completely delete the c:\opt folder, otherwise the build process was also not started correctly. After that, it worked fine and a "vcpkg.exe" was created in C:\opt\vcpkg.
Nevertheless, the installation of ros-melodic afterwards still fails:
C:\Windows\System32> choco upgrade ros-melodic-desktop_full -y --execution-timeout=0 Chocolatey v0.10.15 [Pending] Removing incomplete install for 'ros-melodic-desktop_full' Upgrading the following packages: ros-melodic-desktop_full By upgrading you accept licenses for the packages. ros-melodic-desktop_full is not installed. Installing... Progress: Downloading ros-melodic-desktop_full 20200409.2... 100% Progress: Downloading ros-melodic-desktop_full 20200409.2... 100%
ros-melodic-desktop_full v20200409.2 ros-melodic-desktop_full package files upgrade completed. Performing other installation steps. Extracting 64-bit C:\ProgramData\chocolatey\lib\ros-melodic-desktop_full\tools\drop.zip to c:\opt\ros... c:\opt\ros running rosdep... Der Befehl "rosdep" ist entweder falsch geschrieben oder konnte nicht gefunden werden. Der Befehl "rosdep" ist entweder falsch geschrieben oder konnte nicht gefunden werden. Der Befehl "rosdep" ist entweder falsch geschrieben oder konnte nicht gefunden werden. ERROR: rosdepInstall.bat failed. The upgrade of ros-melodic-desktop_full was NOT successful. Error while running 'C:\ProgramData\chocolatey\lib\ros-melodic-desktop_full\tools\chocolateyInstall.ps1'. See log for details.
Chocolatey upgraded 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Failures
I looked up "chocolateyInstall.ps1" and "rosdepInstall.bat" and I guess it now has something to do with a messed Python variable too. Trying to figure that out now ...
Thank you for investigating.
The vcpkg bootstrap script does not use a full path to powershell:
powershell.exe -NoProfile -ExecutionPolicy Bypass "& {& '%~dp0scripts\bootstrap.ps1' %*}"
(the ROS install is explicit about calling powershell by full path to install chocolatey)
Can you run c:\opt\chocolatey\lib\ros-melodic-desktop_full\tools\rosdepInstall.bat
and paste the output?
That was not successful, but I recognized some (probably) strange folder issues.
In the c:\opt\chocolatey\lib" I only have the "ros-vcpkg" folder. There are no further subfolders. Whenever I use the install procedure for ros (choco upgrade ros-melodic-desktop_full ... ), this "ros_melodic..." folder is created in "C:\ProgramData\chocolatey\lib" and after it fails it is automatically moved into the "lib-bad" folder.
So ... I can find that rosdepInstall.bat here "C:\ProgramData\chocolatey\lib-bad\ros-melodic-desktop_full\tools". Running this manually immediately crashes the whole x64 console, so I can not see anything.
I am really wondering, why I have this chocolatey folder in "C:\ProgrammData", although I installed chocolatey according to "http://wiki.ros.org/Installation/Windows" section 4. Looking at that installation string it might have something to do with the "PATH" variable as well?
I made a screenshot with all the folders and you I found a "c:\ProgramData\chocolatey\bin" in the System Path variable. I do not know if that is supposed to be there and why it is there.
Thank you for working with us on this, I really do appreciate it.
The console window crashing is quite ominous. What version of Windows are you using? (I can't tell from the screen shot).
I noticed that you have mingw32 in your path, I'm a bit worried that the inherited environment is causing compatibility problems. ROS is quite sensitive to the host environment, which is why we've tried to isolate it as much as possible. However, environment from the host can 'leak' into the ROS environment in strange ways.
When you create the shortcut to the console window, we recommended adding a chocolatey bypass, so that it too is isolated:
C:\Windows\System32\cmd.exe /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64&& set ChocolateyInstall=c:\opt\chocolatey&& c:\opt\ros\melodic\x64\setup.bat
When the console is launched with that command line, chocolatey will reference the packages from the c:\opt\chocolatey
directory.
Version is Win 10 Pro 1809 (Build 17763.1098). shortcut: well ... I was stuck at section 5.1 in the installation manual, and that hint to the cmd is in section 6, I just did not continue reading the manual :D
After all, I figured it out. I completely removed the c:\opt and the c:\ProgramData\chocolately folders to get rid of the crappy installations before. I restarted all steps from section 4, but I used a cmd with the "bypass" option. Might be a good idea to adapt the manual http://wiki.ros.org/Installation/Windows :
1) Move section 6 inbetween 3 and 4 and modify it slightly: I removed the last statement (&& c:\opt\ros\melodic\x64\setup.bat), because I did not want the setup.bat to be executed in the steps 4 and 5 already, I just wanted the console with the bypass which worked fine (maybe it would not harm to have setup.bat here already, I do no know). I used that modified cmd for steps in section 4 and 5 and when I reached section 6, I added the "...\setup.bat" part to the link.
Honestly, I do not know why there is a difference between setting "set ChocolateyInstall=..." in the link instead of calling it in the console itself, but on my system that made the difference. Maybe that is a Windows secret :)
2) You could add the workaround for vcpkg to section 5.1 (and probably 5.2), so people do no longer need to search this thread. At least it does not harm I think, although it might not be necessary in all cases: choco upgrade ros-vcpkg -y --execution-timeout=0
It might also be good to add the hint with regard to Powershell path issues that I had. Users should check their User Path variables and add "%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\" if it does not exist. That solved my build issues with regard to vcpkg.
That's it for me ...
Chocolatey upgraded 10/10 packages. See the log for details (c:\opt\chocolatey\logs\chocolatey.log).
Done :D
After all, I figured it out. I completely removed the c:\opt and the c:\ProgramData\chocolately folders to get rid of the crappy installations before. I restarted all steps from section 4, but I used a cmd with the "bypass" option.
I'm glad you figured it out!
Move section 6 inbetween 3 and 4 and modify it slightly: I removed the last statement (&& c:\opt\ros\melodic\x64\setup.bat), because I did not want the setup.bat to be executed in the steps 4 and 5 already, I just wanted the console with the bypass which worked fine (maybe it would not harm to have setup.bat here already, I do no know). I used that modified cmd for steps in section 4 and 5 and when I reached section 6, I added the "...\setup.bat" part to the link.
We had put it in this order because setup.bat won't exist the first time around which causes an error launching the script.
Honestly, I do not know why there is a difference between setting "set ChocolateyInstall=..." in the link instead of calling it in the console itself, but on my system that made the difference. Maybe that is a Windows secret :)
I'll add some clarity to the doc. We decided to move the chocolatey install into the c:\opt directory so that it was self-contained. you can reinstall ROS by removing c:\opt or move the install to another machine by copying c:\opt. That said, we are looking at alternative environment management solutions for future deployments. (Including CondaForge)
It might also be good to add the hint with regard to Powershell path issues that I had. Users should check their User Path variables and add "%SYSTEMROOT%\System32\WindowsPowerShell\v1.0" if it does not exist. That solved my build issues with regard to vcpkg.
I added a troubleshooting section.
That's it for me ...
I really appreciate you working with us on this!
Hi, I'm having issues. ros-melodic-desktop_full
fails to install and c:\opt\vcpkg\vcpkg.exe
doesn't exist.
I tried multiple time to install ROS,
I had ensured no versions of python were on the system,
Powershell is installed and is in the Path variables,
I've used the choco upgrade ros-vcpkg -y --execution-timeout=0
workaround and the
cd c:\opt\vcpkg
bootstrap-vcpkg.bat
which created vcpkg.exe
but after choco upgrade ros-melodic-desktop_full -y --execution-timeout=0
it always fails and the vcpkg.exe
has been removed from c:\opt\vcpkg
Here is my log from the last attempt:
chocolatey.log
Also, there is no path to the python 2.7, that the install downloads, in the path variable. I don't know if there should be.
@David-milne Is it possible to provide a screenshot of what error you saw? And the %PATH%
environment variable from the console you run the choco
commands?
From the logs it said it failed at [ERROR] - ERROR: rosdepInstall.bat failed.
but unfortunately I didn't see more details other than that, so I am requesting more information.
@seanyen After I posted last I rebuilt vcpkg.exe
and used c:\opt\chocolatey\lib-bad\ros-melodic-desktop_full\tools\rosdepInstall.bat
which completed without errors. But then I ran choco upgrade ros-melodic-desktop_full -y --execution-timeout=0
and got the same error as before.
Here is my path environment variables:
I built the vcpkg.exe
again and ran choco upgrade ros-melodic-desktop_full -y --execution-timeout=0
Here is the failed install output:
@seanyen After I posted last I rebuilt
vcpkg.exe
and usedc:\opt\chocolatey\lib-bad\ros-melodic-desktop_full\tools\rosdepInstall.bat
which completed without errors. But then I ranchoco upgrade ros-melodic-desktop_full -y --execution-timeout=0
and got the same error as before.Here is my path environment variables:
I built the
vcpkg.exe
again and ranchoco upgrade ros-melodic-desktop_full -y --execution-timeout=0
Here is the failed install output:
Yes that's it I am getting the exact same error. Please someone help us.
Hi,
I noticed that for your console outputs it still says that vcpkg.exe is not installed. I guess you have called installation part, but it still did not successfully build that executable. Please have a look into C:\opt\vcpkg and if there is really an executable.
The only other things I have in mind are starting the Dev Console as an Administrator and using a link to the console with the path and options that were described above. Also, I had to remove everything in C:\opt and start over completely again with it.
regards
Thanks for the suggestion, but I have started with a clean C:\opt
, built vcpkg.exe
successfully before starting choco upgrade ros-melodic-desktop_full -y --execution-timeout=0
, the cmd prompt is set to run as Administrator, and I have watched vcpkg.exe
in file manager get removed during the install and then fail because vcpkg.exe
does not exist.
Also this is a new computer. ROS 2 installed fine, but ROS 1 won't and I need ROS 1 to control Baxter robot.
p.s. I had already removed ROS 2 before my latest fresh install.
@David-milne Thank you for working with us on this issue. We're actively working to understand the environment where this fails. Are you using the ROS2 install instructions from http://wiki.ros.org/Installation/Windows or from https://index.ros.org/doc/ros2/Installation/Eloquent/? In the command window where the error occurs, can you paste into this issue the output of
set
Please remove any personally identifying information, or other secret data. We're specifically interested in the Visual Studio, Path, Python and ROS related environment variables.
@ooeygui Sorry if I was confusing before, I installed ROS2 from the http://wiki.ros.org/Installation/Windows instructions and it worked fine. My issue is installing ROS1, I am also using the instructions from http://wiki.ros.org/Installation/Windows
I just did a fresh install again, same result, here is the output from set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\david\AppData\Roaming
ChocolateyInstall=c:\opt\chocolatey
ChocolateyLastPathUpdate=132333921702576266
CommandPromptType=Native
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=LAPTOP-RO5HSBBB
ComSpec=C:\windows\system32\cmd.exe
DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\
DriverData=C:\Windows\System32\Drivers\DriverData
ExtensionSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
Framework40Version=v4.0
FrameworkDir=C:\Windows\Microsoft.NET\Framework64\
FrameworkDir64=C:\Windows\Microsoft.NET\Framework64\
FrameworkVersion=v4.0.30319
FrameworkVersion64=v4.0.30319
HOMEDRIVE=C:
HOMEPATH=\Users\david
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\include;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt
JAVA_HOME=C:\Program Files\Java\jdk-14.0.1
LIB=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\ATLMFC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\lib\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64;
LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\ATLMFC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\lib\x86\store\references;C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.18362.0;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;
LOCALAPPDATA=C:\Users\david\AppData\Local
LOGONSERVER=\\LAPTOP-RO5HSBBB
NUMBER_OF_PROCESSORS=12
OneDrive=C:\Users\david\OneDrive
OneDriveConsumer=C:\Users\david\OneDrive
OnlineServices=Online Services
OPENSSL_CONF=C:\Program Files\OpenSSL-Win64\bin\openssl.cfg
OS=Windows_NT
Path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\\x64;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\MATLAB\R2020a\bin;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;c:\opt\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\Cppcheck;C:\Users\david\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Mercurial\;C:\Program Files\OpenSSL-Win64\bin;C:\libjpeg-turbo64\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\Linux\bin\ConnectionManagerExe
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
platformcode=KV
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=9e0a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC=C:\Users\Public
RegionCode=APJ
SystemDrive=C:
SystemRoot=C:\windows
TEMP=C:\Users\david\AppData\Local\Temp
TMP=C:\Users\david\AppData\Local\Temp
UCRTVersion=10.0.18362.0
UniversalCRTSdkDir=C:\Program Files (x86)\Windows Kits\10\
USERDOMAIN=LAPTOP-RO5HSBBB
USERDOMAIN_ROAMINGPROFILE=LAPTOP-RO5HSBBB
USERNAME=david
USERPROFILE=C:\Users\david
VCIDEInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\
VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\
VCToolsInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.25.28610\
VCToolsRedistDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.25.28508\
VCToolsVersion=14.25.28610
VisualStudioVersion=16.0
VS160COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\
VSCMD_ARG_app_plat=Desktop
VSCMD_ARG_HOST_ARCH=x64
VSCMD_ARG_TGT_ARCH=x64
VSCMD_VER=16.5.4
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\
windir=C:\windows
WindowsLibPath=C:\Program Files (x86)\Windows Kits\10\UnionMetadata\10.0.18362.0;C:\Program Files (x86)\Windows Kits\10\References\10.0.18362.0
WindowsSdkBinPath=C:\Program Files (x86)\Windows Kits\10\bin\
WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\
WindowsSDKLibVersion=10.0.18362.0\
WindowsSdkVerBinPath=C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\
WindowsSDKVersion=10.0.18362.0\
__DOTNET_ADD_64BIT=1
__DOTNET_PREFERRED_BITNESS=64
__VSCMD_PREINIT_PATH=C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\MATLAB\R2020a\bin;C:\Program Files\dotnet\;C:\ProgramData\chocolatey\bin;c:\opt\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\Cppcheck;C:\Users\david\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Mercurial\;C:\Program Files\OpenSSL-Win64\bin;C:\libjpeg-turbo64\bin
@David-milne Thanks for your time working with us on this issue. At this moment I am still trying to figure out what causes the Vcpkg missing problem. But, I did some updates for Vcpkg installation checking and error handling. And hope that can catch any error earlier and give more useful error messages. Currently it is in pre-release channel, can you try choco upgrade ros-melodic-desktop_full -y --execution-timeout=0 --pre
and let us know how it goes?
@seanyen I tried a fresh install using choco upgrade ros-melodic-desktop_full -y --execution-timeout=0 --pre
, it failed immediately after building vcpkg.exe
instead of after downloading all the other packages (like gazebo, ect)
output:
Log:
chocolatey.log
@David-milne Thanks. I intentionally failed the rest of the installation and made it fail fast. And it seems to me that it did build vcpkg.exe
, however, it didn't pass the Vcpkg existence check. Can you try do dir /s /b c:\opt\vcpkg\*.exe
and check the file existence of C:\opt\vcpkg\.vcpkg-root
?
I am trying to figure out why the Vcpkg.exe is not copied to $vcpkgRootDir
defined here.
@seanyen here is the output for dir /s /b c:\opt\vcpkg\*.exe
:
and C:\opt\vcpkg\.vcpkg-root
does exist:
I built vcpkg.exe
using
cd c:\opt\vcpkg
bootstrap-vcpkg.bat
Checking the time marks there was 11 minuets between outputting the "Telemetry..." and "The upgrade of ros-vcpkg was successful" (I don't know why that takes so long)
I then used dir /s /b c:\opt\vcpkg\*.exe
again:
chocolatey.log
@David-milne Thanks for new information. This is indeed strange to me in some cases that Vcpkg.exe
is not generated. Just wondering do you have any anti-virus software installed? Can you temporarily turn off them and retry again? I am checking because I read Vcpkg threads talking about that could be one reason to render this Vcpkg.exe
missing issue.
https://github.com/microsoft/vcpkg/issues/9704 https://github.com/Microsoft/vcpkg/issues/5187
ros-colcon-tools and ros-eloquent-desktop ERROR: rosdepInstall.bat failed. The upgrade of ros-eloquent-desktop was NOT successful.
i
ros-colcon-tools和ros-eloquent-desktop 错误:rosdepInstall.bat失败。 ros-eloquent-desktop的升级失败。 I hope that someone can help me ,thank you!
@seanyen Well now I feel extremely dumb for not realising that earlier.
The laptop came with McAfee preinstalled, btw. I turned off both McAfee and Window's anti-virus real-time scanning and tried a fresh install and it completed. Yay!
I guess vcpkg.exe
was being flagged by McAfee and automatically deleted, idk
Thanks for your patience and hard work :)
@jiaodaxiaoli Can you share your chocolatey.log
and the environment variables (for example, type set > env.log
in the console and share the env.log
)? And please remove any personal information before sharing. Thanks!
@David-milne Glad to hear now the problem is solved!
I updated the wiki.ros.org install instructions to cover this case. Thank you for working through this with us!
@jiaodaxiaoli Sorry I didn't notice an error ERROR: The remote name could not be resolved
in your screenshot. During the ROS installation, it requires to pull some files from Internet and some are from GitHub. It seems that in your environment, it has a problem to access this location: https://raw.githubusercontent.com/ms-iot/rosdistro-db/init_windows/rosdistro_cache/colcon-requirements.txt
Can you double check your network configuration?
Chocolatey upgraded 10/12 packages. 2 packages failed. See the log for details (c:\opt\chocolatey\logs\chocolatey.log).
Upgraded:
Failures
Attached is my chocolatey log and env.log.Thank you fou helping me with the problem. env.log
sorry,I don't quite understand your requirements.What network configuration is required? @seanyen
ERROR: The remote name could not be resolved: 'raw.githubusercontent.com' The upgrade of ros-colcon-tools was NOT successful. Error while running 'c:\opt\chocolatey\lib\ros-colcon-tools\tools\chocolateyinstall.ps1'. See log for details. @seanyen
@jiaodaxiaoli: are you behind a (corporate) firewall or proxy?
What is the output of ping raw.githubusercontent.com
?
If you are behind a firewall, additional configuration may be needed to allow vcpkg
and/or Chocolately access to the internet. I would not know what configuration that would be though.
I shut down the firewall.
Ping request could not find host raw.githubusercontent.com. @gavanderhoorn
Sorry,I don't understand I've downloaded it, but running this statement (ros2 run demo_nodes_cpp talker) shows the above error. c:\opt\ros\melodic\x64\setup.bat does not exist. C:\opt\ros\eloquent\x64\setup.bat exists.
[Uploading @seanyen chocolatey.log…]()
@jiaodaxiaoli You are experiencing multiple separate issues:
It looks like you have installed the eloquent chocolatey packages but not the melodic ones. Which instructions did you follow to install?
raw.githubusercontent.com
is the static resource server used by github.com
. If you cannot access github, then something is very wrong on your system. As @gavanderhoorn suggested, this could be a proxy issue. Please check out https://chocolatey.org/docs/proxy-settings-for-chocolatey to see if that resolves your problem. If this doesn't help, you may want to consult your IT department.
You need to be online to set up ROS the first time. If you need to work offline, connect your system to set up, then disconnect in order to run offline.
@ooeygui hi, I installed it according to the instructions on this website--http://roswiki.autolabor.com.cn/Installation(2f)Windows.html but I didn't install step 5.1 .
I don't know how to set up ros, because I am a beginner. I hope you can explain it carefully.
@jiaodaxiaoli Thank you for the pointer. That appears to be a copy of the official documentation, and is missing steps. The official documentation is located: https://wiki.ros.org/Installation/Windows.
Please follow the steps from top to bottom. The distribution of ROS2 in that document is designed to work within ROS1.
If you are interested in ROS2 only, the official documentation is here: https://index.ros.org/doc/ros2/.
At this point, I recommend removing c:\opt
and starting over.
@ooeygui Thank you very much for your help, I have installed ROS.I have installed ROS, but now I have a new problem. My RVIZ starts normally, but gazebo doesn't. It shows that 'gazebo' is not an internal or external command, nor is it a runnable program or batch file.Here are my system variables.
@jiaodaxiaoli It is best to file a new issue as this is not vcpkg related. Gazebo is provided in the gazebo_ros package, and is from roslaunch.
This is a cross-post for the issues reported here:
~We are investigating this issue. For whoever lands here because of hitting this issue, please kindly share your
c:\opt\chocolatey\logs\chocolatey.log
. That would help us better understand what's happening.~~UPDATED: We are working on a release for the fix. Meanwhile, you can use the following workaround while waiting for the new release.~
UPDATED: A version of
20200409.2.0
is released and this problem should be addressed.Workaround:
Following the normal instructions, and when it comes to do
Binary Package Installation
, please do the steps instead: