Giter Site home page Giter Site logo

Comments (7)

cipri-tom avatar cipri-tom commented on May 18, 2024 15

@rmekdma if you don't need graphical Qt stuff, you can install the very very slightly older build, like this: pip install 'opencv-contrib-python==3.3.0.9' (after removing the current one, of course: pip uninstall opencv-contrib-python)

from opencv-python.

skvark avatar skvark commented on May 18, 2024 7

There are now two new headless distributions: https://github.com/skvark/opencv-python/releases/tag/14

Please note that it takes still a few hours before builds finish and packages are available for install.

from opencv-python.

skvark avatar skvark commented on May 18, 2024 5

Yes, I will make a new headless entry after other blocking issues are fixed.

from opencv-python.

berak avatar berak commented on May 18, 2024 4

@skvark , installing libSM is not an option in environments like heroku, or google cloud engine (you're not root, and thus can't install anything or even build from src)

having qt support is nice on the desktop, but would it be possible to have a "headless" version ?

from opencv-python.

skvark avatar skvark commented on May 18, 2024

Can you install libSM / other deps to the Docker image? The X11 dependencies come from Qt and they cannot be avoided.

Bundling libSM and other X11 libs into the wheels is not possible, because auditwheel excludes them automatically:

Headless version should be possible to implement by patching the binary with patchelf (by removing problematic DT_NEEDED entries) and creating an alternate distribution. I'll try that when I have more time to focus on this project.

In the meantime, you can downgrade to 3.3.0.9 which is exactly the same build but without Qt.

from opencv-python.

owend avatar owend commented on May 18, 2024

Thanks for the info. For now, a downgrade solves the immediate issue. If necessary, we can add X11 libs, but I'd prefer not to since we aren't using that functionality.

from opencv-python.

rmekdma avatar rmekdma commented on May 18, 2024

Same problem to me. I use python 2.7 and ubuntu 14.04 in the docker image. After I installed libsm6 another error came out.

  File "/usr/local/lib/python2.7/dist-packages/cv2/__init__.py", line 9, in <module>
    from .cv2 import *
ImportError: libXrender.so.1: cannot open shared object file: No such file or directory

from opencv-python.

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.