Comments (6)
Hello @DamienKoala,
Thank you for bringing this issue to our attention. I suspect the problem may be related to the Python version. I haven't had the opportunity to test it with Python 3.12 yet. However, it should function correctly with Python versions 3.7, 3.8, 3.9, and 3.10.
If you have any further questions or need assistance, please feel free to reach out.
from bgslibrary.
Hi,
I've tried with a new raspiOS, and a Python11 version preinstalled.
The following message appears :
DEPRECATION: pybgs is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
After installing the wheel package, this appends :
Running setup.py clean for pybgs
Failed to build pybgs
and
SetuptoolsDeprecationWarning: setup.py install is deprecated.
It seems to be a setup.py problem :
The solution should be with new package format (file.toml) :
https://packaging.python.org/en/latest/tutorials/packaging-projects
Regards,
from bgslibrary.
Well, I tried with python3.10 and a have the same error when installing... numpy !
So, It's probably a bug from RaspiOS, not you're library...
I suggest to close
from bgslibrary.
Thank you very much @DamienKoala , i need to check this when I have time.
Best regards,
Andrews
from bgslibrary.
Building from source in a venv has also trouble : doesn't find opencv (i've install ine that venv CV with
pip install opencv-python
from bgslibrary.
@DamienKoala can you try again? i just generated a new version of the pybgs and it was tested successfully on Python 3.8, 3.9, 3.10, 3.11 and 3.12
My script below:
# You can use this docker image as reference: andrewssobral/opencv4:4.9.0py310
# https://github.com/andrewssobral/docker/blob/master/opencv4/4.9.0/Dockerfile.py310
# It contains the OpenCV built from source.
# Base image:
# https://github.com/andrewssobral/docker/blob/master/opencv4/Dockerfile.base_ubuntu22.04
# Then:
# Upgrade pip and install required packages numpy and OpenCV
python -m pip install --upgrade pip
python -m pip install wheel setuptools
python -m pip install numpy
python -m pip install opencv-python
python -m pip install pybgs
It should install the latest version (pybgs-3.3.0.post2)
Outputs below:
$ docker run -it --rm -w /opt/ andrewssobral/opencv4:4.9.0py310 bash
root@54d426e33a28:/opt# pip install pybgs
Collecting pybgs
Downloading pybgs-3.3.0.post2.tar.gz (1.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 27.3 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-cp310-cp310-linux_x86_64.whl size=334628 sha256=596b02e24797f56c782c6b04ba0d2a88de3e3b99f8b9872549151eba4eeb55e9
Stored in directory: /root/.cache/pip/wheels/6d/12/a2/02e5aec0ddc7e787c77f837c35663ff70d8307f29767b61852
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@54d426e33a28:/opt# pip list
Package Version
----------- -----------
dbus-python 1.2.18
numpy 1.21.5
pip 22.0.2
pybgs 3.3.0.post2
PyGObject 3.42.1
setuptools 59.6.0
wheel 0.37.1
root@54d426e33a28:/opt# pip -V
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)
root@54d426e33a28:/opt#
from bgslibrary.
Related Issues (20)
- For the available algorithm for a comprehensive comb
- Why does the following three foreground people exist all the time? HOT 2
- Pip install pybgs doesn't work on MacOS HOT 5
- What's the default algorithm used in bgs? HOT 3
- Unresolved external symbol: LNK2001 HOT 1
- Importing pybgs crashes python runtime HOT 3
- Importing python library on M1 chip MacOS HOT 1
- Memory leak
- XML files for algorithms? HOT 1
- why using abs(dist*dist) for the one channel image in PBAS.cpp HOT 2
- Unable to Install pybgs from PyPI(via pip install) on Google Colab Ubuntu 20.04 LTS Instance HOT 2
- Many of the algorithms present in pybgs raise an exception when invoked on Google Colab
- Opencv compilation HOT 1
- NUMPY_INCLUDE_DIR: /bin/sh: 1: -c: not found HOT 10
- Bgslibrary库是针对视频的 如何针对图片,我想只提供一两张图片 然后获取到背景 这样可以么 HOT 2
- [OpenCV 5.0] \bgslibrary\algorithms\KDE\NPBGSubtractor.h(12,17): error C2059: 语法错误:“常数” HOT 4
- CMake issue running 'pip install pybgs' on Ubuntu HOT 1
- building project "bgs_python.vcxproj" -- FAILED (WIN10) HOT 2
- Cmake(?) error when running pip install pybgs on Windows HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bgslibrary.