You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running into trouble when trying to pip install pybgs, getting the following error:
1.183 Collecting pybgs==3.3.0.post0
1.242 Downloading pybgs-3.3.0.post0.tar.gz (622 kB)
1.281 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 622.8/622.8 kB 17.9 MB/s eta 0
:00:00
1.351 Preparing metadata (setup.py): started
1.971 Preparing metadata (setup.py): finished with status 'done'
1.973 Building wheels for collected packages: pybgs
[2023-11-30T11:20:34.952Z]
1.975 Building wheel for pybgs (setup.py): started
4.334 Building wheel for pybgs (setup.py): finished with status 'error'
4.342 error: subprocess-exited-with-error
4.342
4.342 × python setup.py bdist_wheel did not run successfully.
4.342 │ exit code: 1
4.342 ╰─> [51 lines of output]
4.342 running bdist_wheel
4.342 running build
4.342 running build_ext
4.342 Preparing the build environment
4.342 Configuring cmake project
4.342 cmake -H/tmp/pip-install-wrej2k3c/pybgs_920fffc03ccd49dcb563bbd93116
e181 -Bbuild/temp.linux-x86_64-cpython-311 -DPYTHON_EXECUTABLE=/opt/venv/bin/pyt
hon -DBGS_CORE_STATIC=ON -DBGS_PYTHON_SUPPORT=ON -DBGS_PYTHON_ONLY=ON -DBGS_PYTH
ON_VERSION=3.11
4.342 -- The C compiler identification is GNU 12.2.0
4.342 -- The CXX compiler identification is GNU 12.2.0
4.342 -- Detecting C compiler ABI info
4.342 -- Detecting C compiler ABI info - done
4.342 -- Check for working C compiler: /usr/bin/cc - skipped
4.342 -- Detecting C compile features
4.342 -- Detecting C compile features - done
4.342 -- Detecting CXX compiler ABI info
4.342 -- Detecting CXX compiler ABI info - done
4.342 -- Check for working CXX compiler: /usr/bin/c++ - skipped
4.342 -- Detecting CXX compile features
4.342 -- Detecting CXX compile features - done
4.342 --
4.342 -- BGS_PYTHON_SUPPORT: ON
4.342 -- BGS_PYTHON_ONLY: ON
4.342 -- BGS_CORE_STATIC: ON
4.342 -- PYTHON VERSION: 3.11
4.342 -- Found OpenCV: /usr (found version "4.6.0")
4.342 --
4.342 -- OpenCV library status:
4.342 -- version: 4.6.0
4.342 -- libraries: opencv_calib3d;opencv_core;opencv_dnn;opencv_featu
res2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;open
cv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio;opencv_al
phamat;opencv_aruco;opencv_barcode;opencv_bgsegm;opencv_bioinspired;opencv_ccali
b;opencv_cvv;opencv_datasets;opencv_dnn_objdetect;opencv_dnn_superres;opencv_dpm
;opencv_face;opencv_freetype;opencv_fuzzy;opencv_hdf;opencv_hfs;opencv_img_hash;
opencv_intensity_transform;opencv_line_descriptor;opencv_mcc;opencv_optflow;open
cv_phase_unwrapping;opencv_plot;opencv_quality;opencv_rapid;opencv_reg;opencv_rg
bd;opencv_saliency;opencv_shape;opencv_stereo;opencv_structured_light;opencv_sup
erres;opencv_surface_matching;opencv_text;opencv_tracking;opencv_videostab;openc
v_viz;opencv_wechat_qrcode;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
4.342 -- include path: /usr/include/opencv4
4.342
4.342 -- Found PythonInterp: /opt/venv/bin/python (found suitable version
"3.11.6", minimum required is "3.11")
4.342 -- Found PythonLibs: /usr/local/lib/libpython3.11.so
4.342 -- pybind11 v2.3.dev1
4.342 --
4.342 -- Python library status:
4.342 -- executable: /opt/venv/bin/python
4.342 -- library: /usr/local/lib/libpython3.11.so
4.342 -- include path: /usr/local/include/python3.11
4.342 -- NUMPY_INCLUDE_DIR: /opt/venv/lib/python3.11/site-packages/numpy/c
ore/include
4.342
4.342 -- Bulding bgslibrary_core STATIC
4.342 --
4.342 -- The bgslibrary python package will be installed at: lib/python3.1
1/site-packages
4.342
4.342 -- Configuring done
4.342 CMake Error at CMakeLists.txt:223 (add_library):
4.342 No SOURCES given to target: bgslibrary_core
4.342
4.342
4.342 CMake Generate step failed. Build files cannot be regenerated corre
ctly.
Apparently, there are no No SOURCES given to target: bgslibrary_core.
We are using a containerized Ubuntu version. I have included our Dockerfile for reference. We have 'build-essential', 'libopencv-dev' and 'python3-opencv' installed inside of our container, so all dependencies seem to be in place.
I have attached our Dockerfile (remove the .txt before running docker build) for reference. Dockerfile.txt
The text was updated successfully, but these errors were encountered:
Hello @daanbaas ,
I think the problem is now solved, I just generated a new version of the pybgs (pybgs-3.3.0.post2).
I used your Dockerfile as reference to re-create the same environment, and it works well now:
$ docker run -it --rm bgslibrary:python3.11-slim bash
root@c20c271de30a:/# pip install pybgs
Collecting pybgs
Downloading pybgs-3.3.0.post2.tar.gz (1.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 21.2 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pybgs
Building wheel for pybgs (setup.py) ... done
Created wheel for pybgs: filename=pybgs-3.3.0.post2-cp311-cp311-linux_x86_64.whl size=332026 sha256=c6da31a8d1178702a46589d8d2f0c0064b094b1a038d2e8ab3a1188786bb711c
Stored in directory: /root/.cache/pip/wheels/a6/2c/d8/d4989a31b7b5e5a841d889e08a28944f517d6026a0eaea8e1f
Successfully built pybgs
Installing collected packages: pybgs
Successfully installed pybgs-3.3.0.post2
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
root@c20c271de30a:/#
Hello,
We are running into trouble when trying to pip install pybgs, getting the following error:
1.183 Collecting pybgs==3.3.0.post0
1.242 Downloading pybgs-3.3.0.post0.tar.gz (622 kB)
1.281 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 622.8/622.8 kB 17.9 MB/s eta 0
:00:00
1.351 Preparing metadata (setup.py): started
1.971 Preparing metadata (setup.py): finished with status 'done'
1.973 Building wheels for collected packages: pybgs
[2023-11-30T11:20:34.952Z]
1.975 Building wheel for pybgs (setup.py): started
4.334 Building wheel for pybgs (setup.py): finished with status 'error'
4.342 error: subprocess-exited-with-error
4.342
4.342 × python setup.py bdist_wheel did not run successfully.
4.342 │ exit code: 1
4.342 ╰─> [51 lines of output]
4.342 running bdist_wheel
4.342 running build
4.342 running build_ext
4.342 Preparing the build environment
4.342 Configuring cmake project
4.342 cmake -H/tmp/pip-install-wrej2k3c/pybgs_920fffc03ccd49dcb563bbd93116
e181 -Bbuild/temp.linux-x86_64-cpython-311 -DPYTHON_EXECUTABLE=/opt/venv/bin/pyt
hon -DBGS_CORE_STATIC=ON -DBGS_PYTHON_SUPPORT=ON -DBGS_PYTHON_ONLY=ON -DBGS_PYTH
ON_VERSION=3.11
4.342 -- The C compiler identification is GNU 12.2.0
4.342 -- The CXX compiler identification is GNU 12.2.0
4.342 -- Detecting C compiler ABI info
4.342 -- Detecting C compiler ABI info - done
4.342 -- Check for working C compiler: /usr/bin/cc - skipped
4.342 -- Detecting C compile features
4.342 -- Detecting C compile features - done
4.342 -- Detecting CXX compiler ABI info
4.342 -- Detecting CXX compiler ABI info - done
4.342 -- Check for working CXX compiler: /usr/bin/c++ - skipped
4.342 -- Detecting CXX compile features
4.342 -- Detecting CXX compile features - done
4.342 --
4.342 -- BGS_PYTHON_SUPPORT: ON
4.342 -- BGS_PYTHON_ONLY: ON
4.342 -- BGS_CORE_STATIC: ON
4.342 -- PYTHON VERSION: 3.11
4.342 -- Found OpenCV: /usr (found version "4.6.0")
4.342 --
4.342 -- OpenCV library status:
4.342 -- version: 4.6.0
4.342 -- libraries: opencv_calib3d;opencv_core;opencv_dnn;opencv_featu
res2d;opencv_flann;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;open
cv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio;opencv_al
phamat;opencv_aruco;opencv_barcode;opencv_bgsegm;opencv_bioinspired;opencv_ccali
b;opencv_cvv;opencv_datasets;opencv_dnn_objdetect;opencv_dnn_superres;opencv_dpm
;opencv_face;opencv_freetype;opencv_fuzzy;opencv_hdf;opencv_hfs;opencv_img_hash;
opencv_intensity_transform;opencv_line_descriptor;opencv_mcc;opencv_optflow;open
cv_phase_unwrapping;opencv_plot;opencv_quality;opencv_rapid;opencv_reg;opencv_rg
bd;opencv_saliency;opencv_shape;opencv_stereo;opencv_structured_light;opencv_sup
erres;opencv_surface_matching;opencv_text;opencv_tracking;opencv_videostab;openc
v_viz;opencv_wechat_qrcode;opencv_ximgproc;opencv_xobjdetect;opencv_xphoto
4.342 -- include path: /usr/include/opencv4
4.342
4.342 -- Found PythonInterp: /opt/venv/bin/python (found suitable version
"3.11.6", minimum required is "3.11")
4.342 -- Found PythonLibs: /usr/local/lib/libpython3.11.so
4.342 -- pybind11 v2.3.dev1
4.342 --
4.342 -- Python library status:
4.342 -- executable: /opt/venv/bin/python
4.342 -- library: /usr/local/lib/libpython3.11.so
4.342 -- include path: /usr/local/include/python3.11
4.342 -- NUMPY_INCLUDE_DIR: /opt/venv/lib/python3.11/site-packages/numpy/c
ore/include
4.342
4.342 -- Bulding bgslibrary_core STATIC
4.342 --
4.342 -- The bgslibrary python package will be installed at: lib/python3.1
1/site-packages
4.342
4.342 -- Configuring done
4.342 CMake Error at CMakeLists.txt:223 (add_library):
4.342 No SOURCES given to target: bgslibrary_core
4.342
4.342
4.342 CMake Generate step failed. Build files cannot be regenerated corre
ctly.
Apparently, there are no No SOURCES given to target: bgslibrary_core.
We are using a containerized Ubuntu version. I have included our Dockerfile for reference. We have 'build-essential', 'libopencv-dev' and 'python3-opencv' installed inside of our container, so all dependencies seem to be in place.
I have attached our Dockerfile (remove the .txt before running docker build) for reference.
Dockerfile.txt
The text was updated successfully, but these errors were encountered: