Giter Site home page Giter Site logo

Comments (10)

fabinsch avatar fabinsch commented on June 18, 2024 3

Hi, by default we are not generating the Python stubs if it is not explicitly activated. I had a look at the pinocchio-feedstock and we are not activating the stubs in the recipe.

jcarpent is currently providing a fix in conda-forge/pinocchio-feedstock#112.

from pinocchio.

jcarpent avatar jcarpent commented on June 18, 2024 1

@cckaixin It works well on my side. Could you provide the output of the terminal command conda list?

By the way, are you sure that your conda environment is the correct one in Visual Code?

from pinocchio.

cckaixin avatar cckaixin commented on June 18, 2024 1

Thank you for pointing out the potential issues in the pinocchio-feedstock. I visited the website conda-forge/pinocchio-feedstock#112 and noticed that different Python versions may interact differently with Pinocchio. Consequently, I switched to the 'base' Conda environment, where Python 3.11 is installed. To my surprise, after running the command conda install pinocchio -c conda-forge, I found that the auto-fill and highlighting functions have returned to normal.
111111

I observed that the versions of Pinocchio installed in my Python 3.8 and Python 3.11 environments are different:

(base) ➜ ~ conda list                            
# packages in environment at /home/ckx/miniconda3:
#
# Name                    Version                   Build  Channel
pinocchio                 2.7.0           py311hbd3525c_1    conda-forge
(aloha) ➜ ~ conda list 
# packages in environment at /home/ckx/miniconda3/envs/aloha:
#
# Name                    Version                   Build  Channel
pinocchio                 2.6.20           py38hc3ad5ea_0    conda-forge

I am puzzled as to why the same installation command led to two different versions of Pinocchio. The 2.7.0 version stub works very well, and I hope that the 2.6.20 version for the Python 3.8 environment will work well in the future.
Thank you so much, again!!!

from pinocchio.

cckaixin avatar cckaixin commented on June 18, 2024 1

Good news! I create a new python3.8 env and make it to install newest version of pinocchio! This is my terminal:

(aloha) ➜  ~ conda --version                       
conda 24.1.2
(aloha) ➜  ~ conda create --name pin_38 python=3.8
Retrieving notices: ...working... done
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/ckx/miniconda3/envs/pin_38

  added / updated specs:
    - python=3.8


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    ld_impl_linux-64-2.40      |       h41732ed_0         688 KB  conda-forge
    libffi-3.4.2               |       h7f98852_5          57 KB  conda-forge
    libnsl-2.0.1               |       hd590300_0          33 KB  conda-forge
    libsqlite-3.45.2           |       h2797004_0         837 KB  conda-forge
    libxcrypt-4.4.36           |       hd590300_1          98 KB  conda-forge
    ncurses-6.4                |       h59595ed_2         864 KB  conda-forge
    pip-24.0                   |     pyhd8ed1ab_0         1.3 MB  conda-forge
    python-3.8.18              |hd12c33a_1_cpython        22.9 MB  conda-forge
    readline-8.2               |       h8228510_1         275 KB  conda-forge
    setuptools-69.1.1          |     pyhd8ed1ab_0         459 KB  conda-forge
    tk-8.6.13                  |noxft_h4845f30_101         3.2 MB  conda-forge
    wheel-0.42.0               |     pyhd8ed1ab_0          56 KB  conda-forge
    xz-5.2.6                   |       h166bdaf_0         409 KB  conda-forge
    ------------------------------------------------------------
                                           Total:        31.1 MB

The following NEW packages will be INSTALLED:

  _libgcc_mutex      conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge 
  _openmp_mutex      conda-forge/linux-64::_openmp_mutex-4.5-2_gnu 
  bzip2              conda-forge/linux-64::bzip2-1.0.8-hd590300_5 
  ca-certificates    conda-forge/linux-64::ca-certificates-2024.2.2-hbcca054_0 
  ld_impl_linux-64   conda-forge/linux-64::ld_impl_linux-64-2.40-h41732ed_0 
  libffi             conda-forge/linux-64::libffi-3.4.2-h7f98852_5 
  libgcc-ng          conda-forge/linux-64::libgcc-ng-13.2.0-h807b86a_5 
  libgomp            conda-forge/linux-64::libgomp-13.2.0-h807b86a_5 
  libnsl             conda-forge/linux-64::libnsl-2.0.1-hd590300_0 
  libsqlite          conda-forge/linux-64::libsqlite-3.45.2-h2797004_0 
  libuuid            conda-forge/linux-64::libuuid-2.38.1-h0b41bf4_0 
  libxcrypt          conda-forge/linux-64::libxcrypt-4.4.36-hd590300_1 
  libzlib            conda-forge/linux-64::libzlib-1.2.13-hd590300_5 
  ncurses            conda-forge/linux-64::ncurses-6.4-h59595ed_2 
  openssl            conda-forge/linux-64::openssl-3.2.1-hd590300_0 
  pip                conda-forge/noarch::pip-24.0-pyhd8ed1ab_0 
  python             conda-forge/linux-64::python-3.8.18-hd12c33a_1_cpython 
  readline           conda-forge/linux-64::readline-8.2-h8228510_1 
  setuptools         conda-forge/noarch::setuptools-69.1.1-pyhd8ed1ab_0 
  tk                 conda-forge/linux-64::tk-8.6.13-noxft_h4845f30_101 
  wheel              conda-forge/noarch::wheel-0.42.0-pyhd8ed1ab_0 
  xz                 conda-forge/linux-64::xz-5.2.6-h166bdaf_0 


Proceed ([y]/n)? y


Downloading and Extracting Packages:
                                                                                                                                                                                                          
Preparing transaction: done                                                                                                                                                                               
Verifying transaction: done                                                                                                                                                                               
Executing transaction: done                                                                                                                                                                               
#                                                                                                                                                                                                         
# To activate this environment, use                                                                                                                                                                       
#                                                                                                                                                                                                         
#     $ conda activate pin_38                                                                                                                                                                             
#                                                                                                                                                                                                         
# To deactivate an active environment, use                                                                                                                                                                
#                                                                                                                                                                                                         
#     $ conda deactivate                                                                                                                                                                                  
                                                                                                                                                                                                          
(aloha) ➜  ~ conda activate pin_38                
(pin_38) ➜  ~ conda install -c conda-forge pinocchio
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/ckx/miniconda3/envs/pin_38

  added / updated specs:
    - pinocchio


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    brotli-python-1.1.0        |   py38h17151c0_1         343 KB  conda-forge
    charset-normalizer-3.3.2   |     pyhd8ed1ab_0          46 KB  conda-forge
    eigenpy-3.4.0              |   py38h57200da_0         1.7 MB  conda-forge
    hpp-fcl-2.4.4              |   py38h8f340c1_0         1.5 MB  conda-forge
    idna-3.6                   |     pyhd8ed1ab_0          49 KB  conda-forge
    libblas-3.9.0              |20_linux64_openblas          14 KB  conda-forge
    libboost-python-1.82.0     |   py38hae673b5_6         117 KB  conda-forge
    libboost-python-devel-1.82.0|   py38hb563948_6          17 KB  conda-forge
    libcblas-3.9.0             |20_linux64_openblas          14 KB  conda-forge
    liblapack-3.9.0            |20_linux64_openblas          14 KB  conda-forge
    libopenblas-0.3.25         |pthreads_h413a1c8_0         5.3 MB  conda-forge
    numpy-1.24.4               |   py38h59b608b_0         6.4 MB  conda-forge
    packaging-24.0             |     pyhd8ed1ab_0          49 KB  conda-forge
    pinocchio-2.7.0            |   py38hd405ee4_1         3.9 MB  conda-forge
    platformdirs-4.2.0         |     pyhd8ed1ab_0          20 KB  conda-forge
    pooch-1.8.1                |     pyhd8ed1ab_0          51 KB  conda-forge
    pysocks-1.7.1              |     pyha2e5f31_6          19 KB  conda-forge
    python_abi-3.8             |           4_cp38           6 KB  conda-forge
    requests-2.31.0            |     pyhd8ed1ab_0          55 KB  conda-forge
    scipy-1.10.1               |   py38h59b608b_3        14.6 MB  conda-forge
    urllib3-2.2.1              |     pyhd8ed1ab_0          92 KB  conda-forge
    ------------------------------------------------------------
                                           Total:        34.1 MB

The following NEW packages will be INSTALLED:

  assimp             conda-forge/linux-64::assimp-5.3.1-hfb0e8fe_2 
  brotli-python      conda-forge/linux-64::brotli-python-1.1.0-py38h17151c0_1 
  certifi            conda-forge/noarch::certifi-2024.2.2-pyhd8ed1ab_0 
  charset-normalizer conda-forge/noarch::charset-normalizer-3.3.2-pyhd8ed1ab_0 
  console_bridge     conda-forge/linux-64::console_bridge-1.0.2-h924138e_1 
  eigen              conda-forge/linux-64::eigen-3.4.0-h00ab1b0_0 
  eigenpy            conda-forge/linux-64::eigenpy-3.4.0-py38h57200da_0 
  hpp-fcl            conda-forge/linux-64::hpp-fcl-2.4.4-py38h8f340c1_0 
  icu                conda-forge/linux-64::icu-73.2-h59595ed_0 
  idna               conda-forge/noarch::idna-3.6-pyhd8ed1ab_0 
  libblas            conda-forge/linux-64::libblas-3.9.0-20_linux64_openblas 
  libboost           conda-forge/linux-64::libboost-1.82.0-h6fcfa73_6 
  libboost-devel     conda-forge/linux-64::libboost-devel-1.82.0-h00ab1b0_6 
  libboost-headers   conda-forge/linux-64::libboost-headers-1.82.0-ha770c72_6 
  libboost-python    conda-forge/linux-64::libboost-python-1.82.0-py38hae673b5_6 
  libboost-python-d~ conda-forge/linux-64::libboost-python-devel-1.82.0-py38hb563948_6 
  libcblas           conda-forge/linux-64::libcblas-3.9.0-20_linux64_openblas 
  libgfortran-ng     conda-forge/linux-64::libgfortran-ng-13.2.0-h69a702a_5 
  libgfortran5       conda-forge/linux-64::libgfortran5-13.2.0-ha4646dd_5 
  liblapack          conda-forge/linux-64::liblapack-3.9.0-20_linux64_openblas 
  libopenblas        conda-forge/linux-64::libopenblas-0.3.25-pthreads_h413a1c8_0 
  libstdcxx-ng       conda-forge/linux-64::libstdcxx-ng-13.2.0-h7e041cc_5 
  llvm-openmp        conda-forge/linux-64::llvm-openmp-17.0.6-h4dfa4b3_0 
  numpy              conda-forge/linux-64::numpy-1.24.4-py38h59b608b_0 
  octomap            conda-forge/linux-64::octomap-1.9.8-h924138e_0 
  packaging          conda-forge/noarch::packaging-24.0-pyhd8ed1ab_0 
  pinocchio          conda-forge/linux-64::pinocchio-2.7.0-py38hd405ee4_1 
  platformdirs       conda-forge/noarch::platformdirs-4.2.0-pyhd8ed1ab_0 
  pooch              conda-forge/noarch::pooch-1.8.1-pyhd8ed1ab_0 
  pysocks            conda-forge/noarch::pysocks-1.7.1-pyha2e5f31_6 
  python_abi         conda-forge/linux-64::python_abi-3.8-4_cp38 
  qhull              conda-forge/linux-64::qhull-2020.2-h4bd325d_2 
  requests           conda-forge/noarch::requests-2.31.0-pyhd8ed1ab_0 
  scipy              conda-forge/linux-64::scipy-1.10.1-py38h59b608b_3 
  tinyxml2           conda-forge/linux-64::tinyxml2-10.0.0-h59595ed_0 
  urdfdom            conda-forge/linux-64::urdfdom-4.0.0-hee28ff1_1 
  urdfdom_headers    conda-forge/linux-64::urdfdom_headers-1.1.1-h00ab1b0_0 
  urllib3            conda-forge/noarch::urllib3-2.2.1-pyhd8ed1ab_0 
  zlib               conda-forge/linux-64::zlib-1.2.13-hd590300_5 
  zstd               conda-forge/linux-64::zstd-1.5.5-hfc55251_0 

