pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/__init__.py:No such file or directory
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Jun 2022 21:39:50 UTC
Hello. I'm playing a little bit with sikulix. I'm trying to learn how it works because I want to automatize the daily tasks of my FreeBSD 13.1-RELEASE. So,as soon as I have implemented my first "click on the image" function,I've got the error message that you see below and I don't know how to fix it : *[error] RunTime:loadLib: libopencv_java430.so (failed) probably dependent libs missing: Can't load library: /root/.Sikulix/SikulixLibs/libopencv_java430.so [error] Save your work, correct the problem and restart the IDE! [error] see: https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-Libraries-for-OpenCV-4 <https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-Libraries-for-OpenCV-4> TERMINATING: problem with native library: libopencv_java430.so [error] script [ click_image ] stopped with error in line 1 [error] java.lang.ExceptionInInitializerError ( java.lang.ExceptionInInitializerError ) [error] --- Traceback --- error source first line: module ( function ) statement 1: main ( <module> ) click("1656348124939.png") [error] --- Traceback --- end --------------* At this point I tried to compile opencv from ports enabling JAVA like this : mario@marietto:/usr/ports/graphics/opencv # make (enabled JAVA) mario@marietto:/usr/ports/graphics/opencv # make install but it didn't work : ......... ===> Installing for opencv-4.5.5_7 ===> Checking if opencv is already installed ===> Registering installation for opencv-4.5.5_7 pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/__init__.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/config-3.9.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/config.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/gapi/__init__.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/load_config_py2.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/load_config_py3.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/mat_wrapper/__init__.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/misc/__init__.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/misc/version.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/python-3.9/cv2.cpython-39.so:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages/cv2/utils/__init__.py:No such file or directory *** Error code 1 Stop. make[1]: stopped in /usr/ports/graphics/opencv *** Error code 1 Stop. make: stopped in /usr/ports/graphics/opencv I suppose that the error depends on the fact that I'm using python 3.8 as default but it wants python 3.9 ? mario@marietto:/home/marietto # python --version Python 3.8.13 What's the right procedure to upgrade it (if I should do this,because I'm not sure). I tried to remove python38,but I think that it's not the right choice : mario@marietto:/home/marietto # pkg remove python38 Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 580 packages (of 0 packages in the universe)... but If I don't remove python38 from packages,I can't compile python 3.9 from ports. So,what ? take also in consideration that I have installed some python packages : mario@marietto:/home/marietto # pkg remove python39 Checking integrity... done (0 conflicting) Deinstallation has been requested for the following 6 packages (of 0 packages in the universe): Installed packages to be REMOVED: asciidoc: 10.2.0 py39-cython: 0.29.30_1 py39-numpy: 1.22.4_1,1 py39-setuptools: 62.1.0_1 python: 3.9_3,2 python39: 3.9.13 Number of packages to be removed: 6 but I haven't removed them,since I'm not sure if I should do this. I don't know what to do. -- Mario.