Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File not found error while building ROS node on Windows #360

Open
SammyGlanville opened this issue Oct 14, 2024 · 1 comment · May be fixed by #361
Open

File not found error while building ROS node on Windows #360

SammyGlanville opened this issue Oct 14, 2024 · 1 comment · May be fixed by #361
Assignees
Labels
bug Something isn't working python issue related to python ros Robot Operating System

Comments

@SammyGlanville
Copy link

SammyGlanville commented Oct 14, 2024

Traceback (most recent call last):
  File "C:\Users\Samst\PycharmProjects\ROS_test\main.py", line 37, in <module>
    builder.build()
  File "C:\Users\Samst\PycharmProjects\ROS_test\.venv\Lib\site-packages\opengen\builder\optimizer_builder.py", line 867, in build
    ros_builder.build()
  File "C:\Users\Samst\PycharmProjects\ROS_test\.venv\Lib\site-packages\opengen\builder\ros_builder.py", line 215, in build
    self.__copy__ros_files()              # Copy certain files
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Samst\PycharmProjects\ROS_test\.venv\Lib\site-packages\opengen\builder\ros_builder.py", line 123, in __copy__ros_files
    shutil.copyfile(original_lib_file, target_lib_file_name)
  File "C:\Users\Samst\AppData\Local\Programs\Python\Python312\Lib\shutil.py", line 260, in copyfile
    with open(src, 'rb') as fsrc:
         ^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Samst\\PycharmProjects\\ROS_test\\my_optimizers\\rosenbrock\\target\\release\\librosenbrock.a'

im using windows, and when i go to where 'librosenbrock.a' should be it isnt there ive got:

rosenbrock.pdb
rosenbrock.lib
rosenbrock.dll.lib
rosenbrock.dll.exp
rosenbrock.dll
rosenbrock.d
librosenbrock.rlib
librosenbrock.d
.cargo-lock
@alphaville alphaville changed the title file not found error File not found error while building ROS node on Windows Oct 14, 2024
@alphaville alphaville added bug Something isn't working python issue related to python ros Robot Operating System labels Oct 14, 2024
@alphaville alphaville self-assigned this Oct 14, 2024
@alphaville
Copy link
Owner

@SammyGlanville, thank you for reporting this. This is because you're trying to generate a ROS node on Windows. ROS (v1) doesn't run on Windows, but one may still need to generate a ROS node, move it to an embedded device and compile there. I will fix this so that it runs on Windows, but:

  • The user will have to compile their optimiser on the target device
  • File librosenbrock.a will be missing
  • A warning will be given

@alphaville alphaville linked a pull request Oct 14, 2024 that will close this issue
5 tasks
alphaville added a commit that referenced this issue Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python issue related to python ros Robot Operating System
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@alphaville @SammyGlanville and others