keyword change in "Importing modules" section #3714
mohammadpasha
started this conversation in
General
Replies: 1 comment
-
I think you have an old version of pybind11. We renamed |
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
-
on https://pybind11.readthedocs.io/en/stable/advanced/embedding.html which explains importing modules needs a correction.
py::module_ should be py::module . It gave compile time errors.
Compiler output:
error: no member named 'module_' in namespace 'pybind11'; did you mean 'module'?
py::module_ sys = py::module_::import("sys");
~~~~^~~~~~~
module
/usr/include/pybind11/pybind11.h:783:7: note: 'module' declared here
class module : public object {
Beta Was this translation helpful? Give feedback.
All reactions