robotology / robotology-superbuild

CMake/YCM-based superbuild to simplify the build process of robotology projects.
49 stars 48 forks source link

Error: when run tutorial (Motor Control Interfaces in Python) yarp did not import #1649

Closed 16239014 closed 5 months ago

16239014 commented 5 months ago

Installed Robotology-Superbuild from source with Conda Forge.

Now i am trying to run an example: https://robotology.github.io/robotology-documentation/doc/html/icub_python_basic_motor.html But when i try to run this code of Python, i get error.

I installed the spyder (python software) in RobSub environment (in which robotology-superbuild installed)

ERROR LOG:

runfile('/home/sohail/Desktop/python folder for thesis/untitled0.py', wdir='/home/sohail/Desktop/python folder for thesis') Traceback (most recent call last):

File "", line 1, in runfile('/home/sohail/Desktop/python folder for thesis/untitled0.py', wdir='/home/sohail/Desktop/python folder for thesis')

File "/usr/lib/python3/dist-packages/spyder_kernels/customize/spydercustomize.py", line 827, in runfile execfile(filename, namespace)

File "/usr/lib/python3/dist-packages/spyder_kernels/customize/spydercustomize.py", line 110, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "/home/sohail/Desktop/python folder for thesis/untitled0.py", line 2, in import yarp

File "/home/sohail/robotology-superbuild/build/install/lib/python3.12/site-packages/yarp.py", line 15, in import _yarp

ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/sohail/robotology-superbuild/build/install/lib/python3.12/site-packages/_yarp.so)

traversaro commented 5 months ago

It seems like for some reason spyder is not using the conda environment, and so the system libstdc++.so.6 library is used instead of

Can you first try if python -c "import yarp" works fine in a terminal in which you just call:

conda activate robsub
source /home/sohail/robotology-superbuild/build/install/share/robotology-superbuild/setup.sh
python -c "import yarp"

If that indeed works, the problem depends on spyder.

Can you please also report the output of conda list in your environment? Thanks!

16239014 commented 5 months ago