The following packages will be DOWNGRADED:

  _openmp_mutex                                   4.5-2_gnu --> 4.5-2_kmp_llvm 


Proceed ([y]/n)? 

from pinocchio.

cckaixin avatar cckaixin commented on June 18, 2024

Thanks for your kind reply, here is my conda list:

(aloha) ➜  hardware git:(main) ✗ conda list                            
# packages in environment at /home/ckx/miniconda3/envs/aloha:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                  2_kmp_llvm    conda-forge
absl-py                   2.0.0                    pypi_0    pypi
alsa-lib                  1.2.8                h166bdaf_0    conda-forge
aom                       3.5.0                h27087fc_0    conda-forge
appdirs                   1.4.4                    pypi_0    pypi
assimp                    5.2.5                hf40c2ba_0    conda-forge
asttokens                 2.4.1              pyhd8ed1ab_0    conda-forge
attr                      2.5.1                h166bdaf_1    conda-forge
autopep8                  1.6.0              pyhd3eb1b0_1  
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
blas                      1.0                         mkl  
boost                     1.78.0           py38hae673b5_5    conda-forge
boost-cpp                 1.78.0               h5adbc97_2    conda-forge
bzip2                     1.0.8                hd590300_5    conda-forge
c-ares                    1.19.1               h5eee18b_0  
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
cachetools                5.3.2                    pypi_0    pypi
cairo                     1.16.0            ha61ee94_1014    conda-forge
catkin-pkg                1.0.0                    pypi_0    pypi
certifi                   2023.11.17               pypi_0    pypi
charset-normalizer        3.3.2                    pypi_0    pypi
click                     8.1.7                    pypi_0    pypi
cloudpickle               3.0.0                    pypi_0    pypi
cmake                     3.28.1                   pypi_0    pypi
cmeel                     0.53.3                   pypi_0    pypi
cmeel-assimp              5.3.1                    pypi_0    pypi
cmeel-boost               1.83.0                   pypi_0    pypi
cmeel-console-bridge      1.0.2.2                  pypi_0    pypi
cmeel-octomap             1.9.8.2                  pypi_0    pypi
cmeel-qhull               8.0.2.1                  pypi_0    pypi
cmeel-tinyxml             2.6.2.3                  pypi_0    pypi
cmeel-urdfdom             3.1.1.1                  pypi_0    pypi
collada-dom               2.5.0                h9e5ae81_5    conda-forge
comm                      0.2.1              pyhd8ed1ab_0    conda-forge
console_bridge            1.0.2                h924138e_1    conda-forge
contourpy                 1.1.1                    pypi_0    pypi
cycler                    0.12.1                   pypi_0    pypi
dbus                      1.13.6               h5008d03_3    conda-forge
debugpy                   1.6.7            py38h6a678d5_0  
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
detr                      0.0.0                     dev_0    <develop>
diffusers                 0.11.1                   pypi_0    pypi
distro                    1.9.0                    pypi_0    pypi
dm-control                1.0.14                   pypi_0    pypi
dm-env                    1.6                      pypi_0    pypi
dm-tree                   0.1.8                    pypi_0    pypi
docker-pycreds            0.4.0                    pypi_0    pypi
docutils                  0.20.1                   pypi_0    pypi
egl-probe                 1.0.2                    pypi_0    pypi
eigen                     3.4.0                h00ab1b0_0    conda-forge
eigenpy                   3.4.0                    pypi_0    pypi
einops                    0.7.0                    pypi_0    pypi
empy                      3.3.4              pyh9f0ad1d_1    conda-forge
et-xmlfile                1.1.0                    pypi_0    pypi
executing                 2.0.1              pyhd8ed1ab_0    conda-forge
expat                     2.5.0                hcb278e6_1    conda-forge
ffmpeg                    4.4.2           gpl_h8dda1f0_112    conda-forge
fftw                      3.3.10          nompi_hf0379b8_106    conda-forge
filelock                  3.13.1                   pypi_0    pypi
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.47.2                   pypi_0    pypi
freeglut                  3.2.2                h9c3ff4c_1    conda-forge
freetype                  2.12.1               h267a509_2    conda-forge
fsspec                    2023.12.2                pypi_0    pypi
gepetto-viewer            4.15.1           py38h730a83d_1    conda-forge
gepetto-viewer-corba      5.7.3            py38ha91b049_4    conda-forge
gettext                   0.21.1               h27087fc_0    conda-forge
gitdb                     4.0.11                   pypi_0    pypi
gitpython                 3.1.41                   pypi_0    pypi
glfw                      2.6.4                    pypi_0    pypi
glib                      2.78.4               hfc55251_0    conda-forge
glib-tools                2.78.4               hfc55251_0    conda-forge
gmp                       6.3.0                h59595ed_0    conda-forge
gnutls                    3.7.9                hb077bed_0    conda-forge
google-auth               2.26.2                   pypi_0    pypi
google-auth-oauthlib      1.0.0                    pypi_0    pypi
graphite2                 1.3.13            h58526e2_1001    conda-forge
grpcio                    1.60.0                   pypi_0    pypi
gst-plugins-base          1.22.0               h4243ec0_2    conda-forge
gstreamer                 1.22.0               h25f0c4b_2    conda-forge
gstreamer-orc             0.4.37               hd590300_0    conda-forge
gym                       0.26.2                   pypi_0    pypi
gym-notices               0.0.8                    pypi_0    pypi
h5py                      3.10.0                   pypi_0    pypi
h5py-cache                1.0                      pypi_0    pypi
harfbuzz                  6.0.0                h8e241bc_0    conda-forge
hdf5                      1.12.2          nompi_h4df4325_101    conda-forge
hpp-fcl                   2.4.4                    pypi_0    pypi
huggingface-hub           0.20.2                   pypi_0    pypi
icu                       70.1                 h27087fc_0    conda-forge
idna                      3.6                      pypi_0    pypi
imageio                   2.33.1                   pypi_0    pypi
imageio-ffmpeg            0.4.9                    pypi_0    pypi
importlib-metadata        7.0.1              pyha770c72_0    conda-forge
importlib-resources       6.1.1                    pypi_0    pypi
importlib_metadata        7.0.1                hd8ed1ab_0    conda-forge
intel-openmp              2023.1.0         hdb19cb5_46306  
ipykernel                 6.28.0             pyhd33586a_0    conda-forge
ipython                   8.12.3                   pypi_0    pypi
jack                      1.9.22               h11f4161_0    conda-forge
jasper                    2.0.33               h0ff4b12_1    conda-forge
jedi                      0.19.1             pyhd8ed1ab_0    conda-forge
jinja2                    3.1.3                    pypi_0    pypi
jpeg                      9e                   h166bdaf_2    conda-forge
jupyter_client            8.6.0              pyhd8ed1ab_0    conda-forge
jupyter_core              5.7.1            py38h578d9bd_0    conda-forge
kiwisolver                1.4.5                    pypi_0    pypi
krb5                      1.20.1               h143b758_1  
labmaze                   1.0.6                    pypi_0    pypi
lame                      3.100             h166bdaf_1003    conda-forge
ld_impl_linux-64          2.38                 h1181459_1  
lerc                      4.0.0                h27087fc_0    conda-forge
libaec                    1.1.2                h59595ed_1    conda-forge
libblas                   3.9.0           1_h86c2bf4_netlib    conda-forge
libcap                    2.67                 he9d0100_0    conda-forge
libcblas                  3.9.0           5_h92ddd45_netlib    conda-forge
libclang                  15.0.7          default_hb11cfb5_4    conda-forge
libclang13                15.0.7          default_ha2b6cf4_4    conda-forge
libcups                   2.3.3                h36d4200_3    conda-forge
libcurl                   8.5.0                h251f7ec_0  
libdb                     6.2.32               h9c3ff4c_0    conda-forge
libdeflate                1.14                 h166bdaf_0    conda-forge
libdrm                    2.4.120              hd590300_0    conda-forge
libedit                   3.1.20230828         h5eee18b_0  
libev                     4.33                 h7f8727e_1  
libevent                  2.1.10               h28343ad_4    conda-forge
libexpat                  2.5.0                hcb278e6_1    conda-forge
libffi                    3.4.4                h6a678d5_0  
libflac                   1.4.3                h59595ed_0    conda-forge
libgcc-ng                 13.2.0               h807b86a_3    conda-forge
libgcrypt                 1.10.3               hd590300_0    conda-forge
libgfortran-ng            11.2.0               h00389a5_1  
libgfortran5              11.2.0               h1234567_1  
libglib                   2.78.4               h783c2da_0    conda-forge
libglu                    9.0.0             he1b5a44_1001    conda-forge
libgomp                   13.2.0               h807b86a_3    conda-forge
libgpg-error              1.48                 h71f35ed_0    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libidn2                   2.3.7                hd590300_0    conda-forge
libjpeg-turbo             2.1.4                h166bdaf_0    conda-forge
liblapack                 3.9.0           5_h92ddd45_netlib    conda-forge
liblapacke                3.9.0           5_h92ddd45_netlib    conda-forge
libllvm15                 15.0.7               hadd5161_1    conda-forge
libnghttp2                1.57.0               h2d74bed_0  
libogg                    1.3.4                h7f98852_1    conda-forge
libopencv                 4.5.3            py38hc6b509d_8    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                     15.3                 hbcd7760_1    conda-forge
libprotobuf               3.21.12              hfc55251_2    conda-forge
libsndfile                1.2.2                hc60ed4a_1    conda-forge
libsodium                 1.0.18               h36c2ea0_1    conda-forge
libsqlite                 3.45.1               h2797004_0    conda-forge
libssh2                   1.10.0               hdbd6064_2  
libstdcxx-ng              13.2.0               h7e041cc_5    conda-forge
libsystemd0               253                  h8c4010b_1    conda-forge
libtasn1                  4.19.0               h166bdaf_0    conda-forge
libtiff                   4.4.0                h82bc61c_5    conda-forge
libtool                   2.4.7                h27087fc_0    conda-forge
libudev1                  253                  h0b41bf4_1    conda-forge
libunistring              0.9.10               h7f98852_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libva                     2.18.0               h0b41bf4_0    conda-forge
libvorbis                 1.3.7                h9c3ff4c_0    conda-forge
libvpx                    1.11.0               h9c3ff4c_3    conda-forge
libwebp-base              1.3.2                hd590300_0    conda-forge
libxcb                    1.13              h7f98852_1004    conda-forge
libxkbcommon              1.5.0                h79f4944_1    conda-forge
libxml2                   2.10.3               hca2bb57_4    conda-forge
libzlib                   1.2.13               hd590300_5    conda-forge
lit                       17.0.6                   pypi_0    pypi
llvm-openmp               17.0.6               h4dfa4b3_0    conda-forge
llvmlite                  0.41.1                   pypi_0    pypi
lxml                      5.1.0                    pypi_0    pypi
lz4-c                     1.9.4                hcb278e6_0    conda-forge
markdown                  3.5.2                    pypi_0    pypi
markupsafe                2.1.3                    pypi_0    pypi
matplotlib                3.7.4                    pypi_0    pypi
matplotlib-inline         0.1.6              pyhd8ed1ab_0    conda-forge
mkl                       2023.1.0         h213fc3f_46344  
mkl-service               2.4.0            py38h5eee18b_1  
mkl_fft                   1.3.8            py38h5eee18b_0  
mkl_random                1.2.4            py38hdb19cb5_0  
modern-robotics           1.1.1                    pypi_0    pypi
mpg123                    1.32.4               h59595ed_0    conda-forge
mpmath                    1.3.0                    pypi_0    pypi
mujoco                    2.3.7                    pypi_0    pypi
mysql-common              8.0.33               hf1915f5_6    conda-forge
mysql-libs                8.0.33               hca2cd23_6    conda-forge
ncurses                   6.4                  h6a678d5_0  
nest-asyncio              1.5.9              pyhd8ed1ab_0    conda-forge
nettle                    3.9.1                h7ab15ed_0    conda-forge
networkx                  3.1                      pypi_0    pypi
nspr                      4.35                 h27087fc_0    conda-forge
nss                       3.98                 h1d7d5a4_0    conda-forge
numba                     0.58.1                   pypi_0    pypi
numpy                     1.24.3           py38hf6e8229_1  
numpy-base                1.24.3           py38h060ed82_1  
nvidia-cublas-cu11        11.10.3.66               pypi_0    pypi
nvidia-cublas-cu12        12.1.3.1                 pypi_0    pypi
nvidia-cuda-cupti-cu11    11.7.101                 pypi_0    pypi
nvidia-cuda-cupti-cu12    12.1.105                 pypi_0    pypi
nvidia-cuda-nvrtc-cu11    11.7.99                  pypi_0    pypi
nvidia-cuda-nvrtc-cu12    12.1.105                 pypi_0    pypi
nvidia-cuda-runtime-cu11  11.7.99                  pypi_0    pypi
nvidia-cuda-runtime-cu12  12.1.105                 pypi_0    pypi
nvidia-cudnn-cu11         8.5.0.96                 pypi_0    pypi
nvidia-cudnn-cu12         8.9.2.26                 pypi_0    pypi
nvidia-cufft-cu11         10.9.0.58                pypi_0    pypi
nvidia-cufft-cu12         11.0.2.54                pypi_0    pypi
nvidia-curand-cu11        10.2.10.91               pypi_0    pypi
nvidia-curand-cu12        10.3.2.106               pypi_0    pypi
nvidia-cusolver-cu11      11.4.0.1                 pypi_0    pypi
nvidia-cusolver-cu12      11.4.5.107               pypi_0    pypi
nvidia-cusparse-cu11      11.7.4.91                pypi_0    pypi
nvidia-cusparse-cu12      12.1.0.106               pypi_0    pypi
nvidia-nccl-cu11          2.14.3                   pypi_0    pypi
nvidia-nccl-cu12          2.18.1                   pypi_0    pypi
nvidia-nvjitlink-cu12     12.3.101                 pypi_0    pypi
nvidia-nvtx-cu11          11.7.91                  pypi_0    pypi
nvidia-nvtx-cu12          12.1.105                 pypi_0    pypi
oauthlib                  3.2.2                    pypi_0    pypi
octomap                   1.9.8                h924138e_0    conda-forge
omniorb                   4.3.1            py38h0ed79f3_2    conda-forge
omniorb-libs              4.3.1                h1933689_2    conda-forge
omniorbpy                 4.3.1            py38hdf8471d_0    conda-forge
opencv                    4.5.3            py38h578d9bd_8    conda-forge
openh264                  2.3.1                hcb278e6_2    conda-forge
openpyxl                  3.1.2                    pypi_0    pypi
openscenegraph            3.6.5               h6e0f175_14    conda-forge
openscenegraph-osgqt      3.5.7                hc0e5487_5    conda-forge
openssl                   3.1.5                hd590300_0    conda-forge
p11-kit                   0.24.1               hc5aa10d_0    conda-forge
packaging                 23.2               pyhd8ed1ab_0    conda-forge
pandas                    2.0.3                    pypi_0    pypi
parso                     0.8.3              pyhd8ed1ab_0    conda-forge
pcre                      8.45                 h9c3ff4c_0    conda-forge
pcre2                     10.42                hcad00b1_0    conda-forge
pexpect                   4.9.0                    pypi_0    pypi
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    10.2.0                   pypi_0    pypi
pinocchio                 2.6.20           py38hc3ad5ea_0    conda-forge
pip                       23.3.1           py38h06a4308_0  
pixman                    0.43.2               h59595ed_0    conda-forge
platformdirs              4.1.0              pyhd8ed1ab_0    conda-forge
prompt-toolkit            3.0.43                   pypi_0    pypi
prompt_toolkit            3.0.42               hd8ed1ab_0    conda-forge
protobuf                  3.19.6                   pypi_0    pypi
psutil                    5.9.7            py38h01eb140_0    conda-forge
pthread-stubs             0.4               h36c2ea0_1001    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pulseaudio                16.1                 hcb278e6_3    conda-forge
pulseaudio-client         16.1                 h5195f5e_3    conda-forge
pulseaudio-daemon         16.1                 ha8d29e2_3    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
py-opencv                 4.5.3            py38h6f1a3b6_8    conda-forge
pyasn1                    0.5.1                    pypi_0    pypi
pyasn1-modules            0.3.0                    pypi_0    pypi
pycodestyle               2.11.1           py38h06a4308_0  
pygments                  2.17.2             pyhd8ed1ab_0    conda-forge
pyopengl                  3.1.7                    pypi_0    pypi
pyparsing                 3.1.1                    pypi_0    pypi
pyquaternion              0.9.9                    pypi_0    pypi
pyserial                  3.5                      pypi_0    pypi
python                    3.8.18               h955ad1f_0  
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.8                      2_cp38    conda-forge
pytz                      2024.1                   pypi_0    pypi
pyyaml                    6.0.1                    pypi_0    pypi
pyzmq                     25.1.0           py38h6a678d5_0  
qhull                     2020.2               h4bd325d_2    conda-forge
qt-main                   5.15.8               h5d23da1_6    conda-forge
readline                  8.2                  h5eee18b_0  
regex                     2023.12.25               pypi_0    pypi
requests                  2.31.0                   pypi_0    pypi
requests-oauthlib         1.3.1                    pypi_0    pypi
robomimic                 0.3.0                     dev_0    <develop>
rosdep                    0.22.2                   pypi_0    pypi
rosdistro                 0.9.0                    pypi_0    pypi
rosinstall                0.7.8                    pypi_0    pypi
rosinstall-generator      0.1.23                   pypi_0    pypi
rospkg                    1.5.0                    pypi_0    pypi
rsa                       4.9                      pypi_0    pypi
safetensors               0.4.1                    pypi_0    pypi
sentry-sdk                1.39.2                   pypi_0    pypi
setproctitle              1.3.3                    pypi_0    pypi
setuptools                68.2.2           py38h06a4308_0  
six                       1.16.0             pyh6c4a22f_0    conda-forge
smmap                     5.0.1                    pypi_0    pypi
sqlite                    3.41.2               h5eee18b_0  
stack-data                0.6.3                    pypi_0    pypi
stack_data                0.6.2              pyhd8ed1ab_0    conda-forge
svt-av1                   1.4.1                hcb278e6_0    conda-forge
sympy                     1.12                     pypi_0    pypi
tbb                       2021.8.0             hdb19cb5_0  
tensorboard               2.14.0                   pypi_0    pypi
tensorboard-data-server   0.7.2                    pypi_0    pypi
tensorboardx              2.6                      pypi_0    pypi
termcolor                 2.4.0                    pypi_0    pypi
tianshou                  0.4.10                   pypi_0    pypi
tinyxml                   2.6.2                h4bd325d_2    conda-forge
tk                        8.6.12               h1ccaba5_0  
tokenizers                0.15.0                   pypi_0    pypi
toml                      0.10.2             pyhd3eb1b0_0  
tomli                     2.0.1                    pypi_0    pypi
torch                     2.0.1                    pypi_0    pypi
torchvision               0.15.2                   pypi_0    pypi
tornado                   6.3.3            py38h01eb140_1    conda-forge
tqdm                      4.66.1                   pypi_0    pypi
traitlets                 5.14.1             pyhd8ed1ab_0    conda-forge
transformers              4.36.2                   pypi_0    pypi
triton                    2.0.0                    pypi_0    pypi
typing_extensions         4.9.0              pyha770c72_0    conda-forge
tzdata                    2024.1                   pypi_0    pypi
urdfdom                   3.1.1                h8a9b4ce_0    conda-forge
urdfdom_headers           1.1.1                h00ab1b0_0    conda-forge
urllib3                   2.1.0                    pypi_0    pypi
vcstools                  0.1.42                   pypi_0    pypi
wandb                     0.16.2                   pypi_0    pypi
wcwidth                   0.2.13             pyhd8ed1ab_0    conda-forge
werkzeug                  3.0.1                    pypi_0    pypi
wheel                     0.41.2           py38h06a4308_0  
wstool                    0.1.17                   pypi_0    pypi
x264                      1!164.3095           h166bdaf_2    conda-forge
x265                      3.5                  h924138e_3    conda-forge
xcb-util                  0.4.0                h516909a_0    conda-forge
xcb-util-image            0.4.0                h166bdaf_0    conda-forge
xcb-util-keysyms          0.4.0                h516909a_0    conda-forge
xcb-util-renderutil       0.3.9                h166bdaf_0    conda-forge
xcb-util-wm               0.4.1                h516909a_0    conda-forge
xkeyboard-config          2.38                 h0b41bf4_0    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.4                h0b41bf4_0    conda-forge
xorg-libxau               1.0.11               hd590300_0    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-libxrender           0.9.10            h7f98852_1003    conda-forge
xorg-renderproto          0.11.1            h7f98852_1002    conda-forge
xorg-xextproto            7.3.0             h0b41bf4_1003    conda-forge
xorg-xproto               7.0.31            h7f98852_1007    conda-forge
xz                        5.4.5                h5eee18b_0  
zeromq                    4.3.4                h9c3ff4c_1    conda-forge
zipp                      3.17.0             pyhd8ed1ab_0    conda-forge
zlib                      1.2.13               hd590300_5    conda-forge
zstd                      1.5.5                hfc55251_0    conda-forge

