Replies: 1 comment
-
I tried how ChatGPT and Claude would respond to this. Claude did better here. The full answer had 5 points, but I think it nailed it in the first one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a module and it seems to import and run with no problems when I start a bash shell in the build folder, however I do not seem to be able to import it with a Python script.
This is my current import statement which I found from this https://www.geeksforgeeks.org/python-import-module-from-different-directory/
However I get the error "Unable to import 'return_thermal_data'" I have also attempted to place the Python file directly in the build folder but this has not worked either.
Here is the nanobind_add_module statement from CMakeLists.txt
nanobind_add_module(return_thermal_data return_thermal_data.cpp)
And here is the NB_MODULE statement in the CSS
As far as I can tell the Nanobind docs only demo using modules via the Python shell. Is it possible to use them with Pythons scripts, or is there another tools I should use to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions