bugGNU Health - Bugs: bug #63273, opencv not detected

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #63273: opencv not detected

Submitter:  Axel Braun <coogor>
Submitted:  Tue 25 Oct 2022 09:31:41 PM UTC
   
 
Category:  GUI / Frontend Severity:  3 - Normal
Item Group:  None Status:  Works For Me
Privacy:  Public Assigned to:  meanmicio
Open/Closed:  Closed Release:  4.0.0
Module:  gnuhealth Component:  Hospital Management

Wed 02 Nov 2022 10:16:24 AM UTC, comment #5: 

Ah, ok. Then we close it for now. We can open it again if reproduces in other boxes.

Bests
Luis

Luis Falcon <meanmicio>
Group administrator
Tue 01 Nov 2022 09:41:01 PM UTC, comment #4: 

Hm, seems to be an issue just on one installation.

Axel Braun <coogor>
Group Member
Tue 01 Nov 2022 04:14:42 PM UTC, comment #3: 

Excellent, Axel!

Thanks for the feedback, and we'll keep it open until the fix is resolved in openSUSE.

Bests
Luis

Luis Falcon <meanmicio>
Group administrator
Tue 01 Nov 2022 03:26:51 PM UTC, comment #2: 

Hi Luis,
thanks for the hint, that showed what the problem is: A segmentation fault in libopencv_imgcodecs.so.406

I have opened a bug for the distro
https://bugzilla.opensuse.org/show_bug.cgi?id=1204930

Axel Braun <coogor>
Group Member
Thu 27 Oct 2022 10:46:06 AM UTC, comment #1: 

Hi, Axel!

Just tried on my box and I can't reproduce..

Here's a screenshot :)
https://imgur.com/a/kV7C3Iq

Could you try this in your client?
lfm@beastie:~ $ python3
Python 3.10.8 (main, Oct 13 2022, 21:13:48) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import cv2
>>> print(cv2.__version__)

4.6.0

Bests
Luis

original submission:

> I noticed that the gnuhealth-client does not detect opencv properly: At start, the error message 'no CV2 library found' is displayed, although opencv 4.6.0 and python3-opencv are installed.
>
> Error message when using camera:
>   File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/form.py", line 862, in <lambda>
>     menuitem.connect('activate', lambda m, func: func({
>   File "/usr/lib/python3.10/site-packages/gnuhealth/plugins/camera/__init__.py", line 126, in main
>     cap = cv2.VideoCapture(0)
>
> NameError: name 'cv2' is not defined
>
> openSUSE Tumbleweed, Python 3.10.7

Luis Falcon <meanmicio>
Group administrator
Tue 25 Oct 2022 09:31:41 PM UTC, original submission:  

I noticed that the gnuhealth-client does not detect opencv properly: At start, the error message 'no CV2 library found' is displayed, although opencv 4.6.0 and python3-opencv are installed.

Error message when using camera:
  File "/usr/lib/python3.10/site-packages/gnuhealth/gui/window/form.py", line 862, in <lambda>
    menuitem.connect('activate', lambda m, func: func({
  File "/usr/lib/python3.10/site-packages/gnuhealth/plugins/camera/__init__.py", line 126, in main
    cap = cv2.VideoCapture(0)

NameError: name 'cv2' is not defined

openSUSE Tumbleweed, Python 3.10.7

Axel Braun <coogor>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by coogor (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-11-02 meanmicio Open/ClosedOpen Closed
    2022-10-27 meanmicio StatusNone Works For Me
        ReleaseNone 4.0.0

    Back to the top

    Powered by Savane 3.12.
    Corresponding source code