Open cagBRT opened 5 years ago
Do you have xtl installed?
Thank you for the prompt reply!
I checked ,,, it is installed
How did you install xeus-cling, and xtensor?
I followed these directions: https://github.com/QuantStack/xeus-cling
conda create -n cling
conda activate cling # Or source activate cling
for conda < 4.6
conda install xeus-cling -c conda-forge
And I followed these directions from here: https://github.com/QuantStack/xtensor
conda install -c conda-forge xtensor
I am following this tutorial : https://hub.gke.mybinder.org/user/quantstack-xeus-cling-j9y4f82k/notebooks/notebooks/xcpp.ipynb#
everything worked until I got to xtensor
Okay, that seems correct. If you could post the result of conda list
it would be great.
Also, note that C++14 is required for xtensor (the C++11 kernel will not work.)
Thank you again for the very fast reply! I may have the wrong c++ version - I will make sure I have c++14 .
The result of conda list is shown below.
ca-certificates 2019.6.16 hecc5488_0 conda-forge clang_variant 1.0 cling_6.14.06 conda-forge clangdev 5.0.0 h412da45_1004 conda-forge cling 0.5 h5c9b4e4_1005 conda-forge cppzmq 4.3.0 h770b8ee_1001 conda-forge icu 58.2 h0a44026_1000 conda-forge libcxx 8.0.0 4 conda-forge libcxxabi 8.0.0 4 conda-forge libiconv 1.15 h01d97ff_1005 conda-forge libsodium 1.0.17 h01d97ff_0 conda-forge libxml2 2.9.9 hd80cff7_1 conda-forge nlohmann_json 3.6.1 h6de7cb9_0 conda-forge openssl 1.1.1c h01d97ff_0 conda-forge xeus 0.20.0 h770b8ee_1 conda-forge xeus-cling 0.6.0 h2dec4b4_1 conda-forge xtensor 0.20.8 h770b8ee_0 conda-forge xtl 0.6.5 h770b8ee_0 conda-forge xz 5.2.4 h1de35cc_1001 conda-forge zeromq 4.3.2 h6de7cb9_1 conda-forge zlib 1.2.11 h1de35cc_1004 conda-forge
I may have the wrong c++ version - I will make sure I have c++14 .
It is just the type of kernel that you use...
The jupyter notebook says c++14
i face the same problem
i also added
but no luck.
please advice.
thanks.
===
SOLVED
it works after i changed to
and restart the notebook.
remember to do this too
conda install xtensor-blas -c conda-forge
thanks.
I am confused at how this fixes the issue (which we are not reproducing so far)
Okay, that seems correct. If you could post the result of
conda list
it would be great.Also, note that C++14 is required for xtensor (the C++11 kernel will not work.)
Many thanks, @SylvainCorlay! It done well with my case. I am not very sure that my problem is same as the question. I was stuck on compiling my C++ program included "xtensor" after installing it correctly by conda. Follow your instruction, I used "g++" to compile the code and select option "-std=gnu++14" instead of "-std=gnu++11". Tada, solved!
Can someone tell me what I am doing wrong?
I am trying to run this code in a jupyter notebook:
And I am getting these errors:
`In file included from input_line_8:2: In file included from ./xtensor/xarray.hpp:19: In file included from ./xtensor/xcontainer.hpp:23: In file included from ./xtensor/xmath.hpp:25: In file included from ./xtensor/xaccumulator.hpp:17: ./xtensor/xexpression.hpp:505:9: error: no member named 'constify_t' in namespace 'xtl' XTENSOR_FORWARD_CONST_METHOD(shape) ^>().name()...
~~~~~~~~~~ ./xtensor/xexpression.hpp:355:39: note: expanded from macro 'XTENSOR_FORWARD_CONST_METHOD' -> decltype(std::declval<xtl::constify_t