mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
added a faq entry about import issues
This commit is contained in:
parent
90d2f5e2fc
commit
50ed3614de
13
docs/faq.rst
13
docs/faq.rst
@ -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
|
||||||
=========================================
|
=========================================
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user