-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
I installed xeus-cling
with xwidgets
inside a JupyterLab like that:
mamba install -y -c conda-forge xeus-cling xwidgets
xeus-cling
itself works well so far. However, running those two lines in a notebook results in the following error:
#include <xwidgets/xslider.hpp>
xw::slider<double> slider;
IncrementalExecutor::executeFunction: symbol '_ZNK2xw7xcommon10same_patchERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorS6_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEERKSD_ISD_IcS5_ESaISK_EESJ_SO_' unresolved while linking function '_GLOBAL__sub_I_cling_module_6'!
You are probably missing the definition of xw::xcommon::same_patch(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, std::vector<std::vector<char, std::allocator<char> >, std::allocator<std::vector<char, std::allocator<char> > > > const&, nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const&, std::vector<std::vector<char, std::allocator<char> >, std::allocator<std::vector<char, std::allocator<char> > > > const&) const
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZNK2xw7xcommon10send_patchEON8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEEOS5_IS5_IcSA_ESaISH_EEPKc' unresolved while linking function '_GLOBAL__sub_I_cling_module_6'!
You are probably missing the definition of xw::xcommon::send_patch(nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&&, std::vector<std::vector<char, std::allocator<char> >, std::allocator<std::vector<char, std::allocator<char> > > >&&, char const*) const
Maybe you need to load the corresponding shared library?
I've noticed in the README that xwidget
package is dependent on nlohmann_json<3.10
. However, mamba installs nlohmann_json=3.11.3
. Manually setting the json package to <3.10 also doesn't work as a lot of other xeus packages require a version >3.10 which results in unsolvable dependency conflicts.
What is the right workflow to make xwidgets
work with xeus-cling
?
FabianThomsen
Metadata
Metadata
Assignees
Labels
No labels