robotology / wb-toolbox

Simulink toolbox to rapidly prototype robot controllers
https://robotology.github.io/wb-toolbox/
GNU Lesser General Public License v2.1
24 stars 17 forks source link

Wrong environment variables set in Command Prompt when wb-toolbox is installed via conda #228

Closed traversaro closed 2 years ago

traversaro commented 2 years ago

I have installed wb-toolbox via conda on Windows with the commands:

mamba create -n wbtoolbox -c conda-forge -c robotology wb-toolbox

and the MATLAB path is set to:

(wbtoolbox) C:\Users\STraversaro>echo %MATLABPATH%
;C:\Users\STraversaro\AppData\Local\mambaforge\envs\wbtoolbox\Library\share\WBToolbox\images

So the directory C:\Users\STraversaro\AppData\Local\mambaforge\envs\wbtoolbox\Library\share\WBToolbox that is fundamental to find the library in the Simulink Library Browser, is not found.

If the environement is activated in Git Bash, the %MATLABPATH% also contains theshare\WBToolbox` directory:

C:\Users\STraversaro\AppData\Local\mambaforge\envs\wbtoolbox/Library\share\WBToolbox:C:\Users\STraversaro\AppData\Local\mambaforge\envs\wbtoolbox/Library\share\WBToolbox\images

Full details on the installed packages:

(wbtoolbox) C:\Users\STraversaro>mamba list
# packages in environment at C:\Users\STraversaro\AppData\Local\mambaforge\envs\wbtoolbox:
#
# Name                    Version                   Build  Channel
ace                       7.0.5                h0e60522_0    conda-forge
assimp                    5.0.1                hc2aa0de_7    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.4              pyhd8ed1ab_0    conda-forge
blockfactory              0.8.2               h0e60522_34    robotology
boost-cpp                 1.74.0               h5b4e17d_5    conda-forge
bzip2                     1.0.8                h8ffe710_4    conda-forge
ca-certificates           2021.10.8            h5b45459_0    conda-forge
colorama                  0.4.4              pyh9f0ad1d_0    conda-forge
decorator                 5.1.0              pyhd8ed1ab_0    conda-forge
eigen                     3.4.0                h2d74725_0    conda-forge
freeglut                  3.2.1                h0e60522_2    conda-forge
freetype                  2.10.4               h546665d_1    conda-forge
gsl                       2.7                  hdfb1a43_0    conda-forge
icu                       68.2                 h0e60522_0    conda-forge
icub-firmware-shared      1.22.0              h0e60522_34    robotology
icub-main                 1.22.0              h7a200a9_34    robotology
idyntree                  4.3.0            py39h488d34f_0    conda-forge
intel-openmp              2021.4.0          h57928b3_3556    conda-forge
ipopt                     3.14.4               hf6be2e5_0    conda-forge
ipython                   7.30.1           py39hcbf5309_0    conda-forge
irrlicht                  1.8.5                h739eaf8_0    conda-forge
jasper                    2.0.33               h77af90b_0    conda-forge
jbig                      2.1               h8d14728_2003    conda-forge
jedi                      0.18.1           py39hcbf5309_0    conda-forge
jpeg                      9d                   h8ffe710_0    conda-forge
lcms2                     2.12                 h2a16943_0    conda-forge
lerc                      3.0                  h0e60522_0    conda-forge
libblas                   3.9.0              12_win64_mkl    conda-forge
libcblas                  3.9.0              12_win64_mkl    conda-forge
libclang                  11.1.0          default_h5c34c98_1    conda-forge
libdeflate                1.8                  h8ffe710_0    conda-forge
libflang                  5.0.0           h6538335_20180525    conda-forge
libiconv                  1.16                 he774522_0    conda-forge
libjpeg-turbo             2.1.1                h8ffe710_0    conda-forge
liblapack                 3.9.0              12_win64_mkl    conda-forge
liblapacke                3.9.0              12_win64_mkl    conda-forge
libode                    0.16.2               h415ef7b_9    conda-forge
libopencv                 4.5.3            py31h6a2c607_7    conda-forge
libosqp                   0.6.2                h0e60522_3    conda-forge
libpng                    1.6.37               h1d00b33_2    conda-forge
libprotobuf               3.19.1               h7755175_0    conda-forge
libsodium                 1.0.18               h8d14728_1    conda-forge
libtiff                   4.3.0                hd413186_2    conda-forge
libwebp-base              1.2.1                h8ffe710_0    conda-forge
libxml2                   2.9.12               hf5bbc77_1    conda-forge
libzlib                   1.2.11            h8ffe710_1013    conda-forge
llvm-meta                 5.0.0                         0    conda-forge
lz4-c                     1.9.3                h8ffe710_1    conda-forge
matplotlib-inline         0.1.3              pyhd8ed1ab_0    conda-forge
meshcat-python            0.3.2              pyhd8ed1ab_0    conda-forge
metis                     5.1.0             h0e60522_1006    conda-forge
mkl                       2021.4.0           h0e2418a_729    conda-forge
mumps-seq                 5.2.1               hb3f9cae_10    conda-forge
numpy                     1.21.4           py39h6635163_0    conda-forge
olefile                   0.46               pyh9f0ad1d_1    conda-forge
openjpeg                  2.4.0                hb211442_1    conda-forge
openmp                    5.0.0                    vc14_1    conda-forge
openssl                   1.1.1l               h8ffe710_0    conda-forge
osqp-eigen                0.6.4                h0e60522_1    conda-forge
parso                     0.8.3              pyhd8ed1ab_0    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    8.4.0            py39h916092e_0    conda-forge
pip                       21.3.1             pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.24             pyha770c72_0    conda-forge
pygments                  2.10.0             pyhd8ed1ab_0    conda-forge
pyngrok                   5.1.0              pyhd8ed1ab_0    conda-forge
python                    3.9.7           h7840368_3_cpython    conda-forge
python_abi                3.9                      2_cp39    conda-forge
pyyaml                    6.0              py39hb82d6ee_3    conda-forge
pyzmq                     22.3.0           py39he46f08e_1    conda-forge
qpoases                   3.2.0.1             h0e60522_34    robotology
qt                        5.12.9               h5909a2a_4    conda-forge
robot-testing-framework   2.0.1                h0e60522_0    conda-forge
sdl                       1.2.15               h13ae965_1    conda-forge
setuptools                59.6.0           py39hcbf5309_0    conda-forge
sqlite                    3.37.0               h8ffe710_0    conda-forge
tbb                       2021.4.0             h2d74725_1    conda-forge
tinyxml                   2.6.2                h2d74725_2    conda-forge
tk                        8.6.11               h8ffe710_1    conda-forge
tornado                   6.1              py39hb82d6ee_2    conda-forge
traitlets                 5.1.1              pyhd8ed1ab_0    conda-forge
tzdata                    2021e                he74cb21_0    conda-forge
u-msgpack-python          2.7.1              pyh9f0ad1d_0    conda-forge
ucrt                      10.0.20348.0         h57928b3_0    conda-forge
vc                        14.2                 hb210afc_5    conda-forge
vs2015_runtime            14.29.30037          h902a5da_5    conda-forge
wb-toolbox                5.4.1               h0e60522_34    robotology
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
wheel                     0.37.0             pyhd8ed1ab_1    conda-forge
xz                        5.2.5                h62dcd97_1    conda-forge
yaml                      0.2.5                he774522_0    conda-forge
yarp                      3.5.1           py39he88dcca_34    robotology
ycm-cmake-modules         0.13.0               h0e60522_0    conda-forge
zeromq                    4.3.4                h0e60522_1    conda-forge
zlib                      1.2.11            h8ffe710_1013    conda-forge
zstd                      1.5.0                h6255e5f_0    conda-forge
traversaro commented 2 years ago

This is actually due to the multisheller/command prompt bug https://github.com/mamba-org/multisheller/issues/9 . To be honest, I do not know how to attack this problem, but fortunatly there is an easy workaround that was already implemented for the icub-models multisheller scripts: https://github.com/mamba-org/multisheller/issues/9 . Probably we can review the other multisheller scripts in robotology-superbuild to avoid that they have this problem.

traversaro commented 2 years ago

A fix for the issue is proposed in https://github.com/robotology/robotology-superbuild/pull/957 .

traversaro commented 2 years ago

Thanks to the conda packages generated yesterday night (see https://github.com/robotology/robotology-superbuild/actions/runs/1604543316), the issue is now solved: wb_toolbox_windows