Commit 50ed3614 by Wenzel Jakob

added a faq entry about import issues

parent 90d2f5e2
...@@ -3,6 +3,19 @@ Frequently asked questions ...@@ -3,6 +3,19 @@ Frequently asked questions
(under construction) (under construction)
ImportError: dynamic module does not define init function
=========================================================
1. Make sure that the name specified in ``pybind::module`` and
``PYBIND11_PLUGIN`` is consistent and identical to the filename of the
extension library. The latter should not contain any extra prefixes (e.g.
``test.so`` instead of ``libtest.so``).
2. If the above did not fix your issue, then you are likely using an
incompatible version of Python (for instance, the extension library was
compiled against Python 2, while the interpreter is running on top of some
version of Python 3)
Limitations involving reference arguments Limitations involving reference arguments
========================================= =========================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment