Coder Social home page Coder Social logo

Comments (6)

andrewssobral avatar andrewssobral commented on June 2, 2024 1

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.

DamienKoala avatar DamienKoala commented on June 2, 2024 1

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.

DamienKoala avatar DamienKoala commented on June 2, 2024

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.

andrewssobral avatar andrewssobral commented on June 2, 2024

Thank you very much @DamienKoala , i need to check this when I have time.
Best regards,
Andrews

from bgslibrary.

DamienKoala avatar DamienKoala commented on June 2, 2024

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.

andrewssobral avatar andrewssobral commented on June 2, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.