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
terminate called after throwing an instance of 'pybind11::cast_error' what(): return_value_policy = copy, but type is non-copyable! (#define PYBIND11_DETAILED_ERROR_MESSAGES or compile in debug mode for details) Aborted (core dumped)
#45
0.843 0
terminate called after throwing an instance of 'pybind11::cast_error'
what(): return_value_policy = copy, but type is non-copyable! (#define PYBIND11_DETAILED_ERROR_MESSAGES or compile in debug mode for details)
Aborted (core dumped)
Afect version
0.3.0 (after adopting the newer version of Pybind11)
Note:
The command went through and took effect.
The text was updated successfully, but these errors were encountered:
Hi @wangyanbao666, thanks for your interests in this issue. The pybind version is v2.9.2. (Note that the build process uses the pybind source code directly at /deps/pybind11 (pybind11 @ 338d615,) for more detailed about build, please see Notes-on-Packaging.md.
As a walkaround, you may try dnp3-py < 0.3.0 (i.e., pip install dnp3-python==0.2.3b3), which support python 2.8, 3.9, 3.10.
The root cause of this issue is the pybind11 being used does not support the C++ source code (i.e., dnp3 @ 7d84673) after Python 3.11. Note that the elements play essential roles here are C++ Opendnp3 code, pybind11, cmake, python, and ancilary biding code. The solution might require either updating the Opendnp3 C++ source code (along with ancillary binding code) or utilizing a suitable pybind11 that is compatible with both Python 3.11 (along with the cmake version) which can properly interpret the C++ code.
@zagor, thanks for sharing the fix. It works on my end.
@craig8, I verified the fix on py3.11 py3.10 (PR: #47)
Note: for a complete PR, we need to update the pybind11 submodule tag (PR: VOLTTRON/pybind11#10)
======== Your Input Here: ==(Master-)======
0.843 0
terminate called after throwing an instance of 'pybind11::cast_error'
what(): return_value_policy = copy, but type is non-copyable! (#define PYBIND11_DETAILED_ERROR_MESSAGES or compile in debug mode for details)
Aborted (core dumped)
Afect version
0.3.0 (after adopting the newer version of Pybind11)
Note:
The command went through and took effect.
The text was updated successfully, but these errors were encountered: