Open RicardoSPeres opened 9 months ago
I tried a few commands and they are working fine. Can you report exactly the command you are executing that is resulting in "failed to create process." error? Thanks!
After following the "getting started" instructions, testing works fine and rviz2 opens the rviz window as expected. However any command starting with "ros2" results in the "failed to create process" output, it can be anything from just running "ros2", to "ros2 run
I noticed there are multiple errors when I activate the ros2 env, might be related. Here's the output after running "mamba activate ros_humble":
C:\>mamba activate ros_humble
C:\>SET DISTUTILS_USE_SDK=1
C:\>SET MSSdk=1
C:\>SET "VS_VERSION=16.0"
C:\>SET "VS_MAJOR=16"
C:\>SET "VS_YEAR=2019"
C:\>set "MSYS2_ARG_CONV_EXCL=/AI;/AL;/OUT;/out"
C:\>set "MSYS2_ENV_CONV_EXCL=CL"
C:\>set "PY_VCRUNTIME_REDIST=\bin\vcruntime140.dll"
C:\>set "CXX=cl.exe"
C:\>set "CC=cl.exe"
C:\>set "VSINSTALLDIR="
C:\>set "NEWER_VS_WITH_OLDER_VC=0"
C:\>for /F "usebackq tokens=*" %i in (`vswhere.exe -nologo -products * -version [16.0,17.0) -property installationPath`) do (set "VSINSTALLDIR=%i\" )
C:\>(set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" )
C:\>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (for /F "usebackq tokens=*" %i in (`vswhere.exe -nologo -products * -requires Microsoft.VisualStudio.ComponentGroup.VC.Tools.142.x86.x64 -property installationPath`) do (
set "VSINSTALLDIR=%i\"
set "NEWER_VS_WITH_OLDER_VC=1"
) )
C:\>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (for /F "usebackq tokens=*" %i in (`vswhere.exe -nologo -products * -requires Microsoft.VisualStudio.Component.VC.v142.x86.x64 -property installationPath`) do (
set "VSINSTALLDIR=%i\"
set "NEWER_VS_WITH_OLDER_VC=1"
) )
C:\>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\" )
C:\>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" )
C:\>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\" )
C:\>if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\" (set "VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\" )
C:\>IF NOT "" == "" (
set "INCLUDE=;"
set "LIB=;"
set "CMAKE_PREFIX_PATH=;"
)
C:\>call :GetWin10SdkDir
C:\>call :GetWin10SdkDirHelper HKLM\SOFTWARE\Wow6432Node 1>nul 2>&1
C:\>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE\Wow6432Node 1>nul 2>&1
C:\>if errorlevel 1 call :GetWin10SdkDirHelper HKLM\SOFTWARE 1>nul 2>&1
C:\>if errorlevel 1 call :GetWin10SdkDirHelper HKCU\SOFTWARE 1>nul 2>&1
C:\>if errorlevel 1 exit /B 1
C:\>exit /B 0
C:\>for /F %i in ('dir /ON /B "C:\Program Files (x86)\Windows Kits\10\\include\10.*"') DO (SET WindowsSDKVer=%~i )
C:\>(SET WindowsSDKVer=10.0.18362.0 )
C:\>if errorlevel 1 (echo "Didn't find any windows 10 SDK. I'm not sure if things will work, but let's try..." ) else (echo Windows SDK version found as: "10.0.18362.0" )
Windows SDK version found as: "10.0.18362.0"
C:\>set "CMAKE_PLAT=x64"
C:\>set "VCVARSBAT=64"
C:\>set "CMAKE_ARGS=-DCMAKE_BUILD_TYPE=Release"
C:\>IF "" == "1" (set "CMAKE_ARGS=-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX= -DCMAKE_PROGRAM_PATH=\bin;\Scripts;\Library\bin;\bin;\Scripts;\Library\bin" )
C:\>IF NOT "win-64" == "win-64" (
set "CONDA_BUILD_CROSS_COMPILATION=1"
set "CMAKE_ARGS=-DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_PROCESSOR=AMD64"
) else (set "CONDA_BUILD_CROSS_COMPILATION=0" )
C:\>IF 2019 GEQ 2019 (
set "CMAKE_GEN=Visual Studio 16 2019"
set "USE_NEW_CMAKE_GEN_SYNTAX=1"
) ELSE (
IF "win-64" == "win-64" (set "CMAKE_GEN=Visual Studio 16 2019 Win64" ) else (set "CMAKE_GEN=Visual Studio 16 2019" )
set "USE_NEW_CMAKE_GEN_SYNTAX=0"
)
C:\>echo "NEWER_VS_WITH_OLDER_VC=0"
"NEWER_VS_WITH_OLDER_VC=0"
C:\>if "0" == "1" (set /p NEWER_VS= 0<"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt" )
C:\>type "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt"
14.28.29333
C:\>dir "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\VC\Redist\MSVC\"
Volume in drive C has no label.
Volume Serial Number is 8816-3E50
Directory of C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC
19/01/2021 16:17 <DIR> .
19/01/2021 16:17 <DIR> ..
19/01/2021 16:17 <DIR> 14.28.29325
19/01/2021 16:17 <DIR> v142
0 File(s) 0 bytes
4 Dir(s) 140,752,433,152 bytes free
C:\>if "0" == "1" (
echo ""
if "~0,4" == "14.2" (set "CMAKE_GEN=Visual Studio 16 2019" ) else (set "CMAKE_GEN=Visual Studio 17 2022" )
set "USE_NEW_CMAKE_GEN_SYNTAX=1"
)
C:\>IF "" == "" SET "CMAKE_GENERATOR=Visual Studio 16 2019"
C:\>IF "1" == "1" (
IF "" == "" SET "CMAKE_GENERATOR_PLATFORM=x64"
IF "" == "" SET "CMAKE_GENERATOR_TOOLSET=v142"
)
C:\>pushd C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>CALL "VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.29 10.0.18362.0
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.8.4
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************
[ERROR:vcvars.bat] Toolset directory for version '14.29' was not found.
[ERROR:VsDevCmd.bat] *** VsDevCmd.bat encountered errors. Environment may be incomplete and/or incorrect. ***
[ERROR:VsDevCmd.bat] In an uninitialized command prompt, please 'set VSCMD_DEBUG=[value]' and then re-run
[ERROR:VsDevCmd.bat] vsdevcmd.bat [args] for additional details.
[ERROR:VsDevCmd.bat] Where [value] is:
[ERROR:VsDevCmd.bat] 1 : basic debug logging
[ERROR:VsDevCmd.bat] 2 : detailed debug logging
[ERROR:VsDevCmd.bat] 3 : trace level logging. Redirection of output to a file when using this level is recommended.
[ERROR:VsDevCmd.bat] Example: set VSCMD_DEBUG=3
[ERROR:VsDevCmd.bat] vsdevcmd.bat > vsdevcmd.trace.txt 2>&1
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.8.4
** Copyright (c) 2020 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
(ros_humble) C:\>
I just tried ros2 launch turtlesim multisim.launch.py
from https://docs.ros.org/en/rolling/Tutorials/Beginner-CLI-Tools/Launching-Multiple-Nodes/Launching-Multiple-Nodes.html and it is working fine?
Can you tell exactly a command (i.e. that I can just copy&paste the command to reproduce the problem) that is giving you the error? Thanks!
The issue happens with anything starting with ros2
, I just tried running ros2 launch turtlesim multisim.launch.py
and the output is still "failed to create process.". Thank you
Can you try to install the environment in a directory without spaces? You can do that by creating an environment in a specific directory with mamba -p C:\testenv
instead of creating a named environment with mamba -n
.
By manually creating an environment with a space in the path, I was able to reproduce the problem. The error seems to be similar to https://github.com/pypa/pip/issues/2783, even if that one should be solved.
The problem does not occurs with entry_points in conda-forge recipes, so it is either a problem of boa or of how recipes with Python entry_points are generated in robostack.
I don't think we take care of the specifying Python entry points in the meta.yaml/recipe.yaml (as per https://docs.conda.io/projects/conda-build/en/stable/resources/define-metadata.html#python-entry-points). We might be able to steal some code from grayskull to generate them in vinca automatically.
Solution to issue cannot be found in the documentation.
Issue
Followed the getting started documentation and managed to get rviz2 up and running (despite getting multiple errors stating "could not load pixmap package"). However when I try to run ros2, or for instance ros2 launch for a launch file, it only prints "failed to create process.". Sourcing the workspace with "call install/local_setup.bat" didn't help either. Any help would be appreciated, thank you
Installed packages
Environment info