conda activate robsub source /home/sohail/robotology-superbuild/build/install/share/robotology-superbuild/setup.sh python -c "import yarp" LOG: (base) sohail@sohail-Lenovo-V14-G3-IAP:~$ conda activate robsub (robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ source /home/sohail/robotology-superbuild/build/install/share/robotology-superbuild/setup.sh (robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ pyhton -c "import yarp" pyhton: command not found (robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ python -c "import yarp" (robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ spyder

Can you please also report the output of conda list in your environment? Thanks!

(robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ conda list

packages in environment at /home/sohail/anaconda3/envs/robsub:

#

Name Version Build Channel

_libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge _sysroot_linux-64_curr_repodata_hack 3 h69a702a_14 conda-forge ace 7.1.3 h59595ed_2 conda-forge aiohttp 3.9.3 py312h98912ed_1 conda-forge aiosignal 1.3.1 pyhd8ed1ab_0 conda-forge alsa-lib 1.2.11 hd590300_1 conda-forge ampl-mp 3.1.0 h2cc385e_1006 conda-forge aom 3.7.1 h59595ed_0 conda-forge asio 1.29.0 h59595ed_0 conda-forge assimp 5.3.1 hfb0e8fe_2 conda-forge asttokens 2.4.1 pyhd8ed1ab_0 conda-forge atk-1.0 2.38.0 hd4edc92_1 conda-forge attr 2.5.1 h166bdaf_1 conda-forge attrs 23.2.0 pyh71513ae_0 conda-forge aws-c-auth 0.7.16 haed3651_8 conda-forge aws-c-cal 0.6.10 ha9bf9b1_2 conda-forge aws-c-common 0.9.14 hd590300_0 conda-forge aws-c-compression 0.2.18 h4466546_2 conda-forge aws-c-event-stream 0.4.2 he635cd5_6 conda-forge aws-c-http 0.8.1 hbfc29b2_7 conda-forge aws-c-io 0.14.6 h96cd748_2 conda-forge aws-c-mqtt 0.10.3 hffff1cc_2 conda-forge aws-c-s3 0.5.5 h4893938_0 conda-forge aws-c-sdkutils 0.1.15 h4466546_2 conda-forge aws-checksums 0.1.18 h4466546_2 conda-forge aws-crt-cpp 0.26.4 h58a74b7_3 conda-forge aws-sdk-cpp 1.11.267 hb1af6a8_4 conda-forge azure-core-cpp 1.11.1 h91d86a7_1 conda-forge azure-storage-blobs-cpp 12.10.0 h00ab1b0_1 conda-forge azure-storage-common-cpp 12.5.0 h94269e2_4 conda-forge bash-completion 2.11 ha770c72_1 conda-forge binutils 2.40 hdd6e379_0 conda-forge binutils_impl_linux-64 2.40 hf600244_0 conda-forge binutils_linux-64 2.40 hdade7a5_3 conda-forge blosc 1.21.5 h0f2a231_0 conda-forge boost 1.82.0 h8da182e_6 conda-forge brotli 1.1.0 hd590300_1 conda-forge brotli-bin 1.1.0 hd590300_1 conda-forge bullet-cpp 3.25 hfb8ada1_2 conda-forge bzip2 1.0.8 hd590300_5 conda-forge c-ares 1.28.1 hd590300_0 conda-forge c-compiler 1.7.0 hd590300_0 conda-forge ca-certificates 2024.2.2 hbcca054_0 conda-forge cached-property 1.5.2 hd8ed1ab_1 conda-forge cached_property 1.5.2 pyha770c72_1 conda-forge cairo 1.18.0 h3faef2a_0 conda-forge certifi 2024.2.2 pyhd8ed1ab_0 conda-forge cfitsio 4.3.0 hbdc6101_0 conda-forge cmake 3.28.3 hcfe8598_0 conda-forge compilers 1.7.0 ha770c72_0 conda-forge console_bridge 1.0.2 h924138e_1 conda-forge contourpy 1.2.0 py312h8572e83_0 conda-forge cppzmq 4.10.0 h2e2a08d_1 conda-forge cxx-compiler 1.7.0 h00ab1b0_0 conda-forge cycler 0.12.1 pyhd8ed1ab_0 conda-forge dartsim 6.13.1 h7abe67e_0 conda-forge dav1d 1.2.1 hd590300_0 conda-forge dbus 1.13.6 h5008d03_3 conda-forge decorator 5.1.1 pyhd8ed1ab_0 conda-forge double-conversion 3.3.0 h59595ed_0 conda-forge eigen 3.4.0 h00ab1b0_0 conda-forge exceptiongroup 1.2.0 pyhd8ed1ab_2 conda-forge executing 2.0.1 pyhd8ed1ab_0 conda-forge expat 2.5.0 hcb278e6_1 conda-forge fcl 0.7.0 hadc09e8_4 conda-forge ffmpeg 6.1.1 gpl_h186bccc_100 conda-forge flann 1.9.2 h2b5ea80_0 conda-forge fmt 10.2.1 h00ab1b0_0 conda-forge font-ttf-dejavu-sans-mono 2.37 hab24e00_0 conda-forge font-ttf-inconsolata 3.000 h77eed37_0 conda-forge font-ttf-source-code-pro 2.038 h77eed37_0 conda-forge font-ttf-ubuntu 0.83 h77eed37_1 conda-forge fontconfig 2.14.2 h14ed4e7_0 conda-forge fonts-conda-ecosystem 1 0 conda-forge fonts-conda-forge 1 0 conda-forge fonttools 4.50.0 py312h98912ed_0 conda-forge fortran-compiler 1.7.0 heb67821_0 conda-forge freeglut 3.2.2 hac7e632_2 conda-forge freeimage 3.18.0 h4b96d29_20 conda-forge freetype 2.12.1 h267a509_2 conda-forge freexl 2.0.0 h743c826_0 conda-forge fribidi 1.0.10 h36c2ea0_0 conda-forge frozenlist 1.4.1 py312h98912ed_0 conda-forge gazebo 11.14.0 ha9d0770_4 conda-forge gcc 12.3.0 h95e488c_3 conda-forge gcc_impl_linux-64 12.3.0 he2b93b0_5 conda-forge gcc_linux-64 12.3.0 h6477408_3 conda-forge gdbm 1.18 h0a1914f_2 conda-forge gdk-pixbuf 2.42.10 h829c605_4 conda-forge geos 3.12.0 h59595ed_0 conda-forge geotiff 1.7.1 hf074850_14 conda-forge gettext 0.21.1 h27087fc_0 conda-forge gfortran 12.3.0 h7389182_3 conda-forge gfortran_impl_linux-64 12.3.0 hfcedea8_5 conda-forge gfortran_linux-64 12.3.0 h617cb40_3 conda-forge giflib 5.2.1 h0b41bf4_3 conda-forge gl2ps 1.4.2 h0708190_0 conda-forge glew 2.1.0 h9c3ff4c_2 conda-forge glfw 3.4 hd590300_0 conda-forge glib 2.78.1 hfc55251_0 conda-forge glib-networking 2.80.0 h2ef3c98_0 conda-forge glib-tools 2.78.1 hfc55251_0 conda-forge glm 0.9.9.8 h00ab1b0_0 conda-forge gmp 6.3.0 h59595ed_1 conda-forge gnutls 3.7.9 hb077bed_0 conda-forge graphite2 1.3.13 h59595ed_1003 conda-forge graphviz 9.0.0 h78e8752_1 conda-forge gsl 2.7 he838d99_0 conda-forge gst-plugins-bad 1.22.6 h06bf7ac_0 conda-forge gst-plugins-base 1.22.7 h8e1006c_0 conda-forge gst-plugins-good 1.22.7 h16e77d8_0 conda-forge gstreamer 1.22.7 h98fc4e7_0 conda-forge gtk2 2.24.33 h90689f9_2 conda-forge gts 0.7.6 h977cf35_4 conda-forge gxx 12.3.0 h95e488c_3 conda-forge gxx_impl_linux-64 12.3.0 he2b93b0_5 conda-forge gxx_linux-64 12.3.0 h4a1b8e8_3 conda-forge h5py 3.10.0 nompi_py312h1b477d7_101 conda-forge harfbuzz 8.3.0 h3d44ed6_0 conda-forge hdf4 4.2.15 h2a13503_7 conda-forge hdf5 1.14.3 nompi_h4f84152_100 conda-forge icu 73.2 h59595ed_0 conda-forge idna 3.6 pyhd8ed1ab_0 conda-forge imath 3.1.11 hfc55251_0 conda-forge ipopt 3.14.14 h04b96a2_1 conda-forge ipython 8.22.2 pyh707e725_0 conda-forge irrlicht 1.8.5 h2a6caf8_4 conda-forge jack 1.9.22 h7c63dc7_2 conda-forge jasper 4.2.3 he6dfbbe_0 conda-forge jedi 0.19.1 pyhd8ed1ab_0 conda-forge json-c 0.17 h7ab15ed_0 conda-forge jsoncpp 1.9.5 h4bd325d_1 conda-forge jxrlib 1.1 hd590300_3 conda-forge kealib 1.5.3 h2f55d51_0 conda-forge kernel-headers_linux-64 3.10.0 h4a8ded7_14 conda-forge keyutils 1.6.1 h166bdaf_0 conda-forge kiwisolver 1.4.5 py312h8572e83_1 conda-forge krb5 1.21.2 h659d440_0 conda-forge lame 3.100 h166bdaf_1003 conda-forge lcms2 2.16 hb7c19ff_0 conda-forge ld_impl_linux-64 2.40 h41732ed_0 conda-forge lerc 4.0.0 h27087fc_0 conda-forge libabseil 20230802.1 cxx17_h59595ed_0 conda-forge libaec 1.1.3 h59595ed_0 conda-forge libarchive 3.7.2 h2aa1ff5_1 conda-forge libass 0.17.1 h8fe9dca_1 conda-forge libblas 3.9.0 21_linux64_openblas conda-forge libboost 1.82.0 h6fcfa73_6 conda-forge libboost-devel 1.82.0 h00ab1b0_6 conda-forge libboost-headers 1.82.0 ha770c72_6 conda-forge libboost-python 1.82.0 py312hfb10629_6 conda-forge libboost-python-devel 1.82.0 py312h8da182e_6 conda-forge libbrotlicommon 1.1.0 hd590300_1 conda-forge libbrotlidec 1.1.0 hd590300_1 conda-forge libbrotlienc 1.1.0 hd590300_1 conda-forge libcap 2.69 h0f662aa_0 conda-forge libcblas 3.9.0 21_linux64_openblas conda-forge libccd-double 2.1 h59595ed_3 conda-forge libclang 15.0.7 default_h127d8a8_5 conda-forge libclang13 15.0.7 default_h5d6823c_5 conda-forge libcrc32c 1.1.2 h9c3ff4c_0 conda-forge libcups 2.3.3 h4637d8d_4 conda-forge libcurl 8.7.1 hca28451_0 conda-forge libdb 6.2.32 h9c3ff4c_0 conda-forge libdc1394 2.2.7 h59595ed_1 conda-forge libdeflate 1.19 hd590300_0 conda-forge libdrm 2.4.120 hd590300_0 conda-forge libdrm-cos7-x86_64 2.4.97 h9b0a68f_1105 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libev 4.33 hd590300_2 conda-forge libevent 2.1.12 hf998b51_1 conda-forge libexpat 2.5.0 hcb278e6_1 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libflac 1.4.3 h59595ed_0 conda-forge libgcc-devel_linux-64 12.3.0 h8bca6fd_105 conda-forge libgcc-ng 13.2.0 h807b86a_5 conda-forge libgcrypt 1.10.3 hd590300_0 conda-forge libgd 2.3.3 h119a65a_9 conda-forge libgdal 3.8.0 h0a992f2_2 conda-forge libgfortran-ng 13.2.0 h69a702a_5 conda-forge libgfortran5 13.2.0 ha4646dd_5 conda-forge libglib 2.78.1 hebfc3b9_0 conda-forge libglu 9.0.0 hac7e632_1003 conda-forge libglvnd-cos7-x86_64 1.0.1 h9b0a68f_1105 conda-forge libglvnd-glx-cos7-x86_64 1.0.1 h9b0a68f_1105 conda-forge libgomp 13.2.0 h807b86a_5 conda-forge libgoogle-cloud 2.17.0 h884d01b_1 conda-forge libgoogle-cloud-storage 2.17.0 hc7a4891_1 conda-forge libgpg-error 1.48 h71f35ed_0 conda-forge libgrpc 1.59.3 hd6c4280_0 conda-forge libhwloc 2.9.3 default_h554bfaf_1009 conda-forge libi2c 4.3 hcb278e6_2 conda-forge libiconv 1.17 hd590300_2 conda-forge libidn2 2.3.7 hd590300_0 conda-forge libignition-cmake2 2.16.0 hcb278e6_1 conda-forge libignition-common3 3.15.1 h1f55927_2 conda-forge libignition-fuel-tools4 4.6.0 h5a9a538_5 conda-forge libignition-math6 6.15.1 py312h365505f_1 conda-forge libignition-msgs5 5.11.0 h9d4af1c_4 conda-forge libignition-tools1 1.5.0 h1caa08d_3 conda-forge libignition-transport8 8.4.0 h1412f4e_7 conda-forge libjpeg-turbo 3.0.0 hd590300_1 conda-forge libkml 1.3.0 h01aab08_1018 conda-forge liblapack 3.9.0 21_linux64_openblas conda-forge liblapacke 3.9.0 21_linux64_openblas conda-forge libllvm15 15.0.7 hb3ce162_4 conda-forge libmatio 1.5.26 h31675a7_0 conda-forge libnetcdf 4.9.2 nompi_h9612171_113 conda-forge libnghttp2 1.58.0 h47da74e_1 conda-forge libnsl 2.0.1 hd590300_0 conda-forge libode 0.16.2 h30efb56_14 conda-forge libogg 1.3.4 h7f98852_1 conda-forge libopenblas 0.3.26 pthreads_h413a1c8_0 conda-forge libopencv 4.8.1 py312hed1d938_5 conda-forge libopenvino 2023.1.0 h59595ed_2 conda-forge libopenvino-auto-batch-plugin 2023.1.0 h59595ed_2 conda-forge libopenvino-auto-plugin 2023.1.0 h59595ed_2 conda-forge libopenvino-hetero-plugin 2023.1.0 h59595ed_2 conda-forge libopenvino-intel-cpu-plugin 2023.1.0 h59595ed_2 conda-forge libopenvino-intel-gpu-plugin 2023.1.0 h59595ed_2 conda-forge libopenvino-ir-frontend 2023.1.0 h59595ed_2 conda-forge libopenvino-onnx-frontend 2023.1.0 h59595ed_2 conda-forge libopenvino-paddle-frontend 2023.1.0 h59595ed_2 conda-forge libopenvino-pytorch-frontend 2023.1.0 h59595ed_2 conda-forge libopenvino-tensorflow-frontend 2023.1.0 h59595ed_2 conda-forge libopenvino-tensorflow-lite-frontend 2023.1.0 h59595ed_2 conda-forge libopus 1.3.1 h7f98852_1 conda-forge libpciaccess 0.18 hd590300_0 conda-forge libpng 1.6.43 h2797004_0 conda-forge libpq 16.2 h33b98f1_1 conda-forge libprotobuf 4.24.4 hf27288f_0 conda-forge libpsl 0.21.2 h3253dac_2 conda-forge libraw 0.21.1 h2a13503_2 conda-forge libre2-11 2023.09.01 h7a70373_1 conda-forge librsvg 2.56.3 he3f83f7_1 conda-forge librttopo 1.1.0 hb58d41b_14 conda-forge libsanitizer 12.3.0 h0f45ef3_5 conda-forge libscotch 7.0.4 h91e35bf_1 conda-forge libsdformat 9.8.0 h5809292_5 conda-forge libselinux-cos7-x86_64 2.5 h9b0a68f_1105 conda-forge libsepol-cos7-x86_64 2.5 h9b0a68f_1105 conda-forge libsndfile 1.2.2 hc60ed4a_1 conda-forge libsodium 1.0.18 h36c2ea0_1 conda-forge libsoup 3.4.4 hb337396_0 conda-forge libspatialite 5.1.0 h090f1da_1 conda-forge libspral 2023.09.07 h6aa6db2_2 conda-forge libsqlite 3.45.2 h2797004_0 conda-forge libssh2 1.11.0 h0841786_0 conda-forge libstdcxx-devel_linux-64 12.3.0 h8bca6fd_105 conda-forge libstdcxx-ng 13.2.0 h7e041cc_5 conda-forge libsystemd0 255 h3516f8a_1 conda-forge libtar 1.2.20 h7f98852_1004 conda-forge libtasn1 4.19.0 h166bdaf_0 conda-forge libtheora 1.1.1 h7f98852_1005 conda-forge libtiff 4.6.0 ha9c0a0a_2 conda-forge libudev1 255 h3f72095_1 conda-forge libunistring 0.9.10 h7f98852_0 conda-forge libusb 1.0.27 h520f47e_100 conda-forge libuuid 2.38.1 h0b41bf4_0 conda-forge libuv 1.48.0 hd590300_0 conda-forge libva 2.21.0 hd590300_0 conda-forge libvorbis 1.3.7 h9c3ff4c_0 conda-forge libvpx 1.13.1 h59595ed_0 conda-forge libwebp 1.3.2 h658648e_1 conda-forge libwebp-base 1.3.2 hd590300_0 conda-forge libxcb 1.15 h0b41bf4_0 conda-forge libxcrypt 4.4.36 hd590300_1 conda-forge libxkbcommon 1.7.0 h662e7e4_0 conda-forge libxml2 2.12.6 h232c23b_1 conda-forge libxshmfence-cos7-x86_64 1.2 h9b0a68f_1105 conda-forge libxshmfence-devel-cos7-x86_64 1.2 h9b0a68f_1105 conda-forge libzip 1.10.1 h2629f0a_3 conda-forge libzlib 1.2.13 hd590300_5 conda-forge loguru 0.7.2 py312h7900ff3_1 conda-forge lua 5.4.6 h9627803_0 conda-forge lz4-c 1.9.4 hcb278e6_0 conda-forge lzo 2.10 h516909a_1000 conda-forge make 4.3 hd18ef5c_1 conda-forge matplotlib 3.8.3 py312h7900ff3_0 conda-forge matplotlib-base 3.8.3 py312he5832f3_0 conda-forge matplotlib-inline 0.1.6 pyhd8ed1ab_0 conda-forge mesa-khr-devel-cos7-x86_64 18.3.4 h9b0a68f_1105 conda-forge mesa-libgl-cos7-x86_64 18.3.4 h9b0a68f_1105 conda-forge mesa-libgl-devel-cos7-x86_64 18.3.4 h9b0a68f_1105 conda-forge mesa-libglapi-cos7-x86_64 18.3.4 h9b0a68f_1105 conda-forge metis 5.1.0 h59595ed_1007 conda-forge minizip 4.0.5 h0ab5242_0 conda-forge mpg123 1.32.4 h59595ed_0 conda-forge multidict 6.0.5 py312h98912ed_0 conda-forge mumps-include 5.6.2 ha770c72_4 conda-forge mumps-seq 5.6.2 hfef103a_4 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge mysql-common 8.0.33 hf1915f5_6 conda-forge mysql-libs 8.0.33 hca2cd23_6 conda-forge ncurses 6.4.20240210 h59595ed_0 conda-forge nettle 3.9.1 h7ab15ed_0 conda-forge ninja 1.11.1 h924138e_0 conda-forge nlohmann_json 3.11.3 h59595ed_0 conda-forge nspr 4.35 h27087fc_0 conda-forge nss 3.98 h1d7d5a4_0 conda-forge numpy 1.26.4 py312heda63a1_0 conda-forge ocl-icd 2.3.2 hd590300_1 conda-forge ocl-icd-system 1.0.0 1 conda-forge octomap 1.9.8 h924138e_0 conda-forge ogre 1.10.12.1 hb5e08f3_0 conda-forge onnxruntime-cpp 1.17.1 h9322a40_2_cpu conda-forge openal-soft 1.22.2 h00ab1b0_0 conda-forge opencv 4.8.1 py312h74ac831_5 conda-forge openexr 3.2.2 haf962dd_1 conda-forge openh264 2.4.0 h59595ed_0 conda-forge openjpeg 2.5.2 h488ebb8_0 conda-forge openssl 3.2.1 hd590300_1 conda-forge p11-kit 0.24.1 hc5aa10d_0 conda-forge packaging 24.0 pyhd8ed1ab_0 conda-forge pango 1.50.14 ha41ecd1_2 conda-forge parso 0.8.3 pyhd8ed1ab_0 conda-forge pcl 1.14.0 h4836831_0 conda-forge pcre2 10.40 hc3806b6_0 conda-forge pexpect 4.9.0 pyhd8ed1ab_0 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 10.3.0 py312hdcec9eb_0 conda-forge pip 24.0 pyhd8ed1ab_0 conda-forge pixman 0.43.2 h59595ed_0 conda-forge pkg-config 0.29.2 h36c2ea0_1008 conda-forge ply 3.11 py_1 conda-forge poppler 23.11.0 h590f24d_0 conda-forge poppler-data 0.4.12 hd8ed1ab_0 conda-forge portaudio 19.6.0 h7c63dc7_9 conda-forge postgresql 16.2 h82ecc9d_1 conda-forge proj 9.3.0 h1d62c97_2 conda-forge prompt-toolkit 3.0.42 pyha770c72_0 conda-forge pthread-stubs 0.4 h36c2ea0_1001 conda-forge ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge pugixml 1.14 h59595ed_0 conda-forge pulseaudio-client 16.1 hb77b528_5 conda-forge pure_eval 0.2.2 pyhd8ed1ab_0 conda-forge py-opencv 4.8.1 py312h0af958d_5 conda-forge pybind11 2.12.0 py312h8572e83_0 conda-forge pybind11-abi 4 hd8ed1ab_3 conda-forge pybind11-global 2.12.0 py312h8572e83_0 conda-forge pygments 2.17.2 pyhd8ed1ab_0 conda-forge pyparsing 3.1.2 pyhd8ed1ab_0 conda-forge pyqt 5.15.9 py312h949fe66_5 conda-forge pyqt5-sip 12.12.2 py312h30efb56_5 conda-forge python 3.12.2 hab00c5b_0_cpython conda-forge python-dateutil 2.9.0 pyhd8ed1ab_0 conda-forge python_abi 3.12 4_cp312 conda-forge pyzmq 25.1.2 py312h886d080_0 conda-forge qhull 2020.2 h4bd325d_2 conda-forge qt-main 5.15.8 h82b777d_17 conda-forge qwt 6.2.0 h1a478b3_6 conda-forge re2 2023.09.01 h7f4b329_1 conda-forge readline 8.2 h8228510_1 conda-forge rhash 1.4.4 hd590300_0 conda-forge ruby 3.2.2 h983345b_1 conda-forge s2n 1.4.8 h06160fa_0 conda-forge scotch 7.0.4 h23d43cc_1 conda-forge sdl 1.2.68 h293081c_0 conda-forge sdl2 2.28.5 h77f46ba_0 conda-forge sentinel 1.0.0 pypi_0 pypi setuptools 69.2.0 pyhd8ed1ab_0 conda-forge simbody 3.7 h64f3f5a_3 conda-forge sip 6.7.12 py312h30efb56_0 conda-forge six 1.16.0 pyh6c4a22f_0 conda-forge snappy 1.1.10 h9fff704_0 conda-forge soxr 0.1.3 h0b41bf4_3 conda-forge spdlog 1.12.0 hd2e6256_2 conda-forge sqlite 3.45.2 h2c6b66d_0 conda-forge stack_data 0.6.2 pyhd8ed1ab_0 conda-forge svt-av1 1.8.0 h59595ed_0 conda-forge swig 4.1.0 h5d7ef5f_4 conda-forge sysroot_linux-64 2.17 h4a8ded7_14 conda-forge tbb 2021.11.0 h00ab1b0_1 conda-forge tbb-devel 2021.11.0 h5ccd973_1 conda-forge tiledb 2.16.3 hf0b6e87_3 conda-forge tinyxml 2.6.2 h4bd325d_2 conda-forge tinyxml2 9.0.0 h9c3ff4c_2 conda-forge tk 8.6.13 noxft_h4845f30_101 conda-forge toml 0.10.2 pyhd8ed1ab_0 conda-forge tomli 2.0.1 pyhd8ed1ab_0 conda-forge tomlplusplus 3.3.0 hcb278e6_0 conda-forge tornado 6.4 py312h98912ed_0 conda-forge traitlets 5.14.2 pyhd8ed1ab_0 conda-forge typing_extensions 4.10.0 pyha770c72_0 conda-forge tzcode 2024a h3f72095_0 conda-forge tzdata 2024a h0c530f3_0 conda-forge u-msgpack-python 2.8.0 pyhd8ed1ab_0 conda-forge unixodbc 2.3.12 h661eb56_0 conda-forge urdfdom 3.1.1 h8a9b4ce_0 conda-forge urdfdom_headers 1.1.1 h00ab1b0_0 conda-forge uriparser 0.9.7 h59595ed_1 conda-forge utfcpp 4.0.5 ha770c72_0 conda-forge vtk 9.2.6 qt_py312h1234567_219 conda-forge vtk-base 9.2.6 qt_py312h1234567_219 conda-forge vtk-io-ffmpeg 9.2.6 qt_py312h1234567_219 conda-forge wayland 1.22.0 h8c25dac_1 conda-forge wcwidth 0.2.13 pyhd8ed1ab_0 conda-forge wheel 0.43.0 pyhd8ed1ab_1 conda-forge wslink 1.12.4 pyhd8ed1ab_0 conda-forge x264 1!164.3095 h166bdaf_2 conda-forge x265 3.5 h924138e_3 conda-forge xcb-util 0.4.0 hd590300_1 conda-forge xcb-util-image 0.4.0 h8ee46fc_1 conda-forge xcb-util-keysyms 0.4.0 h8ee46fc_1 conda-forge xcb-util-renderutil 0.3.9 hd590300_1 conda-forge xcb-util-wm 0.4.1 h8ee46fc_1 conda-forge xerces-c 3.2.5 hac6953d_0 conda-forge xkeyboard-config 2.41 hd590300_0 conda-forge xorg-damageproto 1.2.1 h7f98852_1002 conda-forge xorg-fixesproto 5.0 h7f98852_1002 conda-forge xorg-inputproto 2.3.2 h7f98852_1002 conda-forge xorg-kbproto 1.0.7 h7f98852_1002 conda-forge xorg-libice 1.1.1 hd590300_0 conda-forge xorg-libsm 1.2.4 h7391055_0 conda-forge xorg-libx11 1.8.7 h8ee46fc_0 conda-forge xorg-libxau 1.0.11 hd590300_0 conda-forge xorg-libxaw 1.0.14 h7f98852_1 conda-forge xorg-libxdamage 1.1.5 h7f98852_1 conda-forge xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge xorg-libxext 1.3.4 h0b41bf4_2 conda-forge xorg-libxfixes 5.0.3 h7f98852_1004 conda-forge xorg-libxi 1.7.10 h7f98852_0 conda-forge xorg-libxinerama 1.1.5 h27087fc_0 conda-forge xorg-libxmu 1.1.3 h7f98852_0 conda-forge xorg-libxpm 3.5.17 hd590300_0 conda-forge xorg-libxrandr 1.5.2 h7f98852_1 conda-forge xorg-libxrender 0.9.11 hd590300_0 conda-forge xorg-libxt 1.3.0 hd590300_1 conda-forge xorg-libxxf86vm 1.1.5 h0b41bf4_0 conda-forge xorg-randrproto 1.5.0 h7f98852_1001 conda-forge xorg-renderproto 0.11.1 h7f98852_1002 conda-forge xorg-util-macros 1.19.3 h7f98852_0 conda-forge xorg-xextproto 7.3.0 h0b41bf4_1003 conda-forge xorg-xf86vidmodeproto 2.3.1 h7f98852_1002 conda-forge xorg-xproto 7.0.31 h7f98852_1007 conda-forge xz 5.2.6 h166bdaf_0 conda-forge yaml 0.2.5 h7f98852_2 conda-forge yarl 1.9.4 py312h98912ed_0 conda-forge yarp 0.4.0 pypi_0 pypi zeromq 4.3.5 h59595ed_1 conda-forge zlib 1.2.13 hd590300_5 conda-forge zstd 1.5.5 hfc55251_0 conda-forge zziplib 0.13.69 h27826a3_1 conda-forge

traversaro commented 5 months ago

spyder is not present in the environment, how did you installed it?

16239014 commented 5 months ago

spyder is not present in the environment, how did you installed it? no it is intalled in robsub version 3.8 and i also installed spyder 3.9 in base envoirment

(base) sohail@sohail-Lenovo-V14-G3-IAP:~$ conda activate robsub (robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ source /home/sohail/robotology-superbuild/build/install/share/robotology-superbuild/setup.sh (robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ spyder Attribute Qt::AA_UseSoftwareOpenGL must be set before QCoreApplication is created.

traversaro commented 5 months ago

@16239014 please also reply to my question explaining what you are copy&pasting, thanks. Furthermore, please use ~~~ code blocks, otherwise your message are quite hard to read, thanks.

16239014 commented 5 months ago

@16239014 please also reply to my question explaining what you are copy&pasting, thanks. Furthermore, please use ~~~ code blocks, otherwise your message are quite hard to read, thanks.

(robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ source /home/sohail/robotology-superbuild/build/install/share/robotology-superbuild/setup.sh
(robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ spyder
Attribute Qt::AA_UseSoftwareOpenGL must be set before QCoreApplication is created.

No it is intalled in robsub version 3.8 and i also installed spyder 3.9 in base envoirment And i installed spyder with environment robsub activated: sudo apt install spyder

traversaro commented 5 months ago

No it is intalled in robsub version 3.8 and i also installed spyder 3.9 in base envoirment

How it is possible that is installed in the robsub environment if it is not listed in conda list?

And i installed spyder with environment robsub activated: sudo apt install spyder

I would not mix conda and apt packages, as they may not be compatible one another.

16239014 commented 5 months ago

ok then guide me how to installed spyder in robsub?

and if its not in robsub then it how can i excute command spyder?

(robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ source /home/sohail/robotology-superbuild/build/install/share/robotology-superbuild/setup.sh
(robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ spyder
Attribute Qt::AA_UseSoftwareOpenGL must be set before QCoreApplication is created.
traversaro commented 5 months ago

Just to clarify, import yarp inside robsub is working fine, so everything robotology-superbuild is working as expected, and unfortunately I do not have any experience with spyder.

I guess to install spyder in robsub it should be sufficient to run:

conda install spyder

in a terminal in which robsub is active. As this may change the library versions in the environment, after you do so I suggests to recompile the superbuild.

16239014 commented 5 months ago

I guess to install spyder in robsub it should be sufficient to run:

conda install spyder


(robsub) sohail@sohail-Lenovo-V14-G3-IAP:~$ conda install spyder
Channels:
- defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:

Could not solve for environment specs The following packages are incompatible ├─ gst-plugins-bad is installable and it requires │ └─ libxml2 >=2.11.5,<3.0.0a0 , which can be installed; ├─ pin-1 is installable and it requires │ └─ python 3.12. , which can be installed; └─ spyder is not installable because there are no viable options ├─ spyder 5.5.1 would require │ └─ pyqtwebengine >=5.10,<5.16 but there are no viable options │ ├─ pyqtwebengine [5.15.10|5.15.7] would require │ │ └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported; │ ├─ pyqtwebengine [5.15.10|5.15.7] would require │ │ └─ python >=3.11,<3.12.0a0 , which conflicts with any installable versions previously reported; │ ├─ pyqtwebengine 5.15.10 would require │ │ └─ qt-webengine 5.15. but there are no viable options │ │ ├─ qt-webengine 5.15.9 would require │ │ │ └─ libxml2 >=2.10.3,<2.11.0a0 , which conflicts with any installable versions previously reported; │ │ └─ qt-webengine 5.15.9 would require │ │ └─ libxml2 >=2.9.14,<2.10.0a0 , which conflicts with any installable versions previously reported; │ ├─ pyqtwebengine [5.15.10|5.15.7] would require │ │ └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported; │ ├─ pyqtwebengine [5.15.10|5.15.7] would require │ │ └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported; │ └─ pyqtwebengine 5.15.7 would require │ └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported; ├─ spyder [3.2.3|3.2.4|...|4.0.1] would require │ └─ python >=2.7,<2.8.0a0 , which conflicts with any installable versions previously reported; ├─ spyder [3.2.3|3.2.4|...|3.3.1] would require │ └─ python >=3.5,<3.6.0a0 , which conflicts with any installable versions previously reported; ├─ spyder [3.2.3|3.2.4|...|5.0.5] would require │ └─ python >=3.6,<3.7.0a0 , which conflicts with any installable versions previously reported; ├─ spyder [3.3.0|3.3.1|...|5.3.3] would require │ └─ python >=3.7,<3.8.0a0 , which conflicts with any installable versions previously reported; ├─ spyder [4.0.1|4.1.0|...|5.5.1] would require │ └─ python >=3.8,<3.9.0a0 , which conflicts with any installable versions previously reported; ├─ spyder [4.2.0|4.2.1|...|5.5.1] would require │ └─ python >=3.9,<3.10.0a0 , which conflicts with any installable versions previously reported; ├─ spyder [5.1.5|5.2.2|...|5.5.1] would require │ └─ python >=3.10,<3.11.0a0 , which conflicts with any installable versions previously reported; └─ spyder [5.4.1|5.4.2|5.4.3|5.5.1] would require └─ python >=3.11,<3.12.0a0 , which conflicts with any installable versions previously reported.

traversaro commented 5 months ago

@16239014 as I already stated, please do not just dump error, but explain what you are pasting. I am not an llm or chatgpt. : )

Apparently your environment is not compatible with spyder. Possible suggestions is to create a new environment from scratch, in which you install spyder since the beginning, and then re-compile the superbuild on top of the new environment.

Otherwise, you need to use spyder installed in some other way, and make spyder point to the python interpreter of the robsub conda environment. However, I never used spyder, so I strongly suggest to seek help on this in the spyder community, not here.

traversaro commented 5 months ago

@16239014 I guess you went forward in some way, feel free to open a new issue if you still have problems.