"The system cannot find the path specified." when running ROS2 local_setup.bat

asked 2018-05-24 09:59:06 -0600

EliteMasterEric gravatar image

updated 2018-05-24 12:38:39 -0600

gvdhoorn gravatar image

I am running Windows 10, and attempting to set up ROS2 following this guide.

When I attempt to run:

call C:\dev\ros2\local_setup.bat

I get an error:

The system cannot find the path specified.

When I turn on @Echo in the script file, I find that the line causing the issue is:

if exist "C:\dev\ros2\share\ament_clang_format\local_setup.bat" call "C:\dev\ros2\share\ament_clang_format\local_setup.bat"

I would post a picture showing that the file in question exists but cannot due to account limitations. I can however confirm that the directory specified exists and is a valid script on its own.

EDIT: Running the line individually results in no errors.

EDIT2: Clarified that the script referred to exists.


Edit3:

C:\dev\ros2>dir C:\
 Volume in drive C has no label.
 Volume Serial Number is CA30-A538

 Directory of C:\

05/24/2018  09:32 AM    <DIR>          dev
05/15/2018  09:06 AM    <DIR>          Intel
05/23/2018  04:56 PM    <DIR>          OpenSSL-Win64
04/11/2018  07:38 PM    <DIR>          PerfLogs
05/21/2018  09:07 AM    <DIR>          Program Files
05/17/2018  09:24 AM    <DIR>          Program Files (x86)
05/23/2018  04:55 PM    <DIR>          Python36
05/15/2018  09:07 AM    <DIR>          Users
05/23/2018  04:55 PM    <DIR>          Windows
05/15/2018  09:19 AM    <DIR>          Windows.old
               0 File(s)              0 bytes
              10 Dir(s)  363,747,086,336 bytes free

C:\dev\ros2>dir C:\dev
 Volume in drive C has no label.
 Volume Serial Number is CA30-A538

 Directory of C:\dev

05/24/2018  09:32 AM    <DIR>          .
05/24/2018  09:32 AM    <DIR>          ..
05/23/2018  05:02 PM    <DIR>          opencv-3.4.1
05/24/2018  09:12 AM    <DIR>          opensplice
05/24/2018  09:34 AM    <DIR>          ros2
               0 File(s)              0 bytes
               5 Dir(s)  363,746,222,080 bytes free

C:\dev\ros2>dir C:\dev\ros2
 Volume in drive C has no label.
 Volume Serial Number is CA30-A538

Directory of C:\dev\ros2

05/24/2018  09:34 AM    <DIR>          .
05/24/2018  09:34 AM    <DIR>          ..
03/07/2018  08:56 PM    <DIR>          bin
03/07/2018  08:40 PM    <DIR>          CMake
03/07/2018  08:56 PM    <DIR>          include
03/07/2018  08:56 PM    <DIR>          Lib
05/24/2018  10:50 AM             1,575 local_setup.bat
03/07/2018  08:48 PM    <DIR>          opt
03/07/2018  08:51 PM    <DIR>          Scripts
03/07/2018  08:39 PM             3,720 setup.bat
03/07/2018  08:56 PM    <DIR>          share
03/07/2018  08:39 PM    <DIR>          src
03/07/2018  08:39 PM             2,527 _order_packages.py
               3 File(s)          7,822 bytes
              10 Dir(s)  363,746,091,008 bytes free
edit retag flag offensive close merge delete

Comments

Would you mind pasting the output of dir C:\, dir C:\dev, and dir C:\dev\ros2 ? Also, in general posting text is preferred over an image. Search engines don't yet scan images for text when indexing, so questions as images aren't found by others with the same issue later.

sloretz gravatar imagesloretz ( 2018-05-24 11:38:26 -0600 )edit

Here's the output of those commands: https://pastebin.com/dnsYDvgQ

The picture I took showed the output of the command line as described above, and in the background the Windows file explorer showing the location of the file the script says is missing. It's not the plaintext output of the command.

EliteMasterEric gravatar imageEliteMasterEric ( 2018-05-24 12:11:33 -0600 )edit