Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking errors with conda/mamba version #260

Open
akloeker opened this issue Mar 21, 2024 · 0 comments
Open

Linking errors with conda/mamba version #260

akloeker opened this issue Mar 21, 2024 · 0 comments

Comments

@akloeker
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant