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

Unable to install openCV #6

Open
Vijayjangra21 opened this issue Mar 20, 2024 · 2 comments
Open

Unable to install openCV #6

Vijayjangra21 opened this issue Mar 20, 2024 · 2 comments

Comments

@Vijayjangra21
Copy link

Vijayjangra21 commented Mar 20, 2024

After running every command on the link: https://jetson-docs.com/libraries/opencv/l4t32.7.1/py3.8.0

I'm not able to install openCV 4.8.0

After running the command python3 -c "import cv2; print('OpenCV version:', str(cv2.__version__)); print(cv2.getBuildInformation())" and while trying to import the opencv library I get the following error:

python3
Python 3.8.0 (default, Dec  9 2021, 17:53:27)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/cv2/__init__.py", line 181, in <module>
    bootstrap()
  File "/usr/local/lib/python3.6/site-packages/cv2/__init__.py", line 112, in bootstrap
    load_first_config([
  File "/usr/local/lib/python3.6/site-packages/cv2/__init__.py", line 109, in load_first_config
    raise ImportError('OpenCV loader: missing configuration file: {}. Check OpenCV installation.'.format(fnames))
ImportError: OpenCV loader: missing configuration file: ['[config-3.8.py](http://config-3.8.py/)', 'config-3.py']. Check OpenCV installation

Pls note: I've added the line: export PYTHONPATH=/usr/local/lib/python3.6/site-packages:$PYTHONPATH in the bashrc file.

Since I've installed python 3.8, I also tried replacing the abov line with: export PYTHONPATH=/usr/local/lib/python3.8/site-packages:$PYTHONPATH in the bashrc file, but the same Error persists.

How do I resolve this error?

@lanzani
Copy link
Owner

lanzani commented Mar 22, 2024

Hello!
You are using the jetson nano right?

I will look into that, in the meanwhile, have you considered using the docker image with python3.8.0 and opencv 4.8.0?

@lanzani
Copy link
Owner

lanzani commented Sep 23, 2024

Any news on this issue?

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