Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Aug 2016 07:42:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211805] graphics/py-opencv import cv2 fails
Message-ID:  <bug-211805-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211805

            Bug ID: 211805
           Summary: graphics/py-opencv import cv2 fails
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: jhale@FreeBSD.org
          Reporter: hassonofer@gmail.com
             Flags: maintainer-feedback?(jhale@FreeBSD.org)
          Assignee: jhale@FreeBSD.org

System:
FreeBSD localhost 10.3-RELEASE-p4 FreeBSD 10.3-RELEASE-p4

Description:
After installing py27-opencv and py27-numpy using 'pkg', there is a failure=
 to
import cv2 before importing numpy.
Script like this:
---
import numpy as np
import cv2
---
will work, but script like this will fail:
---
import cv2
import numpy as np
---

Output: "ImportError: numpy.core.multiarray failed to import"

If I run a full project, I get a more descriptive error:
ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by
/usr/local/lib/gcc48/libgfortran.so.3 not found


Steps to reproduce:
1. Install py27-opencv py27-numpy using the binary package manager 'pkg'
2. Run python -c 'exec("import cv2\nimport numpy")' - Error
3. Run python -c 'exec("import numpy\nimport cv2")' - No Error

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211805-13>