alphaville / optimization-engine

Nonconvex embedded optimization: code generation for fast real-time optimization + ROS support
https://alphaville.github.io/optimization-engine/
Other
512 stars 53 forks source link

Direct interface issue on Windows 10 #255

Closed alphaville closed 2 years ago

alphaville commented 2 years ago

Describe the bug

There is an issue with the direct interface on Windows.

To Reproduce

Use .with_build_python_bindings as discussed here

System information:

Additional context

The following error messages are produced:

Traceback (most recent call last):
  File ".\opengen\main.py", line 28, in <module>
    builder.build()
  File "C:\Users\**\PycharmProjects\clone_OpEn\optimization-engine\venv\lib\site-packages\opengen\builder\optimizer_builder.py", line 702, in build
    self.__build_python_bindings()
  File "C:\Users\**\PycharmProjects\clone_OpEn\optimization-engine\venv\lib\site-packages\opengen\builder\optimizer_builder.py", line 472, in __build_python_bindings
    shutil.copyfile(generated_bindings, target_bindings)
  File "C:\Users\**\AppData\Local\Programs\Python\Python38\lib\shutil.py", line 264, in copyfile
    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\*\\PycharmProjects\\clone_OpEn\\optimization-engine\\open-codegen\\my_optimizers\\rosenbrock\\python_bindings_rosenbrock\\target\\debug\\librosenbrock.dll'