I have not install any other pkg or C++ library. What I do is just run command

conda install -c conda-forge pinocchio

I try this on another computer and get the same result: no auto-fill in IDE but successful run python script

from pinocchio.

cckaixin avatar cckaixin commented on June 18, 2024

Here is another example: when i write code with pinocchio i see this in my vscode window
444
Nearly half of the functions can not be clicked in, which make it extremely hard for me to program with picocchio

from pinocchio.

cckaixin avatar cckaixin commented on June 18, 2024

yes, i am sure about the vscode conda env, here is the screen shot:
44
the bottom of vscode shows i have choose the right conda env:
bb

from pinocchio.

fabinsch avatar fabinsch commented on June 18, 2024

Hi @cckaixin,
it's good to hear that this helped solve your problem.

I am puzzled as to why the same installation command led to two different versions of Pinocchio.

This is just because you have executed the conda install pinocchio -c conda-forge command at different points in time. A couple of months ago there was version 2.6.20 on conda, now it is 2.7.0 and for this newest version the Stubs generation had been fixed yesterday.

So now, you should be able to switch back to your working conda env with Python 3.8 and do a conda update pinocchio. This should get you the 2.7.0 version and you're good for autocompletion and highlighting.

from pinocchio.

cckaixin avatar cckaixin commented on June 18, 2024

Yeah, I get your point. However, the version
available on python3.8 is still 2.6.20. This is what happened in my terminal:

(aloha) ➜  ~ conda uninstall pinocchio            
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/ckx/miniconda3/envs/aloha

  removed specs:
    - pinocchio


The following packages will be REMOVED:

  eigen-3.4.0-h00ab1b0_0
  eigenpy-3.1.0-py38hf08a58d_1
  hpp-fcl-2.3.5-py38h4b538c8_0
  pinocchio-2.6.20-py38hc3ad5ea_0
  qhull-2020.2-h4bd325d_2


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

(aloha) ➜  ~ conda install -c conda-forge pinocchio
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/ckx/miniconda3/envs/aloha

  added / updated specs:
    - pinocchio


The following NEW packages will be INSTALLED:

  eigen              conda-forge/linux-64::eigen-3.4.0-h00ab1b0_0 
  eigenpy            conda-forge/linux-64::eigenpy-3.1.0-py38hf08a58d_1 
  hpp-fcl            conda-forge/linux-64::hpp-fcl-2.3.5-py38h4b538c8_0 
  pinocchio          conda-forge/linux-64::pinocchio-2.6.20-py38hc3ad5ea_0 
  qhull              conda-forge/linux-64::qhull-2020.2-h4bd325d_2 

Proceed ([y]/n)? 

From pinocchio conda-forge/linux-64::pinocchio-2.6.20-py38hc3ad5ea_0 , the version of pinocchio to be reinstalled is still 2.6.20 :(

from pinocchio.

fabinsch avatar fabinsch commented on June 18, 2024

which version of conda are you using? I have conda version : 24.1.2. I just created a new conda env with python 3.8 and I get pinocchio-2.7.0 . Maybe you could create a new env and try these steps ?

(base) ➜  ~ conda create --name pin_38 python=3.8
(base) ➜  ~ conda activate pin_38
(pin_38) ➜  ~ conda install pinocchio -c conda-forge
Channels:
 - conda-forge
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/fschramm/mambaforge/envs/pin_38

  added / updated specs:
    - pinocchio


The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    brotli-python-1.1.0        |   py38h17151c0_1         343 KB  conda-forge
    eigenpy-3.4.0              |   py38h57200da_0         1.7 MB  conda-forge
    hpp-fcl-2.4.4              |   py38h8f340c1_0         1.5 MB  conda-forge
    libboost-python-1.82.0     |   py38hae673b5_6         117 KB  conda-forge
    libboost-python-devel-1.82.0|   py38hb563948_6          17 KB  conda-forge
    pinocchio-2.7.0            |   py38hd405ee4_1         3.9 MB  conda-forge
    pooch-1.8.1                |     pyhd8ed1ab_0          51 KB  conda-forge
    scipy-1.10.1               |   py38h59b608b_3        14.6 MB  conda-forge
    ------------------------------------------------------------
                                           Total:        22.1 MB

The following NEW packages will be INSTALLED:

  assimp             conda-forge/linux-64::assimp-5.3.1-hfb0e8fe_2 
  brotli-python      conda-forge/linux-64::brotli-python-1.1.0-py38h17151c0_1 
  certifi            conda-forge/noarch::certifi-2024.2.2-pyhd8ed1ab_0 
  charset-normalizer conda-forge/noarch::charset-normalizer-3.3.2-pyhd8ed1ab_0 
  console_bridge     conda-forge/linux-64::console_bridge-1.0.2-h924138e_1 
  eigen              conda-forge/linux-64::eigen-3.4.0-h00ab1b0_0 
  eigenpy            conda-forge/linux-64::eigenpy-3.4.0-py38h57200da_0 
  hpp-fcl            conda-forge/linux-64::hpp-fcl-2.4.4-py38h8f340c1_0 
  icu                conda-forge/linux-64::icu-73.2-h59595ed_0 
  idna               conda-forge/noarch::idna-3.6-pyhd8ed1ab_0 
  libblas            conda-forge/linux-64::libblas-3.9.0-20_linux64_openblas 
  libboost           conda-forge/linux-64::libboost-1.82.0-h6fcfa73_6 
  libboost-devel     conda-forge/linux-64::libboost-devel-1.82.0-h00ab1b0_6 
  libboost-headers   conda-forge/linux-64::libboost-headers-1.82.0-ha770c72_6 
  libboost-python    conda-forge/linux-64::libboost-python-1.82.0-py38hae673b5_6 
  libboost-python-d~ conda-forge/linux-64::libboost-python-devel-1.82.0-py38hb563948_6 
  libcblas           conda-forge/linux-64::libcblas-3.9.0-20_linux64_openblas 
  libgfortran-ng     conda-forge/linux-64::libgfortran-ng-13.2.0-h69a702a_5 
  libgfortran5       conda-forge/linux-64::libgfortran5-13.2.0-ha4646dd_5 
  liblapack          conda-forge/linux-64::liblapack-3.9.0-20_linux64_openblas 
  libopenblas        conda-forge/linux-64::libopenblas-0.3.25-pthreads_h413a1c8_0 
  libstdcxx-ng       conda-forge/linux-64::libstdcxx-ng-13.2.0-h7e041cc_5 
  llvm-openmp        conda-forge/linux-64::llvm-openmp-17.0.6-h4dfa4b3_0 
  numpy              conda-forge/linux-64::numpy-1.24.4-py38h59b608b_0 
  octomap            conda-forge/linux-64::octomap-1.9.8-h924138e_0 
  packaging          conda-forge/noarch::packaging-24.0-pyhd8ed1ab_0 
  pinocchio          conda-forge/linux-64::pinocchio-2.7.0-py38hd405ee4_1 
  platformdirs       conda-forge/noarch::platformdirs-4.2.0-pyhd8ed1ab_0 
  pooch              conda-forge/noarch::pooch-1.8.1-pyhd8ed1ab_0 
  pysocks            conda-forge/noarch::pysocks-1.7.1-pyha2e5f31_6 
  python_abi         conda-forge/linux-64::python_abi-3.8-4_cp38 
  qhull              conda-forge/linux-64::qhull-2020.2-h4bd325d_2 
  requests           conda-forge/noarch::requests-2.31.0-pyhd8ed1ab_0 
  scipy              conda-forge/linux-64::scipy-1.10.1-py38h59b608b_3 
  tinyxml2           conda-forge/linux-64::tinyxml2-10.0.0-h59595ed_0 
  urdfdom            conda-forge/linux-64::urdfdom-4.0.0-hee28ff1_1 
  urdfdom_headers    conda-forge/linux-64::urdfdom_headers-1.1.1-h00ab1b0_0 
  urllib3            conda-forge/noarch::urllib3-2.2.1-pyhd8ed1ab_0 
  zlib               conda-forge/linux-64::zlib-1.2.13-hd590300_5 
  zstd               conda-forge/linux-64::zstd-1.5.5-hfc55251_0 

from pinocchio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.