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

failure when using ./install_all_venv.sh #134

Closed
nusbaum-uriel opened this issue Feb 4, 2025 · 4 comments
Closed

failure when using ./install_all_venv.sh #134

nusbaum-uriel opened this issue Feb 4, 2025 · 4 comments

Comments

@nusbaum-uriel
Copy link

when running this shell command it ended with (on ubuntu 22.04)

Building wheels for collected packages: kiwisolver, psutil, wrapt
Building wheel for kiwisolver (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
running bdist_wheel
running build
running build_ext
building 'kiwisolver' extension
creating build/temp.linux-x86_64-cpython-38/py
clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -DOPENSSL_NO_SSL3 -fPIC -I. -I/home/uriel/.python/venvs/pyslam/include -I/home/uriel/.pyenv/versions/3.8.10/include/python3.8 -c py/constraint.cpp -o build/temp.linux-x86_64-cpython-38/py/constraint.o
py/constraint.cpp:8:10: fatal error: 'algorithm' file not found
#include
^~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang++' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for kiwisolver
Running setup.py clean for kiwisolver
Building wheel for psutil (setup.py) ... done
Created wheel for psutil: filename=psutil-5.5.1-cp38-cp38-linux_x86_64.whl size=249851 sha256=8f57ea4cf65aba0c50cecc231092380d11c708cc03ecf11d1a56d0413dfb357d
Stored in directory: /home/uriel/.cache/pip/wheels/57/f5/41/32f5a1f2b1012be55d33a36be92cd310ec0fe44c3fdc042783
Building wheel for wrapt (setup.py) ... done
Created wheel for wrapt: filename=wrapt-1.11.2-cp38-cp38-linux_x86_64.whl size=60469 sha256=61e0bc9ad74da5a51fe69ce6d8c9366641107e8139deebd5bc5fce7a368b8c57
Stored in directory: /home/uriel/.cache/pip/wheels/52/25/16/7e228f52ee876e9c9c66dfd6eaf6fb2f73f18629a74dcf7045
Successfully built psutil wrapt
Failed to build kiwisolver
ERROR: Failed to build installable wheels for some pyproject.toml based projects (kiwisolver)

@nusbaum-uriel nusbaum-uriel changed the title failed creating the venv when using ./install_all_venv.sh failure when using ./install_all_venv.sh Feb 4, 2025
@luigifreda
Copy link
Owner

luigifreda commented Feb 4, 2025

I'm double-checking the procedure.

It looks like the build process for the kiwisolver package depends on clang++ on your system. In the meantime, could you verify whether libstdc++-11-dev (or a different version) is installed on your system? If this is missing, can you try to install it and retry the install procedure?

This is what I am getting with rosdocker when using ubuntu22_cuda container:

Building wheels for collected packages: kiwisolver, psutil, wrapt
  Building wheel for kiwisolver (setup.py) ... done
  Created wheel for kiwisolver: filename=kiwisolver-1.0.1-cp38-cp38-linux_x86_64.whl size=492422 sha256=c9d68ad1e6ffc1156c00a64717406de621f93fa0449f570d5e9ad9f865f21cc2
  Stored in directory: /home/luigi/.cache/pip/wheels/b4/6f/8f/9631a6fcdc87a9b733b40861257dda27b0f53585989966e1e1
  Building wheel for psutil (setup.py) ... done
  Created wheel for psutil: filename=psutil-5.5.1-cp38-cp38-linux_x86_64.whl size=249852 sha256=4852d2607d325321ce856b7a5bb84f470cd3ac6bb7f109005b687f36f91328d2
  Stored in directory: /home/luigi/.cache/pip/wheels/57/f5/41/32f5a1f2b1012be55d33a36be92cd310ec0fe44c3fdc042783
  Building wheel for wrapt (setup.py) ... done
  Created wheel for wrapt: filename=wrapt-1.11.2-cp38-cp38-linux_x86_64.whl size=60466 sha256=701d7efb66ef4a3a9a6cc7f97894f0cb1be68d119368e31fbdde9bce14493c5c
  Stored in directory: /home/luigi/.cache/pip/wheels/52/25/16/7e228f52ee876e9c9c66dfd6eaf6fb2f73f18629a74dcf7045
Successfully built kiwisolver psutil wrapt

@nusbaum-uriel
Copy link
Author

running "sudo apt-get -y install libstdc++-11-dev" yields:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libstdc++-11-dev is already the newest version (11.4.0-1ubuntu1~22.04).

so the installed version is 11.4.0-1

@luigifreda
Copy link
Owner

luigifreda commented Feb 5, 2025

I am unsure how to help since I cannot replicate your problem.
Could you share more info about your system and chipset?

  • OS
  • gcc --version
  • CUDA version if installed

Can you please open a new shell, get into the root of pyslam and then run the following commands?

./clean.sh --hard 
./install_all_venv.sh

After, can you please copy-paste all the std output you obtained into a text file and share it here?

Can you also try to use rosdocker and the ubuntu22_cuda container? (see the docker procedure in the README file)

@luigifreda
Copy link
Owner

luigifreda commented Feb 5, 2025

This seems to be a related issue
immunant/c2rust#380
They suggest installing libstdc++-12-dev as a workaround under ubuntu22. However, that's something I cannot verify on my side cause I don't hit the issue.

I would also run sudo apt update; sudo apt dist-upgrade on your system if you didn't do that recently (before running the pyslam install procedure again).

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

2 participants