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

[PC] ui.py is missing libnppc.so.11 #26786

Closed
ebadi opened this issue Dec 13, 2022 · 2 comments
Closed

[PC] ui.py is missing libnppc.so.11 #26786

ebadi opened this issue Dec 13, 2022 · 2 comments
Labels
PC Issues related to running openpilot on PC

Comments

@ebadi
Copy link
Contributor

ebadi commented Dec 13, 2022

Describe the bug

I have an identical issue as #26503 #26595 and I tried to see if I can see camera images from ./ui.py and noticed another issue:

root@research:/openpilot/tools/replay# ./ui.py 
Traceback (most recent call last):
  File "./ui.py", line 6, in <module>
    import cv2  # pylint: disable=import-error
  File "/root/.pyenv/versions/3.8.10/lib/python3.8/site-packages/cv2/__init__.py", line 8, in <module>
    from .cv2 import *
ImportError: libnppc.so.11: cannot open shared object file: No such file or directory

Partial workaround, upgrading opencv from 4.5.5.64 to 4.6.0.66 fixes the issue with the missing libnppc.so.11 shared library but only opens up a blank windows:

root@research:/openpilot/tools/replay# pip  list | grep cv
opencv-python-headless        4.5.5.64


root@research:/openpilot/tools/replay# pip uninstall  opencv-python-headless

root@research:/openpilot/tools/replay# pip install opencv-python-headless 
Collecting opencv-python-headless
  Downloading opencv_python_headless-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (48.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.3/48.3 MB 32.2 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.14.5 in /root/.pyenv/versions/3.8.10/lib/python3.8/site-packages (from opencv-python-headless) (1.23.4)
Installing collected packages: opencv-python-headless
Successfully installed opencv-python-headless-4.6.0.66
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

Update: The main issue is that commaai's version of opencv is missing libnppc.so.11. Updating pyproject.toml solves THIS issue but probably introduces other issues. since I could not find any documentation why comma.ai has it own version of opencv, I will not create any pull request

OS Version

Ubuntu 20.04 / docker

openpilot version or commit

Tested on 72bf819 (but this commit is not relevant)

Additional info

No response

@ebadi ebadi added the PC Issues related to running openpilot on PC label Dec 13, 2022
@ebadi ebadi changed the title ui.py is missing libnppc.so.11 [PC] ui.py is missing libnppc.so.11 Dec 13, 2022
@pgchui
Copy link

pgchui commented Apr 10, 2023

I had the same issue with NVIDIA driver 525 and CUDA 12.0. Switching to NVIDIA driver 520 and CUDA 11.8 fixed my issue.

@adeebshihadeh
Copy link
Contributor

We've updated the python packages a few times since then. Feel free to make another issue if you're still having this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PC Issues related to running openpilot on PC
Projects
None yet
Development

No branches or pull requests

3 participants