You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been looking for ways to get some rust-based code to play nicely with a bunch of python-based ROS 2 (Foxy) code. Given that the last I checked, official ROS2 bindings were not quite working for rust, I thought I might be able to wrap up the rust code (which is really standalone) I had into a single module, and then create bindings for it with PyO3. That way, after building, I could simply import the rust library within python and use ROS 2 at that point.
I created a super-simple test package.
I have gotten it to work when cd-ing into the package and running python3 setup.py bdist_wheel, and it does indeed generate the required .so files, which work correctly from within python.
However, when I execute colcon build --symlink-install --packages-select rust_test, it fails with the following error:
From what I see, without knowing too much about colcon itself, is that the package data object seems to have something unexpected as a result of the additional logic, and it isn't being handled once it is received. Alternatively, I have sometimes noticed similar errors when setuptools extensions create stdout, but I am not sure that this is the same thing. In any case, does this seem like something that can be handled, or is it outside of scope for this repo/project?
Thanks!
[Update] I found that the setuptools_rust package allows a quiet flag, so I tested this in case the stdout was causing an issue. However, this seemed to make no difference and the error was the same.
The text was updated successfully, but these errors were encountered:
From what I see, without knowing too much about colcon itself, is that the package data object seems to have something unexpected as a result of the additional logic, and it isn't being handled once it is received.
Correct, the rust_extensions contain a complex object of type setuptools_rust.extension.RustExtension which the current code isn't able to serialize / deserialize. The underlying problem is the same as in #33 and therefore I will close this ticket as a duplicate.
Eventually on of the pending PRs (#34 or #35) will remove this limitation in the future.
Sorry in advance if this belongs in another repo.
I have been looking for ways to get some rust-based code to play nicely with a bunch of python-based ROS 2 (Foxy) code. Given that the last I checked, official ROS2 bindings were not quite working for rust, I thought I might be able to wrap up the rust code (which is really standalone) I had into a single module, and then create bindings for it with PyO3. That way, after building, I could simply import the rust library within python and use ROS 2 at that point.
I created a super-simple test package.
I have gotten it to work when
cd
-ing into the package and runningpython3 setup.py bdist_wheel
, and it does indeed generate the required.so
files, which work correctly from within python.However, when I execute
colcon build --symlink-install --packages-select rust_test
, it fails with the following error:From what I see, without knowing too much about colcon itself, is that the package data object seems to have something unexpected as a result of the additional logic, and it isn't being handled once it is received. Alternatively, I have sometimes noticed similar errors when setuptools extensions create stdout, but I am not sure that this is the same thing. In any case, does this seem like something that can be handled, or is it outside of scope for this repo/project?
Thanks!
[Update] I found that the
setuptools_rust
package allows aquiet
flag, so I tested this in case the stdout was causing an issue. However, this seemed to make no difference and the error was the same.The text was updated successfully, but these errors were encountered: